1 Introduction

As renewable energy sources (RESs) integration has considerably increased, the microgrid concept has been developed. According to the U.S. Department of Energy (DOE) [1], a microgrid is defined as a cluster of DERs and local loads connected to the utility grid, which can operate in parallel to the grid or isolated as an island. The microgrid concept also includes the integration and control of storage assets in order to ensure a high power quality [2, 3].

In the literature, the critical role of the energy storage system is focused on the regulation of the voltage and frequency [4] and on preserving the power balance due to the intermittent operation of the RESs [3, 4]. Furthermore, other ancillary functions of the energy storage may include the low-voltage ride-through (LVRT) capability, load leveling, peak shaving and operating reserve [3, 5]. When the microgrid is comprised of RESs and energy storage systems in island operation mode, the energy storage usually acts as grid-forming source and regulates the common AC bus appropriately, while the RESs are controlled to inject the available power to the microgrid [6]. However, this approach may lead the SoC to unsafe operation, provoking a damage in the energy storage. Furthermore, an active power imbalance among the generation and the consumption may deteriorate the microgrid frequency regulation [7]. Therefore, the control strategy should take into account the SoC control, ensuring a prolonged lifetime for the battery.

Since in island operation mode, the frequency is no longer imposed by the utility grid, several control strategies propose the implementation of a secondary control for frequency regulation in order to ensure a frequency within a stipulated band [8]. This supervisory control level can be implemented either in a centralized or decentralized way [9, 10]. In case of implementing a centralized control method, a microgrid central controller (MCC) modifies the control of the DERs appropriately, by gathering measurements from local controllers [10]. In this control approach, the communication is considered necessary. However, the system reliability is reduced, since it is dependent on the operation of a physical communication system. On the other hand, the decentralized approach aims at providing the highest possible autonomy [11, 12]. Nevertheless, in many cases the communication is still considered a basic principle of the control.

In [13, 14], frequency is used as a communication agent for the energy control in an islanded microgrid, with no need of further communication. The goal focuses on the adjustment of the conventional droop method, considering the frequency variation and the SoC of the energy storage. In [15], a decentralized energy management integrated in a microgrid with PVs and batteries is examined. The SoC of the battery determines the microgrid frequency, nevertheless additional control schemes are needed to achieve coordination with other kind of DERs. In [16], the frequency is also used as a communication parameter of the SoC of the energy storage system in a microgrid with converter-interfaced DERs. However, all the connected sources are considered as converter-interfaced DERs, while, due to the presence of secondary control and the associated communication network, only a limited frequency deviation is used in the control strategy implementation. Moreover, in [16], no fault-clearance methods are examined, and no voltage regulation is investigated. A power control strategy focusing on the control of the SoC of the energy storage is also proposed in [17]. The frequency is used again as a communication signal for sending the information of charging/discharging to all DERs. However, only converter-interfaced generation units are considered.

This paper investigates the case of a microgrid in a small Greek island, which is currently supplied by conventional power sources. The conventional power sources are synchronous generators, driven by diesel engines; three generators, each one rated at 220 kVA, 400 V, 50 Hz and one generator rated at 90 kVA, 400 V, 50 Hz. The loads are concentrated, representing the small town consumption. According to measurements, the peak load is 350 kW (15-min average power) during summer period, while it is reduced to 70 kW during the winter. The annual energy consumption corresponds to 1020 MWh.

Since the most abundant RESs in Greece are wind and solar power, this case study proposes the replacement of the conventional diesel-driven generators with a microgrid consisting of a 230 kWp PV installation and two asynchronous wind generators (WGs) of 275 kW each one. The energy production of the RESs cover in average 90 % of the total load energy consumption. Taking into account a projected 50 % increase of the load demand, the total annual energy consumption yields 1530 MWh. The WGs cover approximately 80 % of the projected annual energy consumption (1224 MWh), while the rest 20 % (306 MWh) is covered by the PVs.

