Mathematical formulas based on the laws of thermodynamics embedded into industrial control software to calculate heat transfer, phase transitions, and energy state changes. They enable automated systems to dynamically optimize fuel, electricity, and steam usage, minimizing thermal waste.