Modelling and simulationof thermodiffusion in porous media