Thermo-mechanical modelling of granular materials