In order to maintain the power balance in the microgrid, a battery of 7.3 MWh is also added. The battery bank is selected to provide one day autonomy in the month with the peak demand, which equals to 4 MWh, representing a typical day in August. The permissible depth of discharge (DOD) is assumed 60 %, while the converter efficiency is considered equal to 95 %. In order to protect the microgrid from faults, the battery converter is sized to inject 1.5 p.u. of its nominal current for 2 s (at 400 V level), i.e. 1500 A in the microgrid under study. Thus, the apparent power of the battery converter is 850 kVA at 400 V rated voltage. The microgrid under study is presented in Fig. 1.

Fig. 1
figure 1

Single-line microgrid scheme

In order to ensure power balance among the power production and consumption without implementing any physical communication between the DERs in this small Greek island, this paper proposes a decentralized control strategy based only on local measurements for the effective frequency control in a microgrid with an energy storage system. The energy storage is considered as the converter-interfaced battery. According to the proposed methodology, the battery converter adjusts the microgrid frequency by considering its SoC and implementing a proposed droop curve. Thus, the information of the SoC is transferred indirectly through the frequency to all DERs, which determine their power output appropriately. In this way, the frequency always remains within the preassigned limits, while the SoC control ensures a prolonged battery lifetime. Finally, the case of a short-circuit is examined. The battery converter identifies the fault due to the deep voltage decrease and modifies its control in order to inject a large current. The fault is cleared within a few seconds.

The paper is organized as follows: Section 2 describes the microgrid modelling. Extended simulation results are demonstrated and discussed in Section 3. Finally, the control strategy advantages are concluded in Section 4.

2 System description and modelling

2.1 Battery energy storage system model

The battery bank consists of three parallel battery strings, each string composed by 450 OPzS-type lead-acid batteries of 2 V, 2700 MWh connected in series. The battery bank is modelled as a variable DC voltage source in series with an internal resistance [18]. The internal battery resistance depends on the SoC and temperature, while its value differs between charging and discharging periods. However, since the proposed control method presents small sensitivity to the variations of the battery terminal voltage, the internal resistance is considered constant (20 mΩ). The open-circuit voltage of a 2 V battery depends on the SoC of the battery according to the following polynomial equation:

$$V_{\text{oc}} = a + b \cdot SoC + c \cdot SoC^{2} + d \cdot SoC^{3}$$
(1)

where V oc represents the open-circuit voltage, and the parameters are equal to: a = 1.958, b = 1.155 × 10−3, c = 2.946 × 10−5, d = −2.112 × 10−7. The open-circuit voltage are equation is illustrated in Fig. 2, given by the battery manufacturer [19]. In order to filter the high order harmonics and decrease the DC current ripple at 20 % of the nominal current, an LC filter with parameters L = 1 mH and C = 100 μF is placed on the output of the battery bank. The SoC of the battery is calculated by measuring the current injection from the battery and taking the initial electrical charge of the battery into account:

$$SoC(t) = \frac{{Q_{0} - \int\limits_{{t_{0} }}^{t} {I_{\text{bat}} } }}{{Q_{\text{bat}} }}$$
(2)

where Q 0 is the battery charge at t = t 0, Q bat is the nominal battery charge and I bat the battery current.

Fig. 2
figure 2

Open-circuit voltage V oc − SoC characteristic of a 2 V battery cell

The bidirectional DC/AC three-phase converter is placed at the output of the filter. This converter is formed by a sinusoidal pulse width modulation (SPWM) and its purpose in steady-state mode is to control the magnitude and frequency of the AC bus, according to the proposed control strategy. For this reason, it can be characterized as a grid-forming converter [20]. Furthermore, taking measurements from the battery bank about its SoC, the converter undertakes the charge and discharge operation of the battery.

The control strategy is based on forming an AC microgrid with frequency proportional to the SoC of the battery. Therefore, each DER measures the SoC of the battery indirectly, by measuring the frequency at their nodes. By implementing the proposed control strategy, no further communication signal is needed to be transferred, while the frequency of the main bus remains within the preassigned limits imposed by [8] for islanded grids.

