Simulation Study on Flexible and Safe Operation of Wind-PV-Storage Microgrids Using Battery Energy Storage Systems

The transition from conventional fossil fuel-based energy systems to those dominated by renewable sources is a critical global imperative, driven by pressing concerns over energy security and environmental degradation. Among renewables, wind and solar photovoltaic (PV) power have witnessed unprecedented deployment. However, their inherent intermittency and stochastic volatility pose significant challenges to power system stability and can lead to substantial curtailment in regions with high penetration. Microgrids offer a promising solution by integrating distributed energy resources (DERs), loads, and energy storage systems (ESS) into a cohesive, locally manageable entity—a “source-grid-load-storage” integrated system. This architecture enhances the utilization rate of renewable generation and improves local reliability. Despite progress, the commercial maturation of microgrids, particularly in China, remains in a demonstration phase, with the flexible application of energy storage technologies requiring further exploration. Therefore, investigating the strategic role of battery energy storage systems (BESS) within microgrids is paramount for facilitating their transition to robust, commercial-scale operation.

Various energy storage technologies are applicable in renewable-based microgrids, including chemical (e.g., hydrogen), electrochemical (e.g., lithium-ion, flow, and lead-acid batteries), electromagnetic (e.g., superconducting magnetic, supercapacitor), and mechanical (e.g., flywheel, pumped hydro, compressed air) storage. Electrochemical battery energy storage systems, characterized by rapid installation, declining costs, fast response, and relatively low spatial requirements, have garnered significant attention for microgrid applications. This study focuses on the application of a BESS within a hybrid wind-PV-storage microgrid, analyzing its coordinated control for ensuring flexible and secure operation under both grid-connected and islanded modes.

System Architecture and Mathematical Modeling

The proposed microgrid is designed for a 100% renewable penetration scenario, typically suited for remote areas or specific industrial parks. Its configuration is based on local resource assessment and load profile analysis to achieve cost-effective and reliable operation. The core components include a 2 MW direct-drive permanent magnet synchronous generator (PMSG) based wind turbine, a 1 MW PV array, and a 500 kWh battery energy storage system. The system’s structural integration is shown conceptually above, highlighting the power electronic interfaces (AC/DC and DC/AC converters) that enable power flow control and grid synchronization.

The fundamental power balance equation governing the microgrid operation at any time instant \( t \) is:

$$ P_g(t) = P_W(t) + P_{PV}(t) + P_{BESS}(t) – P_L(t) $$

where \( P_g(t) \) is the power exchange with the main distribution grid (positive for import, negative for export), \( P_W(t) \) and \( P_{PV}(t) \) are the active power outputs from the wind and PV systems, respectively, \( P_{BESS}(t) \) is the active power from the battery energy storage system (positive for discharging, negative for charging), and \( P_L(t) \) is the local active load demand.

The net power imbalance \( \Delta P(t) \) within the microgrid, before grid interaction or BESS action, is defined as:

$$ \Delta P(t) = \sum_{m=1}^{n} P_m(t) – P_L(t) $$

where \( P_m(t) \) represents the power from the \( m \)-th distributed generator. The sign and magnitude of \( \Delta P(t) \) directly dictate the required operating mode of the battery energy storage system.

The state of charge (SOC) of the battery energy storage system is a critical state variable. Its discrete-time evolution during charging and discharging is given by:

$$
\begin{cases}
SOC(t) = SOC(t-1) + \dfrac{P_{BESS}(t) \eta_c \Delta t}{E_{BESS}} & \text{(Charging, } P_{BESS}<0) \\[10pt]
SOC(t) = SOC(t-1) – \dfrac{P_{BESS}(t) \Delta t}{\eta_d E_{BESS}} & \text{(Discharging, } P_{BESS}>0)
\end{cases}
$$

where \( \eta_c \) and \( \eta_d \) are the charging and discharging efficiencies, \( \Delta t \) is the time step, and \( E_{BESS} \) is the rated energy capacity of the BESS. To ensure the longevity and safe operation of the battery energy storage system, its SOC must be maintained within strict boundaries:

$$ SOC_{ll} \leq SOC(t) \leq SOC_{ul} $$

For this study, \( SOC_{ul} = 0.8 \) and \( SOC_{ll} = 0.2 \) are adopted, preventing deep discharge and overcharge conditions.

Table 1: Key Parameters of the Wind-PV-Storage Microgrid System
Component Parameter Value
Wind Turbine Rated Power 2 MW
Generator Type Direct-Drive PMSG
PV System Rated Power 1 MW
Configuration Two 500 kW Arrays
Battery Energy Storage System (BESS) Energy Capacity 500 kWh
Power Rating 500 kW
SOC Upper Limit (\(SOC_{ul}\)) 0.8
SOC Lower Limit (\(SOC_{ll}\)) 0.2

