The Stirling machine is also called a hot air motor. It is a closed-cycle heat engine that operates by cyclic compression and expansion of gas at different temperatures, so that there is a net conversion of heat energy to mechanical work. As the spirit lamp is turned on, the air inside the motor is heated and expands. The pressure applied to the piston increases and moves the piston. Therefore, heat energy is converted to mechanical energy.