A wind turbine is a rotating machine which converts the kinetic energy of wind into mechanical energy. If the mechanical energy is used directly by machinery, such as a pump or grinding stones, the machine is usually called a windmill. If the mechanical energy is instead converted to electricity, the machine is called a wind generator, wind turbine, wind power unit (WPU), wind energy converter (WEC), or aerogenerator.