Nozzles are tubes that aim to increase the speed of an outflow and control its direction and shape. Nozzle flow generates reaction forces from changes in momentum. In rockets, ejecting mass backwards through a nozzle creates thrust. Nozzles transform thermal or pressure energy into kinetic energy and momentum. Nozzle flow is rapid and nearly adiabatic. Real nozzle flow departs from ideal due to non-adiabatic effects and viscous dissipation. Nozzle area ratio is defined as the exit area over throat area.