The proposed droop curve is shown in Fig. 3. When the SoC of the battery equals to 40 % (DOD = 60 %), the battery is considered empty and the frequency takes the minimum permissible value, i.e. 49 Hz. When the SoC is equal to 100 % and the battery is fully charged, the frequency corresponds to the maximum permissible value, i.e. 51 Hz. The mathematical equation can be expressed as:

$$f_{\text{ref}} = f_{\hbox{min} } + m_{1} \cdot (SoC - SoC_{\hbox{min} } )$$
(3)
$$m_{1} = \frac{{f_{\hbox{max} } - f_{\hbox{min} } }}{{SoC_{\hbox{max} } - SoC_{\hbox{min} } }}$$
(4)

where f ref is the reference frequency, f max = 51 Hz, f min = 49 Hz, SoC max = 100 % and SoC min = 40 %.

Fig. 3
figure 3

Battery storage system control scheme

The internal control of the converter is also presented in Fig. 3. In order to maintain the line voltage of the AC bus at 400 V rms independently of the active and reactive power deviations among the DERs and the loads, a feedback control compares the magnitude of the measured voltage with the desired of 400 V. Since the nominal open-circuit voltage of the discharged battery is sufficiently high, the converter operates constantly at the linear region.

By implementing the proposed control strategy, the converter operates at four quadrants, allowing the charging and discharging of the battery bank. Finally, the converter absorbs or injects the appropriate amount of reactive power to maintain the voltage at 400 V.

2.2 PV system model

The PV installation consists of 920 PV panels of 250 Wp each, forming a DC voltage equal to 700 V. The PV model is developed in PSIM environment [21] and the corresponding parameters appear in [22]. A DC/AC converter is used in order to inject the reference value of the active and reactive power. The active power is equal to the minimum among the following calculations: ① the active power determined by the maximum power point tracker (MPPT) and ② the active power resulted by the proposed active power -frequency characteristic, which is presented in Fig. 4. According to this characteristic, the active power injection ceases when the microgrid frequency reaches the maximum value of 51 Hz. This situation refers to the case of a fully-charged battery, where there is no need for power from the PVs. The implemented control strategy proposes the linear deterioration of the active power injection, when the system frequency decreases from 51 Hz to 50.67 Hz, i.e. from the fully-charged situation of SoC = 100 % to almost fully-charged of SoC = 90 %:

$$P_{\text{PV}} = P_{\text{MMPT}} \quad {\text{for}}\quad f_{\text{m}} \le 50. 6 7\;{\text{Hz}}$$
(5)
$$P_{\text{PV}} = P_{\text{MPPT}} - m_{2} \cdot\left( {f_{\text{m}} - 50.67} \right)\quad {\text{for}}\quad f_{\text{m}} \ge 50. 6 7\;{\text{Hz}}$$
(6)
$$m_{2} = \frac{{P_{\text{MPPT}} }}{{f_{\hbox{max} } - 50.67}}$$
(7)

where f m is the microgrid frequency, as it is measured by the phase locked loop (PLL).

Fig. 4
figure 4

PV control scheme

Therefore, the converter calculates the active power from the measured voltage and current components at the output filter and compares with the injected active power. The error signal is driven to a PI controller in order to determine the active power current component, i p. The deterioration of the injected power is implemented by shifting away from its MPP.

The reactive power is determined by comparing the reactive power current capability of the converter, i q1, with i q2, which corresponds to the appropriate amount of reactive power in order to keep the voltage at the terminals of the converter at 400 V:

$$i_{q} = \hbox{min} \{ i_{q1} ,i_{q2} \}$$
(8)
$$i_{q1} = \sqrt {I_{N}^{2} - i_{p}^{2} }$$
(9)

where I N is the nominal current of the converter.

The PV converter can be considered as grid-supplier converter, which injects the reference active and reactive power. The reference output current is formed by the active and reactive power components i p and i q , respectively. This current is used in a hysteresis current band of 1 % width, in order to form the SPWM. The control scheme of the PV converter is presented in Fig. 4. The amplitude of the current i ref is formed by the currents i p and i q , while the angle from the PLL angle θ PLL and the reference angle φ ref as follows:

