Thermodynamics in solid mechanics General and foundational topics mathematics