A nozzle converts heat energy (enthalpy) into kinetic energy by allowing a fluid to expand from high pressure to low pressure. As the fluid passes through the converging-diverging section of the nozzle, its enthalpy decreases while its velocity increases, resulting in high-velocity jet flow used in applications like steam turbines, rocket engines, and spray nozzles.