Coordinated Energy Management and Control Strategy

The energy management system (EMS) is the central intelligence of the microgrid. Its primary objective is to maintain instantaneous power balance while optimizing the use of local renewables and protecting the battery energy storage system. The control strategy varies significantly between grid-connected and islanded modes of operation.

Grid-Connected Mode Control

In this mode, the main grid provides voltage and frequency reference. The control priority is:

  1. Renewable sources (wind and PV) supply the local load first.
  2. The surplus or deficit power \( \Delta P(t) \) is managed according to the state of the battery energy storage system:
    • If \( \Delta P(t) > 0 \) (surplus) and \( SOC < SOC_{ul} \), the BESS charges using the excess power.
    • If \( \Delta P(t) > 0 \) and \( SOC \geq SOC_{ul} \), the surplus is fed into the main grid.
    • If \( \Delta P(t) < 0 \) (deficit) and \( SOC > SOC_{ll} \), the BESS discharges to cover the shortage.
    • If \( \Delta P(t) < 0 \) and \( SOC \leq SOC_{ll} \), the deficit is imported from the main grid.

Islanded Mode Control

When disconnected from the main grid, the battery energy storage system’s inverter must establish and regulate the grid voltage and frequency. The control logic becomes more critical:

  1. Renewables and the BESS collectively supply the load.
  2. Power imbalance \( \Delta P(t) \) is solely addressed by the BESS and, if necessary, load management:
    • If \( \Delta P(t) > 0 \) and \( SOC < SOC_{ul} \), the BESS charges.
    • If \( \Delta P(t) > 0 \) and \( SOC \geq SOC_{ul} \), the EMS must curtail renewable generation (rare, used as last resort).
    • If \( \Delta P(t) < 0 \) and \( SOC > SOC_{ll} \), the BESS discharges.
    • If \( \Delta P(t) < 0 \) and \( SOC \leq SOC_{ll} \), the EMS must shed non-critical loads to maintain stability.
Table 2: BESS Action Based on Power Imbalance and SOC
Condition \( \Delta P(t) \) BESS SOC Status Grid-Connected Action Islanded Action
> 0 (Surplus) SOC < SOC_{ul} BESS Charges BESS Charges
> 0 (Surplus) SOC ≥ SOC_{ul} Export to Main Grid Renewable Curtailment
< 0 (Deficit) SOC > SOC_{ll} BESS Discharges BESS Discharges
< 0 (Deficit) SOC ≤ SOC_{ll} Import from Main Grid Load Shedding

Simulation Modeling and Scenario Analysis

A detailed time-domain simulation model of the complete microgrid was developed in the MATLAB/Simulink environment. The model includes dynamic representations of the wind turbine with its full-scale converters, the PV system with maximum power point tracking (MPPT) controllers, the bidirectional DC-DC converter and inverter for the battery energy storage system, and the local RL load. The control strategies outlined above were implemented in the EMS logic block. To simulate realistic operation, measured wind speed and solar irradiance data from a typical day (08:00 to 16:00) were fed into the respective generation models. Two key operational scenarios were analyzed to validate the system’s performance and the effectiveness of the battery energy storage system control.

Table 3: Simulation Scenarios and Parameters
Scenario Mode Load Profile Primary Objective
Scenario 1 Grid-Connected Constant: 0.6 MW + 0.3 MVar Validate power balance & grid interaction.
Scenario 2 Islanded Step Change: 0.6 MW → 1.5 MW at t=12:00 Test BESS response to load transients and voltage regulation.

Scenario 1: Grid-Connected Operation

Under this scenario, the microgrid operates connected to an infinite bus. The results demonstrate the basic power-sharing principles. The voltage at the point of common coupling (PCC) remains stable and sinusoidal, dictated by the main grid. The combined output of the wind and PV systems exceeds the constant 0.6 MW load demand for most of the simulated period. Consequently, the power balance equation shows \( P_g(t) \) is negative, indicating a net power export to the main grid. The load’s reactive power demand (0.3 MVar) is entirely supplied by the grid. The battery energy storage system remains idle in this particular simulation because the initial SOC is high, and the strategy prioritizes selling surplus to the grid over charging when SOC is near its upper limit. This confirms the strategy’s economic logic in grid-connected mode. The power curves clearly show that \( P_W(t) + P_{PV}(t) – P_L(t) \approx -P_g(t) \), validating the power balance model. The successful maintenance of stable voltage and frequency, along with correct power flow direction, verifies the control strategy’s effectiveness for normal grid-tied operation.

