Continuum mechanics and thermodynamics