Heat energy and thermodynamics