Thermodynamic fundamentals