rotor definition generate