Thermal plant