To run it needs a supply of heat to heat its hot parts. This can come from a fire, but also from the sun’s rays, from hot rocks near a volcano or from nuclear energy. It also has cold parts which cool the gas inside it and these are kept cold by a stream of air or water flowing over them.