In the context of the global energy transition toward low-carbon systems, the large-scale integration of intermittent renewable energy sources such as solar photovoltaics and wind power has introduced significant challenges to power system stability. One of the most critical issues is the degradation of system inertia and the increased risk of transient voltage instability. Conventional synchronous generators provide inherent inertia and voltage regulation capability, which are largely absent in inverter-based renewable generation. To address this, we propose a hybrid energy storage system combining flywheel energy storage and a battery energy storage system, integrated with virtual synchronous generator control. This architecture not only emulates the inertia and damping of traditional synchronous machines but also leverages the complementary characteristics of fast-response flywheels and high-energy-density battery energy storage system to deliver robust transient voltage support. In this work, we present a comprehensive modeling framework, control design, and simulation validation under grid voltage sag conditions, demonstrating that the proposed strategy effectively reduces voltage deviation by 95% compared to conventional approaches.
Introduction and Motivation
The increasing penetration of renewable energy sources has reshaped the modern power system. While renewables reduce carbon emissions, they also introduce low-inertia characteristics that make the grid more vulnerable to disturbances. Transient voltage stability, in particular, has become a pressing concern. Without sufficient reactive power support and fast-acting energy buffers, a single fault can propagate into wide-area blackouts, as evidenced by the April 2025 Iberian Peninsula blackout. Conventional solutions such as static var generators and synchronous condensers provide reactive power compensation but lack the active power flexibility needed for dynamic frequency and voltage support. In contrast, a hybrid energy storage system that combines a battery energy storage system with flywheel storage can deliver both active and reactive power rapidly, emulating the behavior of a synchronous machine through virtual synchronous generator (VSG) control. Our work specifically focuses on designing such a system for photovoltaic-storage co-located plants, where the battery energy storage system acts as the primary energy reservoir and the flywheel provides instantaneous power bursts.
Virtual Synchronous Generator Control Principle
VSG control is a grid-forming technique that enables inverter-interfaced resources to behave as voltage sources. The core of VSG is the emulation of the swing equation of a synchronous generator:
$$ J \frac{d\omega}{dt} = \frac{P_m}{\omega} – \frac{P_e}{\omega} – D(\omega – \omega_n) $$
where \(J\) is the virtual inertia, \(\omega\) and \(\omega_n\) are the actual and rated angular frequencies, \(P_m\) and \(P_e\) are the virtual mechanical power and electrical output power, and \(D\) is the damping coefficient. The frequency regulation is incorporated through the droop equation:
$$ P_m = P_{\text{ref}} + K_\omega (\omega – \omega_n) $$
Combining these yields the active power-frequency control loop. For reactive power-voltage control, we adopt:
$$ E_n = (U_{\text{ref}} – U_{\text{in}})K_{ut} + \frac{(Q_{\text{ref}} – Q_{\text{in}})K_q}{s} + E_{\text{empty}} $$
where \(E_n\) is the induced electromotive force, \(U_{\text{ref}}\) and \(U_{\text{in}}\) are reference and measured voltages, \(Q_{\text{ref}}\) and \(Q_{\text{in}}\) are reference and measured reactive powers, and \(K_{ut}\) and \(K_q\) are gains. Under the assumption of a predominantly inductive grid impedance \(X_f\), the power output of the VSG is approximated by:
$$ P_e \approx \frac{E_0 U_1}{X_f} \delta , \quad Q_e \approx \frac{E_0 U_1 \cos\delta – U_1^2}{X_f} $$
These equations govern the dynamic coupling between the VSG and the grid. Key parameters used in our simulation are summarized in the table below.
| Parameter | Symbol | Value |
|---|---|---|
| Virtual inertia | \(J\) | 0.5 kg·m² |
| Damping coefficient | \(D\) | 10 N·m·s/rad |
| Droop coefficient (frequency) | \(K_\omega\) | 2000 |
| Droop coefficient (reactive) | \(K_q\) | 500 |
| Grid inductance | \(X_f\) | 0.2 Ω |
| Rated voltage (phase) | \(U_n\) | 310 V |
Photovoltaic Generation System Modeling
We model a photovoltaic array using the standard single-diode representation available in MATLAB/Simulink. To maximize energy harvest, we implement maximum power point tracking using the Perturb and Observe (P&O) algorithm. The P&O method perturbs the array voltage by a small step \(\Delta V\) and compares the power before and after the perturbation. If power increases, the direction is maintained; otherwise, it is reversed. This iterative process is governed by:
$$ V_{\text{ref}}(k+1) = V_{\text{ref}}(k) + \Delta V \cdot \text{sign} \left( P(k) – P(k-1) \right) $$
where \(P(k)\) is the power at the \(k\)-th sample. Under rapidly changing irradiance, a variable step size can be used to improve tracking speed and accuracy. In our simulation, a fixed step of 0.5% of the open-circuit voltage is chosen, providing a good balance between dynamic response and steady-state oscillation. The photovoltaic array is connected to the DC link through a boost converter controlled by the MPPT output, as illustrated in the control block (not shown).
Hybrid Energy Storage System Modeling
Flywheel Energy Storage
The flywheel storage system consists of a permanent magnet synchronous motor (PMSM) coupled to a rotating mass, housed in a vacuum enclosure to reduce windage losses. The energy stored in the flywheel is proportional to the square of its angular velocity:
$$ E = \frac{1}{2} J_{\text{fly}} \omega_{\text{fly}}^2 $$
The usable energy is the difference between the energy at maximum speed \(\omega_{\text{max}}\) and minimum speed \(\omega_{\text{min}}\):
$$ \Delta E = \frac{1}{2} J_{\text{fly}} ( \omega_{\text{max}}^2 – \omega_{\text{min}}^2 ) $$
The power exchange is given by the derivative of energy:
$$ P = \frac{d \Delta E}{dt} = J_{\text{fly}} \omega_{\text{fly}} \frac{d\omega_{\text{fly}}}{dt} = T_e \omega_{\text{fly}} $$
where \(T_e\) is the electromagnetic torque. In our model, the flywheel is controlled via a field-oriented control (FOC) scheme for the PMSM, enabling bidirectional power flow. The flywheel provides rapid power injection within milliseconds, making it ideal for transient voltage support.
Battery Energy Storage System
The battery energy storage system is based on a lithium-ion chemistry modeled using an equivalent circuit comprising a voltage source \(V_{\text{oc}}\) (open-circuit voltage as a function of state of charge), a series resistance \(R_s\), and two RC parallel networks representing transient dynamics. The terminal voltage is:
$$ V_{\text{bat}} = V_{\text{oc}} – I_{\text{bat}} R_s – V_{\text{RC1}} – V_{\text{RC2}} $$
Each RC network obeys:
$$ \frac{dV_{\text{RCi}}}{dt} = \frac{I_{\text{bat}}}{C_i} – \frac{V_{\text{RCi}}}{R_i C_i}, \quad i=1,2 $$
The battery is interfaced to the DC bus through a bidirectional buck-boost converter controlled to regulate the DC-link voltage. The control block (represented by a typical dual-loop PI controller with current inner loop and voltage outer loop) ensures stable power exchange. The battery energy storage system complements the flywheel by providing sustained energy delivery during longer voltage sags, thus preventing the flywheel from exceeding its speed limits. In our hybrid configuration, the battery energy storage system is the primary energy reservoir, while the flywheel handles the initial fast transient. Both devices share the same DC-link, and the VSG controls the combined power injection to the grid.
| Component | Parameter | Value |
|---|---|---|
| Flywheel | Moment of inertia \(J_{\text{fly}}\) | 0.8 kg·m² |
| Maximum speed | 15000 rpm | |
| Nominal power rating | 50 kW | |
| Battery Energy Storage System | Nominal voltage | 400 V |
| Capacity | 100 Ah | |
| Max discharge current | 300 A | |
| DC-link | Rated voltage | 700 V |
| Capacitance | 10 mF |
Simulation Setup and Results
We built a comprehensive simulation model in MATLAB/Simulink, integrating the photovoltaic array, the hybrid energy storage system (flywheel plus battery energy storage system), and the VSG-controlled inverter. The total simulation time is 4 seconds. The irradiance profile is: 0–1 s at 1000 W/m², 1–2.5 s at 1100 W/m², and 2.5–4 s at 800 W/m²; temperature is constant at 25 °C. The VSG active power reference is set to 150 kW, and the reactive power reference is 0 Var. The grid is modeled as a stiff source with a voltage sag of 5% applied between t=2 s and t=3 s.
The VSG output power tracking is shown in the figures (not reproduced here). Under normal conditions, the active power closely follows the reference, and reactive power remains near zero. When the grid voltage drops at t=2 s, the VSG automatically increases its reactive power output to support the voltage, mimicking the behavior of a synchronous generator’s exciter. The machine-side (VSG terminal) three-phase voltage responses are recorded. The following tables summarize the peak voltage values before, during, and after the sag for both the case without VSG control (only conventional inverters) and with VSG control.
| Operating Condition | Time Interval (s) | Grid Voltage Sag (V) | Terminal Phase Voltage Peak (V) |
|---|---|---|---|
| Normal operation | 0–2 | 0 | ±310.269 |
| Voltage sag period | 2–3 | 15.514 | ±294.755 |
| Recovery | 3–4 | 0 | ±310.269 |
| Operating Condition | Time Interval (s) | Grid Voltage Sag (V) | Terminal Phase Voltage Peak (V) |
|---|---|---|---|
| Normal operation | 0–2 | 0 | ±310.566 |
| Voltage sag period | 2–3 | 0.797 | ±309.769 |
| Recovery | 3–4 | 0 | ±310.566 |
The results clearly demonstrate that the hybrid energy storage system with VSG control reduces the voltage drop from 15.514 V to only 0.797 V, a mitigation of approximately 95%. This significant improvement is attributed to the fast reactive power injection from the VSG, which is powered by the combined action of the battery energy storage system and the flywheel. The flywheel responds within the first few cycles, while the battery energy storage system sustains the reactive power output for the entire sag duration. Table below quantifies the performance metrics:
| Metric | Without VSG | With VSG |
|---|---|---|
| Voltage sag magnitude (V) | 15.514 | 0.797 |
| Percentage of rated voltage drop | 5.0% | 0.26% |
| Recovery time to 99% steady state (s) | 0.8 | 0.1 |
| Reactive power injection peak (kVAr) | 0 | 40 |
To visually illustrate the system architecture and the integration of the battery energy storage system with the flywheel and PV array, the following conceptual diagram shows the layout of our experimental setup. The hybrid storage system is coupled through a common DC bus to the VSG inverter, which interfaces with the grid.

In the simulation, the battery energy storage system SOC remains within 50% to 80% during the event, ensuring sufficient energy reserve. The flywheel speed decreases by approximately 10% transiently but recovers using the battery energy storage system power after the sag. This synergy underscores the importance of hybrid configurations where the battery energy storage system provides the bulk energy, and the flywheel handles the high-frequency component.
Conclusion
We have presented a comprehensive study on a hybrid energy storage system combining flywheel storage and a battery energy storage system for transient voltage stability support in high-penetration renewable grids. By integrating virtual synchronous generator control, the system emulates the inertia, damping, and voltage regulation characteristics of conventional synchronous machines. Simulation results under a 5% grid voltage sag demonstrate that the proposed strategy reduces the terminal voltage drop from 15.514 V to 0.797 V, achieving a 95% reduction. The fast response of the flywheel combined with the sustained power capability of the battery energy storage system ensures robust support during the entire disturbance. Our findings validate that the hybrid energy storage system with VSG control is a promising solution for enhancing the resilience of future power systems dominated by inverter-based resources. The battery energy storage system remains central to this architecture, providing the necessary energy foundation for prolonged voltage support. Future work will explore experimental validation, optimization of the battery energy storage system sizing, and coordination with wide-area stability controls.
