The working fluid of a heat engine or heat pump is a gas or liquid, usually called a refrigerant, coolant, or working gas, that primarily converts thermal energy (temperature change) into mechanical energy (or vice versa) by phase change and/or heat of compression and expansion.