$$i_{\text{ref}} = \sqrt {i_{p}^{2} + i_{q}^{2} }$$
(10)
$$\varphi_{\text{ref}} = \tan^{ - 1} \left( {\frac{{i_{q} }}{{i_{p} }}} \right) - \theta_{\text{PLL}}$$
(11)

2.3 Wind generators

The wind generators are modelled as squirrel cage asynchronous machines with parameters as appear in Table 1. The generators are directly coupled to the microgrid, operating as constant-speed wind generators, without needing any further control or any converter, as shown in Fig. 5. The active power output depends on the wind velocity, as it is presented in Fig. 6. When the wind speed varies among 3 m/s and 13 m/s, the WG follows the wind power, while for higher wind speed up to 20 m/s, it operates as constant power source by adjusting the mechanical torque. During the battery charge (df m/dt > 0), the WGs are disconnected when the frequency reaches 51 Hz. On the other hand, during the battery discharge (df m/dt < 0), the WGs are reconnected when the frequency drops below a limit, in order to avoid a cycle of continuous connections and disconnections. This limit can be evaluated through long-time observations. In this paper, the frequency limit for reconnection is considered equal to 49.67 Hz, i.e. SoC = 60 %. The connections/disconnections of the WGs are performed by an over/underfrequency relay through the signal sw.

Table 1 WG parameters
Fig. 5
figure 5

WG control scheme

Fig. 6
figure 6

Wind speed-active power characteristic of a 275 kW WG

3 Simulation results

The examined microgrid is depicted in Fig. 1. The load is considered as a concentrated three-phase symmetrical constant power load. The connection lines are of ACSR 35 mm2 type with resistance R = 0.576 Ω and inductance X = 0.397 Ω. A 0.4/15 kV transformer is connected at the output of the DERs and the load, with electrical parameters given in the Table 2.

Table 2 Transformer 0.4/15 kV parameters [23]

Three different simulation cases are examined, by using PSIM software. For simulation purposes, the nominal battery electrical charge is considered equal to 8100 A·s.

3.1 Case 1: constant wind speed

In the first case, the wind speed is considered constant and equal to 15 m/s. According to Fig. 6, each WG injects 275 kW. The power from the MPP tracker of the PV offers 100 kW. Therefore, the total available active power from the RESs is 650 kW, while the aggregated load demands 400 kW with power factor (pf) equal to 0.8. Initially, at t = 1 s, the SoC of the battery equals to 98.8 %, therefore it charges until the fully-charged condition. The frequency of the common AC bus is set to 50.93 Hz by the battery converter. Since the frequency is higher than 50.67 Hz, the PV converter injects active power by following the active power-frequency curve, as shown in Section 2.2. The simulation results are shown in Fig. 7.

Fig. 7
figure 7

Simulation results for case 1

When the SoC of the battery reaches the value of 100 % and frequency is set to 51 Hz, at t = 1.5 s, the over/under frequency relay of the wind generators (R14) is activated and disconnects them from the microgrid, resulting in a new power balance. The active power deficit is covered by the battery, which changes its operation mode to discharge mode. As a result, the frequency decreases linearly and the converter of the PV increases the injected active power. At t = 6.6 s, the frequency becomes equal to 49.67 Hz (i.e. SoC = 60 %), and the wind generators reconnect to the microgrid, forming again a new combination of active power among the DERs. Since the microgrid load consumption can be fulfilled and there is a surplus of active power, the battery control changes to charging operation mode, as is shown in Fig. 7. The SoC of the battery increases, causing a respective increase in the common frequency. When the frequency exceeds 50.67 Hz, the PV converter decreases linearly its injected active power. When the frequency reaches 51 Hz (at t = 13.7 s), the PV zeroes its output, while the WGs disconnect from the microgrid, in order to protect the battery from overcharging.

According to the presented simulation results, the proposed control strategy ensures that the frequency remains inside the strict limits of [8], meanwhile, the SoC of the battery is controlled effectively. Thus, the load is supplied with a high power quality.

3.2 Case 2: variable wind speed

