n a rotating mass used to maintain the speed of a machine within certain limits while the machine receives or releases energy at a varying rate