I've seen reports that state that flywheels can be used to store energy for use in quick discharge (basically like a capacitor). I'm wondering how this is achieved and whether something like a generator is used. I know large resistors are/were used as brakes in trains but I'm unsure what tech is used to convert the mechanical to electrical in such a fast manner?