The second simulation test deals with the effect of the wind speed variation. The load is still considered equal to 400 kW, pf = 0.8, while the PV MPPT 100 kW. The battery SoC equals to 49.7 % forming an AC voltage of 49.32 Hz frequency. At t = 1 s, the WGs operate at 8 m/s and inject 300 kW active power to the microgrid. At t = 1.5 s, a wind speed oscillation with magnitude equal to 4 m/s and frequency of 1 Hz takes place. At this range of wind speed, the mechanical power of the WGs follows the wind power.

Assuming the rotational speed of the WG almost constant, the variation of the mechanical torque T mech can be given by the following equation:

$$T_{\text{mech}} ({\text{kNm}}) = - 2.86 + 1.43\sin (2\pi t)$$
(12)

Due to the WG inertia, while the mechanical torque oscillates with an amplitude equal to 50 % of its average speed, active power variation is restricted to 25 % of its average power. The simulation results appear in Fig. 8. As is demonstrated, the wind speed variation is absorbed by the battery, causing a respective variation in the frequency of the AC bus. When the battery charges, the frequency increases, while the opposite effect takes place when the battery discharges. Since the frequency is always below 50.67 Hz, the PV is not affected and contributes with 100 kW. Despite of the large wind speed variation with the corresponding fluctuation in the reactive power of the WGs, the effect on the voltage of the common AC bus is seamless.

Fig. 8
figure 8

Simulation results for case 2

The simulation results presented in this case show that the proposed control strategy can absorb any large wind speed variations, while the frequency and the voltage still remains among the preassigned limits.

3.3 Case 3: short-circuit at the load

The final case examines a solid short-circuit at the load terminals. At t = 1 s, the WGs contribute with 300 kW and the battery SoC equals to 49.4 %. As a result, the frequency of the common AC bus is set to 49.31 Hz and the PV injects the active power from the MPPT, which is equal to 100 kW. Each load L1 and L2 absorbs 200 kW, pf = 0.8, therefore the battery does not inject any active power. At t = 1.5 s, a short-circuit takes place at the terminals of the load L2, as it is shown in Fig. 1. When the voltage rms value drops below 300 V (as shown in Fig. 9), the battery converter senses the fault and adjusts the control to current-control mode in order to inject a current equal to 1500 A and clear the fault. As long as the voltage remains at very low values, the over/under voltage relays R14 of the WGs and R12 the PV respectively are activated disconnecting these DERs. As a result, only the battery feeds the fault with this large current, causing the respective activation of the protection device at t = 3.5 s, i.e. 2 s after the short-circuit appearance.

Fig. 9
figure 9

Simulation results

Subsequently, the battery converter returns to voltage-source control mode and the RESs reconnect to the microgrid. The microgrid returns to steady-state operation after a small transient effect. Since L2 is disconnected from the microgrid, the aggregated load current becomes lower than in the pre-fault operation. As a result, the total active power balance has changed and the surplus of active power is absorbed by the battery. The simulation results are presented in Fig. 9, proving the effectiveness of the proposed control strategy. As is figured, the battery discharges during the fault and its corresponding SoC is decreasing. After the fault clearance, the battery switches to charge mode and its SoC is increasing.

4 Conclusion

A new frequency-based control strategy for a microgrid with an energy storage is proposed. The frequency of the main AC bus is determined by the battery SoC in terms of implementing a proposed droop curve. The microgrid could consist of both converter-interfaced and rotating generators. In the examined microgrid, only RES have been considered, showing the effectiveness of the proposed methodology even under intermittency of the primary source. The aim of the proposed control strategy is to ensure a frequency deviation among the strict limits of the Standard EN 50160 for providing a high quality power to the connected loads. At the same time, the battery SoC is controlled in order to avoid overcharging or deep discharging. Finally, in case of a solid short-circuit within the microgrid, the battery undertakes to feed the fault with a high current and clear it. The proposed methodology is confirmed by detailed simulation results representing a microgrid in a Greek island. The microgrid contains a battery as an energy storage and is mainly fed by PVs and WGs.