Thermophysical basics of energy processes