Simulation of heat transfer and fluid flow in 3D porous media in non-equilibrium