Conceptual

Electric Motor as Generator

A permanent-magnet machine is reversible: drive the shaft and the moving magnetic field induces current in the windings, converting mechanical to electrical energy — the induced current in turn creates a torque opposing rotation. That opposing torque is the 'brake' in regenerative braking.