A heat engine converts thermal energy from a hot source into mechanical work. It does this by using a working substance that undergoes a thermodynamic cycle between two temperature states. Sadi Carnot imagined an ideal heat engine, now called a Carnot engine, to explain this conversion process. The Carnot cycle consists of four reversible processes - two isothermal expansions/compressions and two adiabatic expansions/compressions - that bring the working substance back to its initial state. Isothermal processes occur slowly at constant temperature while exchanging heat, and adiabatic processes occur rapidly with no heat exchange.