Modelling and Simulation of temperature-density-driven flow and thermodiffusion in porous media