DC motor that drives a flywheel and a DC generator simultaneously
The mathematics of mechanical systems and electrical systems are analogous. If you think of force as voltage and velocity as current, then mass (inertia) becomes equivalent to inductance.

Does this help at all?