Research on capacitor energy storage and discharge