Reactive power compensation function of electrostatic capacitor