A heat exchanger, also known as a steam generator, transfers the heat to a secondary cooling loop, which powers a steam turbine with an electric generator attached to it (for a typical Rankine thermodynamic cycle). The exhaust steam from the turbines is then cooled, condensed and returned as feedwater to the steam generator.