Scenario 2: Islanded Operation with Load Step Change

This scenario critically tests the microgrid’s autonomy and the responsiveness of the battery energy storage system. Initially, the load is 0.6 MW. The wind and PV generation is sufficient, leading to a positive \( \Delta P(t) \). With the BESS SOC below its upper limit, the EMS commands the battery energy storage system to charge, absorbing the excess renewable generation. The BESS inverter operates in grid-forming mode, maintaining a stable 50 Hz voltage at the PCC. At t = 12:00 (simulation time), the active load is stepped up to 1.5 MW, creating a large power deficit \( \Delta P(t) \). The EMS immediately responds by reversing the power flow of the battery energy storage system from charging to discharging. Key observations from the simulation include:

  1. Voltage Stability: The PCC voltage, now supported solely by the BESS inverter, exhibits a very minor and transient deviation during the load step but quickly recovers to its rated value, demonstrating excellent voltage regulation capability of the battery energy storage system’s power electronics.
  2. Power Tracking: The discharge power \( P_{BESS}(t) \) increases sharply to compensate for the load increase. The sum \( P_W(t) + P_{PV}(t) + P_{BESS}(t) \) instantly tracks the new load level \( P_L(t) \), achieving power balance within the isolated system.
  3. BESS Dynamics: The battery current \( I_B \) switches from negative (charging) to positive (discharging). The battery terminal voltage \( U_B \) shows a corresponding step decrease due to the internal impedance under the high discharge current. The SOC curve slope changes sign, indicating the transition from charging to discharging state, and its rate of decrease accelerates post the load step.

This scenario conclusively proves that the coordinated control strategy enables the battery energy storage system to effectively manage significant load disturbances in islanded mode, ensuring continuous and stable power supply by rapidly compensating for the power imbalance.

Discussion on BESS Sizing and Strategy Refinement

The 500 kWh / 500 kW battery energy storage system in this case study was effectively managed by the proposed strategy to handle the specific daily profile and a 0.9 MW load step. However, general sizing requires more extensive analysis. The required energy capacity \( E_{BESS}^{req} \) is primarily driven by the need to cover the largest expected energy deficit over the autonomy duration, considering renewable forecasts. A simplified adequacy check involves analyzing the cumulative energy imbalance:

$$ E_{deficit}(T) = \int_{t_0}^{T} \max( P_L(\tau) – P_W(\tau) – P_{PV}(\tau), 0 ) \, d\tau $$

The BESS must be sized such that \( \eta_d E_{BESS} \geq \max(E_{deficit}) \) over the desired islanding period, subject to SOC limits. Similarly, the power rating \( P_{BESS}^{rated} \) must satisfy \( P_{BESS}^{rated} \geq \max( |\Delta P(t)| ) \) for the worst-case transient within the allowed SOC band. Furthermore, the chosen double-layer control strategy (primary grid-forming/following and secondary energy management) is effective but can be enhanced. A tertiary layer involving economic dispatch could be added for grid-connected mode, where the battery energy storage system schedules its charges/discharges to arbitrage time-of-use electricity prices or to provide grid services, while still respecting its SOC limits for islanding readiness. Model predictive control (MPC) could also be integrated into the EMS, using forecasts of generation and load to optimize the BESS power trajectory, minimizing wear and improving economics.

Conclusion

This study presented a comprehensive simulation-based analysis of a hybrid wind-PV-storage microgrid, with a focused investigation on the control of the integrated battery energy storage system. A detailed dynamic model was established, incorporating realistic renewable generation profiles. A rule-based, SOC-dependent energy management strategy was proposed and implemented for both grid-connected and islanded operational modes. The simulation of two key scenarios—steady grid-connected operation and islanded operation with a significant load step change—validated the efficacy of the control approach. The results demonstrated that the battery energy storage system successfully maintains instantaneous active power balance: it stores excess renewable energy when available and discharges to compensate for deficits during periods of high load or low generation. Crucially, the control logic actively prevents the battery energy storage system from exceeding its safe SOC operating range, thereby protecting its health and ensuring long-term operational availability. In islanded mode, the battery energy storage system’s inverter seamlessly transitioned to grid-forming operation, providing stable voltage and frequency regulation even under a large load transient. This research confirms that a properly sized and intelligently controlled battery energy storage system is the cornerstone for achieving flexible, reliable, and safe operation of renewable-dominant microgrids, facilitating higher renewable penetration and moving such systems closer to commercial maturity.

Scroll to Top