Scientific Research

An Academic Publisher

Virtual Synchronous Generator Based Current Synchronous Detection Scheme for a Virtual Inertia Emulation in SmartGrids ()

^{1*}, Martin Fregelius

^{1}, Dalmo Cardosa Silva

^{2}, Tatiana Potapenko

^{1}, Johannes Hjalmarsson

^{1}, James Kelly

^{3}, Irina Temiz

^{1}, Janaina Goncalves de Oliveira

^{1,2}, Cecilia Boström

^{1}, Mats Leijon

^{1,4}

^{1}Division of Electricity, Department of Engineering Sciences, Uppsala University, Uppsala, Sweden.

^{2}Department of Electrical Engineering, Universidade Federal de Juiz de Fora, Juiz de Fora, Brazil.

^{3}MaREI—Centre for Marine and Renewable Energy Ireland, University College Cork, Cork, Ireland.

^{4}Department of Electrical Engineering, Chalmers University of Technology, Gothenburg, Sweden.

Keywords

Share and Cite:

*Energy and Power Engineering*,

**11**, 99-131. doi: 10.4236/epe.2019.113007.

1. Introduction

The concern for climate change and the demand for energy have increased the demand for renewable energy considerably. For technical, economic and environmental reasons, the share of electricity generation by renewable energy resources (RES), such as solar power, wind power, tidal and wave power etc., is growing rapidly [1] . The increasing penetration of RES has significant advantages but there are challenges as well [2] . The most crucial challenge is the operating stability alongside conventional generation units [3] [4] . Other technical challenges are the problems of maintaining the RES, contributing to the system voltage and frequency regulation, transients, harmonics, and control design in both connected and isolated modes [5] [6] .

Carrsaco et al. [7] presented different control methods for harvesting an optimum amount of energy from RES and injecting the extracted power into the grid. Many studies have been conducted on distributed generation (DG) and have promoted the use of RES as a microgrid (MG) structure [8] [9] [10] . The idea of a MG was first proposed by the Consortium for Electric Reliability Technology Solutions (CERTS) [11] . Microgrids are generally considered to be mature and flexible interconnected systems [12] [13] . The structure of MGs is an interconnection of distributed energy resources (DER) [14] , such as microturbines, wind turbine generator (WTG), wave energy converters (WEC), fuel cells and photovoltaics (PV) integrated with storage devices, such as batteries, ﬂywheels, superconducting magnetic energy storage (SMES) systems [15] , and power capacitors on low voltage distribution systems [16] . The RES are considered as small generating units connected with the customer load and integrated with the power grid in the form of DG. The MGs are usually placed in low voltage and medium voltage distribution networks [17] .

The electricity generation in a traditional power system relies on fully dispatchable power generation units including rotating SGs enabled with stored kinetic energy. The crucial property of the frequency and stability dynamics is the rotational inertia (rotating mass) which is added by the conventional SGs due to the electro-mechanical coupling [18] . In electricity grids, the frequency of the voltage is stabilized by a combination of the rotational inertia of the SGs in the grid and a control algorithm acting on the rotational speed of a number of major SGs [19] . When the rotating inertia drops, it causes a variation in the frequency that can lead to an unstable grid situation. To overcome this situation a virtual inertia can be added by introducing short-term energy storage (ES) [17] . Critical reviews on energy management of ES with extensive results can be found in [20] [21] . The literature explores the idea of using related concepts. The operation of an inverter mimicking a virtual synchronous generator (VSG) or a virtual synchronous machine (VSM or VISMA) to support the stability of the system has been discussed widely [22] [23] [24] . The real power and the reactive power delivered by the VSG interfaced in parallel with the ES and operated as a generator can easily compensate for the voltage and frequency variations. VSGs are expected to behave as generators by adding damping and virtual inertia in a flexible way [25] [26] . The concept of VISMA is proposed in [23] , where the phase currents of the VISMA are obtained and used as the reference currents for the inverter. However, a grid integration using the control algorithm was left the future work. A method for using an inverter as a synchronous generator (SG) was discussed in [25] , and named a sychronverter. VSGs are simply implemented by a DC voltage source connected to the inverter. Therefore, an energy storage system (ESS) is required to achieve a stable control [27] [28] [29] . The idea of virtual SG was proposed in [26] [30] , where a short-term ESS is introduced with an inverter to add a virtual inertia to the system. The ESS, interfaced at DC-link, serves not only as a storage but also as a virtual governor, if controlled and used properly [31] [32] [33] [34] . A hybrid ESS can also be deployed, depending on the system.

Many control algorithms have been reported for the voltage regulation using various schemes such as static var-compensation (SVC) [35] , the static reactive power compensator (STATCOM) [36] , and the power balance theory (PBT). A passivity based control (PBC) is mentioned as a suitable control strategy for an unbalanced voltage condition [37] . Techniques like the synchronous reference frame (SRF) theory and the instantaneous reactive power theory (IRPT) [38] [39] [40] are the most renowned techniques for the voltage regulation. The SVC-based scheme has the drawback of injecting low-frequency harmonics into the system. The STATCOM-based scheme presents good dynamics without injecting harmonics in the system. On the other hand, this scheme has the drawback of high current notching while feeding nonlinear loads as discussed in [41] . A current synchronous detection (CSD) scheme based on the peak estimation of the individual phase voltages is well known for its excellent performance compared to the SRF, the STATCOM, and the IRPT when the system is feeding unbalanced loads [42] [43] . The CSD theory was proposed as an equal current approach and suitable for both balanced and unbalanced systems in [42] . The CSD-scheme exhibits many advantages over other control schemes, such as low disturbances, active following capability during the load variation and an excellent stability.

The increasing shares of inverter connected RES are causing a drop in the rotational inertia of the power system. The kinetic energy delivered/absorbed to/from the grid by a generator’s rotating mass depends to the rate of change of the frequency. Therefore, the RES are coupled with an ESS to mimic the external behavior of the SG. The DC-link represents not only the power taken from the imaginary prime mover but also from the inertia of the rotating part of the imaginary SG. Rotating inertia, i.e. the inertia constant, reduces the rate of change of frequency in a transient process. In a multi-area power system the inertia constant varies in individual grid areas depending on the inverter connected RES.

Motivation and Contribution of the Work

In the literature, various methods to emulate a virtual inertia of the VSG have been presented with a load mutation and a step change in the wind speed, in a wind energy harvesting case. Shi et al. [17] presented a study on the frequency response characteristics while a study on reactive power control was missing. However the results shown, barely discussed the behavior at the PCC voltage and an implementation of the control in a real life application was left for the study. Virtual inertia control applications in Solar and wind energy harvesting are well reported in the literature. However a WEC based wave energy harvesting application is missing the study on virtual inertia control in an AC-microgrid. To bridge this gap, we presented a study of an emulation of virtual inertia in a WEC interfaced system, an intermittent power source, to the microgrid as shown in Figure 1. We presented the results of the proposed control in Simulation studies and validated through the experimental results. The proposed system extracts the total electrical power, ${P}_{e}$, and the reactive power, ${Q}_{l}$, at the loads, and generates the referenced active (real) and reactive power for the frequency and voltage regulation. The extraction of the referenced power components is estimated by the proposed dynamic control based on a CSD control scheme. The VSG algorithm controls the inverter to regulate the frequency and the voltage at the PCC.

Figure 1. Block diagram of the proposed VSG system.

In this paper, we considered a microgrid as a small single-area power system where the inertia constant (H) is highly time variant and fluctuates between 3 and 6 s due to the deployment of Wind-PV-Wave power generation. The idea of using ultra-capacitor (UC) at the DC-link to emulate a virtual inertia of the VSG is implemented while the droop control is emulated by the battery as a virtual speed governor. A hypothetical inertia coefficient is implemented in the control loop which defines a time constant of the capacitor to respond during the transient processes. Due to the inertia coefficient, the UC responds quickly to the transients and protects battery for a fast discharge. This combination of the ESS connected with the UC at the DC-link forms a DC-grid structure. The proposed scheme controls the three phase inverter connected with the ESS with a DC-DC controller in parallel and this structure operates as VSG as shown in Figure 1. A CSD-scheme control for the voltage and the frequency regulation at the point of common coupling (PCC) is presented. To regulate the PCC voltage and the frequency of the system, a dynamic control estimates the fundamental reference source active and reactive power components. The proposed scheme has a bi-directional capability of active and reactive powers ﬂow which controls the frequency and the terminal voltage at the PCC. In Figure 1, the components are shown in detail: a WEC as a RES, a battery based ESS and a power converter followed by the AC-microgrid through a harmonic filter. In this study, a WEC enables the system to harvest energy directly from a buoy or a floater by ocean waves, as discussed in detail in [44] [45] [46] [47] [48] . The performance of the controller is demonstrated under varying loads and RES power conditions.

2. System Configuration

2.1. Control Overview of the System Structure

Figure 1 shows the structure of VSG based inverter control interfaced with a WEC. A linear permanent magnet generator based WEC is rectified and interfaced with the DC-link as an RES. The structure of the VSG comprises an ESS with a DC-DC control at the DC-link. The ESS uses a battery for the storage along with a DC-link capacitor/ultracapacitor, where ${I}_{B}$ and ${L}_{Batt}$ are the flowing DC current and the inductance of the DC-DC converter. The parameters, ${L}_{s}$ and ${C}_{f}$ are the filter inductance and the capacitance, respectively. The three phase current is defined as ${i}_{abc}$, and ${U}_{abc}$ denotes the PCC three phase voltages. ${Z}_{g}$ is the equivalent line impedance.

A WEC feeds the rectified power, intermittent by nature, into the DC-link. Hence, a power smoothening and a frequency regulation is desired. The capacitor at the DC-link absorbs the extra power along with the battery storage. The DC-control regulates the DC-link voltage to a stable point and supports the frequency regulation caused by the varying WEC power. The main electrical and mechanical parameters of the linear generator used as a WEC are shown in Table 1. This is a model of WEC that has been installed at the Lysekil research site conducted by Uppsala University, Sweden. It is worth to mention that one WEC connected to the grid, represents large variations in power flow, and therefore this study investigates the behaviour of the system with one WEC connected to the microgrid as well. The DC-voltage control is implemented based on the standard control structure in [49] as shown in Figure 2. The controller compensates for the frequency deviation caused by the varying WEC power and by the load variations. A DC-voltage deviation, $\Delta {v}_{dc}$ , is dynamically regulated corresponding to the measured frequency deviation, $\Delta f$, through a gain, ${K}_{c}$, and added to the DC-voltage reference. The resulting sum is processed to a PI-controller to build a reference DC-current, which is further compared with the current of the battery.

The resulting current error from the comparator is used as an input for the PI-controller, designed with proportional gain only, to amplify the error signal. The amplified signal is compared with a fixed frequency (10 kHz) triangular wave to generate pulses to control the DC-DC controller. In this way, a stable DC-link voltage is achieved according to the frequency deviation. Due to the scope of the paper, the control on the WEC side is not discussed here. However, a brief overview of the control on the WEC side is shown in Figure 1.

2.2. The Conventional Control Scheme of Virtual Inertia

The dynamic behavior of a synchronous machine can be described in Formula (1) [50] ,

${T}_{m}-{T}_{e}=J\frac{\text{d}\omega}{\text{d}t}$ (1)

where ${T}_{m}$ is the input mechanical torque, ${T}_{e}$ is the output electromagnetic torque, J is the rotational inertia of the SG, $\omega $ is the mechanical angular speed and can also be expressed in terms of the inertia constant H and power in (2),

Table 1. Generator (L9) main electrical and mechanical parameters.

Figure 2. Block diagram of the DC-voltage controller to control the bi-directional DC-DC controller.

${P}_{m}-{P}_{e}=2H\frac{\text{d}\omega}{\text{d}t}$ (2)

Assuming
${T}_{m}$ is constant and J increases in (1) entails that the change in the magnitude of the speed will be smaller caused by the load perturbation. According to the expression of the rotor kinetic energy,
${E}_{R}$, and the inertia constant are defined in (3) [18] with J = 1.642 kg-m^{2} and system rated power,
${p}_{rated}=40\text{\hspace{0.17em}}\text{kW}$,

$\begin{array}{l}{E}_{R}={{\displaystyle \int}}^{\text{}}\left({P}_{m}-{P}_{e}\right)\text{d}t=\frac{1}{2}J{\omega}^{2}\\ H={E}_{R}/{p}_{rated}\end{array}\}$ (3)

The variation of the rotor kinetic energy, $\Delta {E}_{R}$, can be defined as in (4),

$\Delta {E}_{R}=\frac{1}{2}J\left[{\left(\omega +\Delta \omega \right)}^{2}-{\omega}^{2}\right]$ (4)

where ${P}_{m}$, and ${P}_{e}$ are the mechanical and electrical powers, and $\Delta \omega $ is the change in angular speed. Formula (4) shows that the less kinetic energy is released at the same time if J increases, which results in the low release rate and conversion efficiency of the rotor kinetic energy. This phenomenon brings an unbalanced power in the MG and pulls a heavy burden to the SG or the AC-grid. Moreover, this virtual inertia control requires additional speed or de-loading control techniques, which makes it a complex control structure.

3. Control Scheme for Virtual Inertia Emulation

The VSG implementation investigated in the study is based on a conventional swing equation representing the inertia and damping of a traditional SG. A second-order model is usually applied in VSG control topology. The mathematical model of the synchronous generator is expressed as its swing equations in (5) [17] ,

$\begin{array}{l}{P}_{r}^{*}-{P}_{e}-D\omega \Delta \omega =J\omega \frac{\text{d}\omega}{\text{d}t}\\ {Q}_{r}^{*}-Q-{D}_{q}\left({V}^{*}-V\right)=K\frac{\text{d}E}{\text{d}t}\\ \frac{\text{d}\theta}{\text{d}t}=\omega \end{array}\}$ (5)

where ${P}_{r}^{*}$ is the virtual mechanical input power, ${P}_{e}$ is the electrical power flowing into the grid, ${Q}_{r}^{*}$ is the reactive power reference, Q is the filtered reactive power measurement, ${V}^{*}$, and V are the referenced and output voltage amplitude respectively, $\theta $ is the electrical angle, and D, ${D}_{q}$ are the active and reactive damping factors, respectively.

3.1. Emulation of the Inertia of the VSG

The power converters regulated as VSGs present a similar frequency dynamic response as SGs, and are incapable of storing or releasing the kinetic energy. Therefore, they require an additional energy storage unit, called an ESS. To use the ESS with power converters as a combined unit to form a VSG, they must satisfy the condition in (6) [27] . Both the power variation caused by the RESs, $\Delta {p}_{RES}$, and the power variation by the frequency depended loads, $\Delta {p}_{l}$ (also known as the damping power), should meet the power exchange of the VSG,

$\left(\Delta {p}_{b}-2H\frac{\text{d}\Delta f}{\text{d}t}\right)$, used for the power balancing in real time,

$\Delta {p}_{RES}+\Delta {p}_{l}=\left[\Delta {p}_{b}-2H\frac{\text{d}\Delta f}{\text{d}t}\right]$ (6)

$\Delta {p}_{l}=D\Delta f$ (7)

where
$\Delta f$ is the measured frequency deviation, and H is the inertia constant. Since the Ultra-capacitor (UC) at the DC-link is used to emulate the virtual inertia of the VSG in a transient process. A transient condition occurs when a load change is observed and results in a sharp deviation in the derivative of the change in frequency. The rotational inertia (J) is inversely proportional to the rate of change in the frequency (
$\text{d}\Delta f/\text{d}t$ ), i.e. a transition process, and effects the frequency regulations much faster. The rotational inertia is defined in terms of inertia constant as in (3). The inertia constant quickly responds to this deviation by emulating a virtual inertia. The UC is modeled to respond quickly by implementing a time constant (inertia coefficient of the capacitor) in the control loop of the converter and defined as inertia coefficient of the capacitor in (11). Since D is inversely proportional to the frequency variations
$\Delta f$ and does not depend on
$\text{d}\Delta f/\text{d}t$ which means the damping power only can support in a steady state instead of the transient process [51] . Due to this fact the implementation of virtual inertia constant is more reliable in an intermittent power source, i.e. a WEC and hence the damping power term is implemented in the control loop to complete the swing equations of the SG. However the damping power contribution is quite smaller due to the low damping coefficient. The WEC is an intermittent power source and feeds a power varying with time into the DC-link. Therefore the ESS at the DC-link should absorb the excess power or release the power to keep the DC-link voltage

$\Delta {p}_{b}\approx \Delta {p}_{droop}=\frac{\Delta f}{{r}_{d}}$ . (8)

where ${r}_{d}$ is the frequency-droop coefficient acting on $\Delta f$ during the RES power variations ${P}_{wec}$ . The VSG power contribution by the inertia emulation $\Delta {p}_{cap}$ is defined in (9) and represents the power sharing of the capacitor. Since the emulated inertia is proportional to the energy stored in the capacitor in (10), there is a trade-off for the selection of the inertia constant and the capacitor size to reduce the frequency deviation. Since $\Delta {v}_{dc}$ is adjusted by ${K}_{c}$ in relation to $\Delta f$ as defined with $\Delta {v}_{dc}={K}_{c}\Delta f$ as shown in Figure 2,

$\Delta {p}_{cap}=-2H\frac{\text{d}\Delta f}{\text{d}t}$ (9)

$\begin{array}{l}\Delta {p}_{cap}=-2{H}_{cap}\frac{\text{d}\left(\Delta {v}_{dc}\right)}{\text{d}t}\\ \Delta {p}_{cap}=-2{H}_{cap}{K}_{c}\frac{\text{d}\left(\Delta f\right)}{\text{d}t}\end{array}\}$ (10)

where ${H}_{cap}={H}_{c}$ is the inertia coefficient of the capacitor and defined in (11) as a function of the capacitance ${C}_{dc}$, reference DC-link voltage ${v}_{dc}^{ref}$, and the system rated power, ${p}_{rated}$,

${H}_{cap}=\frac{0.5{C}_{dc}{\left({v}_{dc}^{ref}\right)}^{2}}{{p}_{rated}}$ . (11)

Therefore, the inertia coefficient of the capacitor ${H}_{cap}$ is inversely related with the gain ${K}_{c}$ and can be expressed as ( ${H}_{cap}=H/{K}_{c}$ ). The emulated power system inertia is considered similar to the inertia in a conventional power system, which is taken as H = 4 as obtained from (3) and a maximum value of ${K}_{c}$ can be obtained using (11) which is 13.3. The control parameters and the system parameters used in this study are reported in Table 2.

3.2. Active Power Droop Control

The emulation of a rotating inertia and the power-balance synchronization mechanisms of this virtual inertia is the main difference between the investigated VSG control structure and conventional control systems for the inverter. The swing equation used for the implementation is linearized with respect to the speed so the

Table 2. System and control parameter values utilized in the study.

inertia is determined by the power-balance formula in (12) as shown in Figure 3,

$\frac{{P}_{ref}^{*}-\Delta {p}_{l}+\Delta {p}_{b}-{P}_{e}}{2H}=\frac{\text{d}{\omega}_{VSG}}{\text{d}t}$ (12)

The mechanical speed ${\omega}_{VSG}$, of the VSG is given by the integral of the power-balance formula (13) while the phase angle ${\theta}_{VSG}$, of the VSG is obtained by the integral of the speed. The damping power $\Delta {p}_{l}$, presenting the damping effect of the VSG, defined by the product of active-damping factor D and the difference between the VSG frequency- ${f}_{VSG}$, and the actual grid frequency ${f}_{g}$, as in (7) where $\Delta f={f}_{VSG}-{f}_{g}$ . The actual grid frequency is measured by a dual second order generalized integrator-PLL (DSOGI-PLL).

$\frac{{P}_{ref}^{*}}{2H}-\frac{D\Delta f}{2H}+\frac{1}{{r}_{d}}\frac{\Delta f}{2H}-\frac{{P}_{e}}{2H}=\frac{\text{d}{\omega}_{VSG}}{\text{d}t}.$ (13)

The VSG speed in steady state will become equal to the grid frequency and the frequency deviation will approach zero under a stable grid connected condition. The VSG generates the frequency and the active power in steady state condition which is assumed to be the reference frequency and active power reference. However when the load changes the frequency reference values and the active power reference values are obtained by the estimation of the reference frequency and the reference source active power ${P}_{ref}^{*}$, through the CSD theory. The benefit of using a CSD estimation of the references is to reduce the shock currents during the load changing event and improve the stability of the system.

The active power droop control is realized by a CSD estimation of the three-phase reference active power of the source currents. The reference source active power is estimated by a dynamic droop controller (DDC). The DDC estimates the reference source active power by taking the difference of the output of the PI controller ${P}_{f}$ and the fundamental active power component of the loads ${P}_{fl}$, which is the filtered average power of the loads. The frequency error is processed to the PI controller for the estimation of ${P}_{f}$ in (14). To obtain ${P}_{fl}$, a first order low pass filter is applied with a cut-off frequency ${\omega}_{f}$ as shown in Figure 4,

$\begin{array}{l}{P}_{f}\left(n\right)={P}_{f}\left(n-1\right)+{k}_{pf}\left\{\Delta f\left(n\right)-\Delta f\left(n-1\right)\right\}+{k}_{if}\Delta f\left(n\right)\\ {P}_{ref}^{*}\left(n\right)={P}_{f}\left(n\right)-{P}_{fl}\left(n\right)\\ \frac{\text{d}{P}_{fl}}{\text{d}t}=-{\omega}_{f}{P}_{fl}+{\omega}_{f}{P}_{l}\end{array}\}$ (14)

Figure 3. VSG inertia emulation with power-frequency droop.

where
${k}_{pf}$ and
${k}_{if}$ are the proportional and the integral constants for the PI controller,
$\Delta f\left(n\right)$, and
$\Delta f\left(n-1\right)$ are the frequency errors at the nth and (n − 1)^{th} sampling instant and
${P}_{f}\left(n\right)$ and
${P}_{f}\left(n-1\right)$ are the output of the voltage PI controller at the nth and (n − 1)^{th} instant.

3.3. Reactive Power Droop Control

According to the mathematical model of the SG the loop-voltage equation is given in (15) shown in Figure 5,

$E=U+IR+jIX.$ (15)

where E is the electromotive force, U is the terminal voltage of the stator, I is stator current, R is the armature resistance of the stator, and X is the synchronous reactance. The bold letters E, U, and I represent their phasor form. The power angle, $\delta $, between E and U is very small and hence $\mathrm{cos}\left(\delta \right)\approx 1$, which satisfies the formula in (15). Consider the SG stator voltage equations and the excitation controller design. The structure of the excitation controller is shown in Figure 6. The reactive power controller based on a dynamic droop is similar to the one commonly applied in the MG system and reported in many studies [52] - [57] . A reactive power controller―a virtual excitation controller on the dynamic droop―is proposed and utilized in this study. A DDC for estimating the reference source reactive power ${Q}_{ref}^{*}$ and the field current deviation $\Delta {i}_{f}$ to build an excitation for the VSG is proposed as shown in Figure 7. The reactive current components ${i}_{q\left(a,b,c\right)}^{r}$ are estimated by using the ${Q}_{ref}^{*}$ in the CSD theory. The reference of the output voltage amplitude ${U}_{ref}$, used for the inner loop voltage and a current control is calculated in (16). ${U}_{0}$ is

Figure 4. Block diagram of the DDC for the estimation of reference source active power.

Figure 5. The equivalent circuit and phasor of the VSG. (a) Equivalent circuit; (b) Phasor diagram of each vector component.

Figure 6. Structure of the VSG excitation regulator with DDC based reactive power control.

Figure 7. Control structure of reference source reactive power estimator (RPE).

the actual output voltage amplitude at the terminal, namely ${U}_{t}$ . In Figure 7, the reactive power reference component is estimated by the proposed reactive power estimator (RPE), and ${k}_{q}$ is the reactive power droop gain acting on the estimated ${Q}_{ref}^{*}$, ${i}_{f}$ is the reference of the field current. An excitation force is obtained by multiplying with ${\omega}_{VSG}$ to the sum of $\Delta {i}_{f}$ and ${i}_{f}$ . The reference source reactive power component is estimated by the difference of the output of the voltage PI controller ${Q}_{qv}$ and the fundamental reactive power component of the loads ${Q}_{fl}$ in (17).

where
${k}_{pv}$ and
${k}_{iv}$ are the proportional and the integral constants for the PI controller,
${V}_{e}\left(n\right)$, and
${V}_{e}\left(n-1\right)$ are the terminal voltage error at the nth and (n − 1)^{th} sampling instant and
${Q}_{qv}\left(n\right)$ and
${Q}_{qv}\left(n-1\right)$ are the output of the voltage PI controller at the nth and (n − 1)^{th} instant required for the voltage regulation.

The filtered reactive power component ${Q}_{fl}$ corresponds to the three-phase fundamental reactive power of the loads. The filter applied is a first order low pass filter with a cut-off frequency ${\omega}_{f}$ defined in (18),

${U}_{0}={U}_{ref}-{k}_{q}\left({Q}_{ref}^{*}\right)$ (16)

$\begin{array}{l}{Q}_{ref}^{*}\left(n\right)={Q}_{qv}\left(n\right)-{Q}_{fl}\left(n\right)\\ {Q}_{qv}\left(n\right)={Q}_{qv}\left(n-1\right)+{k}_{pv}\left\{{V}_{e}\left(n\right)-{V}_{e}\left(n-1\right)\right\}+{k}_{iv}{V}_{e}\left(n\right)\\ {V}_{e}\left(n\right)={U}_{ref}\left(n\right)-{U}_{0}\left(n\right)\end{array}\}$ (17)

$\frac{\text{d}{Q}_{fl}}{\text{d}t}=-{\omega}_{f}{Q}_{fl}+{\omega}_{f}{Q}_{l}$ (18)

4. Modeling of the Proposed Control Scheme Based on a CSD Control Scheme

4.1. Modeling of the Control Scheme

The control of the proposed VSG is realized by computing the reference source currents (RSC) through the CSD theory. The RSC are comprised of two components, 1) the in-phase component, the active power current component, ${i}_{p\left(a,b,c\right)}^{r}$ for regulating the frequency, and 2) a quadrature component, the reactive power current component, ${i}_{q\left(a,b,c\right)}^{r}$ for controlling the magnitude of the generated voltage (the terminal voltage). The reference source active power ${P}_{ref}^{*}$, is estimated by taking the difference of the output of the frequency PI controller ${P}_{f}$, and the filtered average load power ${P}_{fl}$ . The three-phase reference active-power components of the source currents ${i}_{p\left(a,b,c\right)}^{r}$ are estimated using the peak amplitudes of the phase voltages ${V}_{am},{V}_{bm},{V}_{cm}$, the reference source active power ( ${P}_{ref}^{*}$ ) and the phase voltages ${U}_{a},{U}_{b},{U}_{c}$ . To regulate the terminal voltage at the PCC the VSG requires a reactive power support. The reference source reactive power component ( ${Q}_{ref}^{*}$ ) estimation is explained in the previous section. The obtained component is used to extract the three-phase reactive-power components of the reference source currents ( ${i}_{q\left(a,b,c\right)}^{r}$ ) using the peak amplitudes of the phase voltages ${V}_{am},{V}_{bm},{V}_{cm}$ and the quadrature phase voltages (QPV), ${U}_{aq},{U}_{bq},{U}_{cq}$ . The algebraic sum of the active-power components of the source currents ${i}_{p\left(a,b,c\right)}^{r}$,and reactive-power components of the reference source currents ( ${i}_{q\left(a,b,c\right)}^{r}$ ) yields the total reference source currents ${i}_{\left(a,b,c\right)}^{r}$ . The peaks of the phase voltages are detected using a peak detection algorithm, consisting of a sample and hold (SH) circuit, hit crossing (HC) detector and an estimated QPV. Since the QPVs are leading the phase voltages by 90˚, the HC detects the negative slope zero crossing of the quadrature voltage, i.e. the peak of the phase voltage at the same time instant. The estimated reference source currents are compared with the measured currents at the VSG. The resulting errors are processed to a proportional controller and the amplified signals are used for the pulse width modulator (PWM) to control the switches of the power converter.

4.2. Estimation of the Active Component of the Reference Source Currents

Assuming that the amplitude of the active power source currents are balanced and equal in magnitude after the compensation in (19),

${I}_{pa}={I}_{pb}={I}_{pc}$ (19)

where ${I}_{pa},{I}_{pb},{I}_{pc}$ are the peak amplitude of the active current in each phase. Then,

${I}_{pa,b,c}=\left(2{P}_{ref,a,b,c}\right)/{V}_{a,b,cm}$ (20)

Substituting (20), in (19) yields into (21),

$\left(2{P}_{ref,a}\right)/{V}_{am}=\left(2{P}_{ref,b}\right)/{V}_{bm}=\left(2{P}_{ref,c}\right)/{V}_{cm}$ (21)

The total average power is obtained by taking the sum of the reference source active power components in each phase ( ${P}_{ref,a},{P}_{ref,b},{P}_{ref,c}$ ) in (22).

${P}_{ref}={P}_{ref,a}+{P}_{ref,b}+{P}_{ref,c}$ (22)

By rearrangement of (21) and (22) yields (23),

${P}_{ref,a,b,c}=\left({V}_{a,b,c,m}/{V}_{T}\right){P}_{ref}$ (23)

where ${V}_{T}={V}_{am}+{V}_{bm}+{V}_{cm}$, is the sum of the peak voltages. The estimation of the reference source currents is done by solving (23) and (20),

${i}_{p\left(a,b,c\right)}\left(t\right)=\left[2{P}_{ref}/\left({U}_{t}{V}_{T}\right)\right]{U}_{a,b,c}\left(t\right)$ (24)

where ${U}_{t}$ is the terminal voltage and expressed in (25),

${U}_{t}\left(t\right)=\sqrt{2\left\{{U}_{a}^{2}\left(t\right)+{U}_{b}^{2}\left(t\right)+{U}_{c}^{2}\left(t\right)\right\}/3}$ (25)

Using (29) based on the CSD theory estimation, the reference source active power ( ${P}_{ref}^{*}$ ) is converted into the active power component of the three-phase source currents ( ${i}_{p\left(a,b,c\right)}^{r}$ ) using the phase voltages and the peak of the phase voltages in (26).

${i}_{p\left(a,b,c\right)}^{*}\left(t\right)=\left[2{P}_{ref}^{*}/\left({U}_{t}{V}_{T}\right)\right]{U}_{a,b,c}\left(t\right)$ (26)

where the total power is the reference source active power ( ${P}_{ref}^{*}={P}_{ref,a}^{*}+{P}_{ref,b}^{*}+{P}_{ref,c}^{*}$ ) which has to be generated by the VSG. ${P}_{ref}^{*}$ is treated as the virtual mechanical input power ${P}_{m}$ to the VSG to build the electrical power ${P}_{e}$ to meet the active power demand which justifies the formula (2).

4.3. Estimation of Reactive Component of Reference Source Currents

An assumption similar to the one in the previous section, can be applied to the fundamental reactive power source currents in that they are balanced and equal in magnitude,

${I}_{qa}={I}_{qb}={I}_{qc}$ (27)

The reference source reactive power ( ${Q}_{ref}^{*}$ ) is converted to the reactive power component of the three-phase source currents using quadrature phase voltages ( ${U}_{aq},{U}_{bq},{U}_{cq}$ ) and the peak of the phase voltages in (28),

${i}_{q\left(a,b,c\right)}^{*}\left(t\right)=\left[2{Q}_{ref}^{*}/\left({U}_{t}{V}_{T}\right)\right]{U}_{a,b,c,q}\left(t\right)$ (28)

The quadrature phase voltages are estimated by using the amplitude of the PCC (terminal voltage, ${U}_{t}\left(t\right)$ ) and the quadrature unit templates, ${u}_{aq},{u}_{bq},{u}_{cq}\left({u}_{a,b,c,q}\right)$ and the derived expression is explained in (29),

${U}_{a,b,cq}\left(t\right)={u}_{a,b,cq}\left(t\right){U}_{t}\left(t\right)$ (29)

The quadrature ( ${u}_{a,b,cq}$ ) and the in-phase ( ${u}_{a,b,c,p}$ ) unit templates are derived and expressed in (30) and (31) at time instant, t [58] ,

$\begin{array}{l}{u}_{aq}\left(t\right)=\left\{-{u}_{ap}\left(t\right)+{u}_{cp}\left(t\right)/\sqrt{3}\right\}\\ {u}_{bq}\left(t\right)=\left\{\left(3{u}_{ap}\left(t\right)\right)+\left({u}_{bp}\left(t\right)-{u}_{cp}\left(t\right)\right)/2\sqrt{3}\right\}\\ {u}_{cq}\left(t\right)=\left\{\left\{\left(-3\right){u}_{ap}\left(t\right)\right\}+\left({u}_{bp}\left(t\right)-{u}_{cp}\left(t\right)\right)/2\sqrt{3}\right\}\end{array}\}$ (30)

${u}_{a,b,cp}\left(t\right)={U}_{a,b,cp}\left(t\right)/{U}_{t}\left(t\right)$ (31)

The total reference source currents are estimated by taking the sum of the estimated active and reactive reference source currents and defined by the formulae (32),

$\begin{array}{l}{i}_{a}^{r}\left(t\right)={i}_{pa}^{*}\left(t\right)+{i}_{qa}^{*}\left(t\right)\\ {i}_{b}^{r}\left(t\right)={i}_{pb}^{*}\left(t\right)+{i}_{qb}^{*}\left(t\right)\\ {i}_{c}^{r}\left(t\right)={i}_{pc}^{*}\left(t\right)+{i}_{qc}^{*}\left(t\right)\end{array}\}$ (32)

5. Simulation and Results Analysis

To verify the proposed VSG control scheme, numerical simulations are carried out in a MATLAB/Simulink environment. The system structure shown in Figure 1 is realized in MATLAB/Simulink by using the real parameters of the WEC and VSG system similar to a real application.

5.1. Dynamic Response under Loads Perturbation and Intermittent WEC Power

To verify the effectiveness of the proposed control strategy, the simulation results are presented with the loads perturbation and a varying WEC power. The verification of the control is presented with the ESS. It is worth noting that the initial grid synchronization is achieved by using a PLL, and the VSG is smoothly synchronized with the grid. The phase synchronization between the grid and the VSG is shown in Figure 8. In Figure 9, at the beginning of the simulations, a 10 kW load, active power demand, is connected and the reactive power demand is kept to zero. The reference active power value ${P}_{ref}^{*}$ is estimated and sent to the VSG control algorithm to meet the power demand. In Figure 9, a load perturbation is applied at t = 0.786 s, the initial active load was 10 kW and the applied active load

Figure 8. Phase angle of the grid and the VSG during the synchronization.

Figure 9. VSG and the referenced active power with the frequency regulation.

2, which is 5 kW, is connected and a drop in frequency is reported immediately just after the load perturbation occurs. At this moment the proposed control quickly takes action to restore the terminal frequency and the active power demand ( ${P}_{ref}^{*}$ ). The proposed control strategy based on the CSD scheme, quickly estimates ${P}_{ref}^{*}$, compensates for the required active power demand by increasing the VSG active power with a minor overshoot. The inverter accesses the energy storage to support the active/reactive power and frequency/voltage compensation. The power output of DC/DC converter feeds a small amount of power into the DC-link and surpluses the power until the load 2 (i.e. 5 kW) is disconnected at t = 1.126 s. During the first load perturbation of 5 kW, the terminal voltage ${U}_{t}$ drops immediately and therefore a reactive power support is released by the VSG to restore the terminal voltage as shown in Figure 10. In Figure 9, during all the load perturbations a variation in the frequency is reported which is controlled by the proposed control by supporting the system

Figure 10. VSG and reference reactive power with the regulated terminal voltage.

with increased or decreased the active power demand. The control restores the frequency within a small deviation of ±0.05 Hz. Furthermore, to investigate the robustness of the control, a reactive load of 400 var, as load 3, is introduced at t = 1.01 s. The purpose of this investigation is to demonstrate the controller performance in a multi load perturbation. In the event at t = 1.01 s when the reactive power demand was raised, the VSG immediately supports the reactive power compensation to maintain the terminal voltage at the operating point at that event. During this event, the load 2 is disconnected at t = 1.126 s and the terminal voltage deviates from the operating point to the nominal terminal voltage.

As a result, the VSG adds a small amount of reactive power at that event and quickly returns to the previous feeding point, since the VSG voltage is detected running up at the nominal terminal voltage. The individual current components to generate the active and reactive power are shown in Figure 12. The small amount of reactive power added which can be noted in Figure 10 and Figure 12, as a small notch which disappears smoothly and the system runs at nominal terminal voltage. During the next event, load 3 (400 var) is disconnected at t = 1.20 s, and a load 4 is connected at the same time event at t = 1.20 s. The new load demand is 9 kW, as load 4, and must be supplied by the VSG in a stable

Figure 11. VSG performance output during the load perturbation: (a) terminal voltages, and (b) line-currents.

Figure 12. VSG Reference source current components: (a) the active current component for active power compensation in phase-A, and (b) the reactive current component for reactive power compensation in phase-A.

mode The drop in the terminal voltage is noticed immediately and the stored reactive power is used to regulate the terminal voltage to a stable operating point. The stored reactive power is an effect of the load 3 disconnection which supports the terminal voltage during the load 4 perturbation as shown in Figure 10. The results presented in Figures 9-14 verify the proposed control objective

Figure 13. ESS power, the load variations, WEC and VSG power output.

Figure 14. ESS, the DC-link voltage, WEC and VSG power output.

is achieved.

5.2. Verification of the Control with the ESS

The ESS effectively participates during each event of the load perturbation. It can be noted that the ESS not only regulates the output droop but also supports the power balance during excessive and insufficient power generation from the WEC as shown in Figure 13 and Figure 14. In Figure 13, the intermittent power (rectified power) from the WEC (in the black curve) is smoothly addressed by the ESS and the ultra-capacitor. The WEC power is increased suddenly and the ESS stores this extra amount of power, as depicted in Figure 14 roughly at t = 2.89 s.

The DC-link voltage
${v}_{dc}$ is well controlled within the allowed DC-ripples caused by the intermittent WEC power during the different wave elevations and the load perturbation. In Figure 14, the ESS continuously participates throughout the simulation study and helps not only to smoothen the WEC power, but also maintains the DC-link voltage at a steady point by absorbing or releasing the power. The ESS releases the power during the insufficient power generation from the WEC and absorbs the extra power when the WEC is delivering more power than the demand. Figure 14 clearly depicts the performance of the ESS control as a virtual governor. When the load perturbation is applied and the ESS supported to the VSG to regulate the active power to maintain the power demand. It is worth to notice that there is a deviation reported in the DC-link voltage,

${v}_{dc}$, and the system frequency, and both of the system parameters are immediately restored to their referenced values by an active participation of the ESS acting as a virtual governor. Every time-instant when the loads increase (t = 0.786 s, 1.01 s, and t = 1.20 s) or decrease (t = 1.126 s, 1.20 s, and t = 1.92 s) the virtual governor takes the appropriate action to regulate the
${v}_{dc}$ within the allowed fluctuations. In Figure 14, the WEC delivers an excessive amount of power at t = 2.89 s. The ESS smoothly stores this extra power while maintaining the
${v}_{dc}$ at a stable reference point. In this way, the system operates in a stable mode and the ESS supports the power converter to maintain the
${v}_{dc}$ and the system frequency at the stable referenced points. Consequently, the proposed CSD scheme based VSG control has less fluctuations in the DC-link by using an ESS. The results indicate that a single WEC can also be interfaced with an AC-grid by using the proposed scheme to mitigate the power fluctuations and inject a smoothened power into the grid.

6. Experimental Validation

The experiments were carried out to verify the practical feasibility of the proposed control based on diagram in Figure 1. The tests were carried out with microgrid in the test facility at University College Cork (UCC), Ireland. The experimental setup is within a microgrid setup running at 400 VAC line-line RMS voltage as shown in Figure 15. The study is carried out to demonstrate the

Figure 15. Experimental setup: the rotatory emulator connected to the microgrid at UCC, curtesy, MaREI facility [59] .

behavior of an intermittent power source with the AC-microgrid and to test the effectiveness of the proposed VSG control algorithm. To this end, the wave data is used to generate a torque for the emulator in the microgrid and tested with the algorithm to control the microgrid voltages and the frequency. A medium speed rotatory emulator, originally developed at UCC [59] , is used in the experiments to emulate as a WEC and a PTO. The emulator consists of directly coupled two electrical machines: a prime mover (acting as a WEC), and other acting as the rotatory renewable energy generator. The generator is connected to the microgrid using a back-to-back power converter topology. A real-time simulator, OP5600 from OPAL-RT, using MATLAB and Simulink software is used to interact directly with the emulator, allowing for more accurate and complex modelling. This combination is commonly known as hardware-in-the-loop (HIL) simulator. The emulator is controlled by a programmable logical controller (PLC) that communicates with the HIL and the drives controlling the motors. The data is logged using a high speed data logger based on Compact-RIOs field programming gate arrays (FPGA). The logging sampling frequency is set to 10 kHz. The control algorithms are executed in a HIL connected setup on the PC. The wave data used in the test is recorded for one of the sea states on the west coast of Sweden, i.e. the force for a wave period of 6 s ( ${T}_{e}=6\text{\hspace{0.17em}}\text{s}$ ) and a significant wave height of 2 m ( ${H}_{s}=2\text{\hspace{0.17em}}\text{m}$ ). The force is converted into a torque for the rotatory emulator. Figures 16-18 present the experimental results of the proposed VSG system. In practice, the reactive power compensation is achieved to maintain the terminal voltage of the microgrid using the DDC and RPE based VSG algorithm, as shown in Figure 16. The terminal voltage and reactive power of the grid are calculated and processed to the control to estimate the referenced components to build the referenced source components to compensate for the variations in the terminal voltage, as shown in Figure 16(a) and Figure 16(b). The similar event roughly at t = 183 s is considered to present the effectiveness of the control and presented in Figure 16(c) and Figure 16(d). Since the grid had excessive amount of reactive power available, therefore the reactive power from the VSG was decreased to maintain the terminal voltage to the nominal value, 400 VAC.

Figure 16. Experimental results for the reactive power compensation: (a) Terminal voltage ( ${U}_{t}$ ); (b) Delivered reactive power; (c) and (d) Performance of the VSG roughly at t = 183 s (zoomed).

From Figure 16, it can be observed thoroughly, that the terminal voltage ( ${U}_{t}$ ) was running slightly higher than the nominal value and has slight fluctuations around the nominal voltage. When the terminal voltage was fluctuating around the nominal value, the VSG contributed the reactive power accordingly, to maintain the terminal voltage around the nominal value. The black curve from Figure 16(d), indicates that at t = 179 s to t = 180 s, the reactive power delivery was decreased (as shown in the blue curve) as the terminal voltage was running slightly higher than the nominal value. Moreover, the VSG supports the system to maintain the grid voltage to the operating condition. The terminal voltage was varying between 400 V to 404 V due to the grid reactive power. The ${U}_{t}$ is maintained by providing a reactive power delivery in the system. Considering the event, roughly at t = 183 s when an additional load is connected and a sharp drop in the terminal voltage is observed which is, immediately compensated by the VSG to restore it to the operating terminal voltage value, as shown in Figure 16(c) and Figure 16(d). It can be seen from the observations that the reactive power droop gain, acts immediately to bring the system voltage to the normal operating point. The results presented at different time events, show that the objective of the proposed control-mechanism to compensate for the reactive power is achieved. In Figure 17(a) and Figure 17(b), the power of the VSG, the ultra-capacitor (UC) power which is defined as $\Delta {p}_{cap}$ and the power of the

Figure 17. Experimental results for the active power compensation: (a) VSG, UC, and the battery power; (b) Performance of the VSG roughly at t = 183 s (zoomed); (c) Frequency; (d) DC-link voltage.

battery ( $\Delta {p}_{b}$ ) are shown in a full experimental time and in zoom for one of the load perturbation events.

The frequency dependent loads are changed at different time events as shown in Figure 17(a). The system observed a deviation in the system frequency and VSG started to respond to the deviated frequency. The rated power of the ESS is 20 kW and inverter is rated to 50 kW. It can be observed that the VSG mimics the similar inertial frequency response as conventional synchronous generators under each frequency event. Initially, a load of 25 kW is connected at the microgrid which is covered by the power from the WEC and the VSG operated system. A load perturbation is applied with a step-up change of 5% at different time events, roughly at t = 62 s, t = 123 s, t = 183 s and t = 243 s as shown in Figure 17(a). To demonstrate the effectiveness of the algorithm, an event roughly at t = 183 s, is shown in Figure 17(b). The power allocations between the UC and the battery are shown under the 5% of step-up load perturbation. It can be observed that the UC, quickly, responded to the frequency event for balancing the load power variations, as shown in the red curve. During this transition process, the UC has a higher power contribution to maintain the power balance. It is worth to notice that the power balancing is achieved within one second of the event occurred. The analysis of the results validated the realization of the swing equation of VSG in Equations (5) and (10), as discussed earlier.

Since the rotational inertia (J) is inversely proportional to the rate of change in the frequency ( $\text{d}\Delta f/\text{d}t$ ), i.e. a transition process, and effects the frequency regulations much faster. The rotational inertia is realized as an inertia constant (H) in the VSG swing equations. The inertia constant of the VSG swiftly, handles the frequency regulation in a transition process by emulating a virtual inertia. The battery is modeled to emulate the droop-control mechanism to compensate for the long-term power variations, which reduced the stress of the battery. In Figure 17(a) and Figure 17(b), the battery power has a less power fluctuation in comparison to the UC power in the transient states. The WEC power, as an RES, has a wave period of 6 s and the power variations are easily addressed by the battery power (). From the results presented in Figure 17(c), it can be observed that the frequency is running slightly higher than the nominal value, which meant that the grid has excessive real power. The frequency events occurred due to the load perturbation, roughly at t = 62 s and t = 183 s, are shown where a slight deviation is noted in the frequency at each event. During these transient processes, the virtual inertia from the VSG is released to maintain the system frequency at the referenced point. The variations in the DC-link voltage are shown in Figure 17(d), where a slight variation is observed that varies in a proportional to the system frequency. It is worth to notice that the delivery of inertial power is achieved at the DC-link. In practice, the objective is achieved by the frequency regulation with an intermittent power source connected in a microgrid structure. The in-phase unit voltage templates ( ${u}_{a,b,c,p}$ ), the quadrature unit voltage templates ( ${u}_{a,b,c,q}$ ) and the quadrature phase-voltages ( ${U}_{a,b,c,q}$ ) are the experimental results in a real-time simulator, OP5600 OPAL-RT, in HIL simulations. Figure 18(a) and Figure 18(b) present the unit templates in phase-A and the quadrature phase voltages, respectively.

The experimental results obtained from the VSG, show the AC-side three-phase

Figure 18. Experimental results for the estimated unit templates and quadrature voltages: (a) In-phase unit template, ( ${u}_{a,p}$ ) and the quadrature unit template ( ${u}_{a,q}$ ) for phase-A; (b) The quadrature phase voltages ( ${U}_{a,b,c,q}$ ); (c) VSG voltage of AC-side; (d) VSG current in phase-A.

line to neutral voltages and the current in phase-A, in Figure 18(c) and Figure 18(d). As expected, the waveforms of the VSG AC-side voltages are controlled as clean sinusoidal while the current in phase-A (similar to other phases) is the resulted action of the VSG due to the load perturbation. It can be observed that the referenced-current to support the real power demand during the transient is delivered instantly and achieved stability in less than a second. The experimental results obtained as in Figure 18, verified that the implementation of Formulae (28)-(32) has been achieved in a microgrid connected practical application.

7. Conclusions

In this paper, the concept of a VSG for controlling power converter to replicate the behavior of traditional SG is studied. A CSD-scheme based dynamic control to release the potential advantages of distributed control of power electronics is proposed and verified through simulation and experimental results in the SmartGrid context. The VSG based control is extracted from the swing equation of the traditional SG. The DC-link with the ESS is used to emulate the inertia of the VSG and represented as the inertia coefficient, the droop control and a virtual speed governor in a VSG algorithm. The proposed control scheme is designed to regulate the voltage and the frequency controller during the transient and steady state, which is verified by the simulations and the experimental results. The reference active and reactive power components are extracted using the CSD-scheme and used as input references to the VSG algorithm to regulate the voltage and the frequency.

In this study, the experimental data, recorded during the conducted experiments at Lysekil Wave Energy Park on the west coast of Sweden, are used to emulate a real WEC behavior in the time domain. The proposed control scheme effectively addresses the power fluctuations caused by the WEC, a load perturbation and maintains the DC-link voltage at a steady point. Furthermore, the frequency deviation caused by the WEC’s intermittent power, ${P}_{wec}$ and the perturbation of the loads ${P}_{l}$ are well controlled under the allowed maximum frequency deviation $\Delta {f}_{\mathrm{max}}$ . Since the grid had excessive real power, the delivery of the real power was slightly reduced by the VSG and the real power delivery remained stable at the loads. However, the slight variation in the real power of the VSG was not clearly visible in the long run test, which appeared to be a constant power delivery for each load perturbation. Moreover, the effectiveness of the VSG real power control could be appreciated in the zoomed results where the real power had slight fluctuations as followed by the variations in the frequency. This verified that the frequency of the system was regulated well within the allowed range by virtual inertia emulation and operated slightly higher than the nominal value (50 Hz), as shown in the results in Figure 17. The analysis of the proposed scheme verified through the Simulations and the experimental results shows that the concept of a VSG control to implement the SG swing equations including the inertia coefficient ${H}_{cap}$, a virtual damping coefficient D and the droop control by the ESS into the control loop of the power converter to emulate the external behavioral dynamics of SG has been achieved. The VSG control based power converter realized the power exchanges similar to a traditional SG, and stabilized the system parameters accurately. The effectiveness of the proposed control scheme is verified by the simulation results carried out on a MATLAB/Simulink platform and validated through the experimental results in a microgrid power system as a real application. The obtained simulation and experimental results verified that the proposed control could be applied to other real applications through the appropriate estimation of the parameters to be utilized in a real application. Hence, the practical feasibility of the proposed control scheme has been tested and verified on an experimental platform to validate the scheme.

Acknowledgements

Arvind Parwal thanks Swedish Research Council (VR) STandUP for Energy, MaRINET2 and Erasmus Mundus (EMINTE) Ph.D. Scholarship for the support of the work. Also, we are thankful to Ms. Kristin Bryon for an extensive English proofreading.

Nomenclature

E Electromotive force in phasor form (V)

${C}_{dc}$ Capacitance of the capacitor (F)

${C}_{f}$ Filter capacitance (F)

$D,{D}_{q}$ Active and reactive damping coefficients

${E}_{R}$ Rotor kinetic energy (J)

f_{g} Frequency reference (Hz)

f_{VSG} VSG frequency (Hz)

H Inertia constant (s)

${H}_{cap}$ Inertia coefficient of the capacitor (s)

I Stator current in phasor form (A)

${i}_{abc}$ Three-phase current (A)

${I}_{B}$ DC-current (A)

${i}_{f}$ Excitation current (A)

${I}_{pa},{I}_{pb},{I}_{pc}$ The peak amplitude of the active current in each phase (A)

${I}_{qa},{I}_{qb},{I}_{qc}$ The peak amplitude of the reactive current in each phase (A)

${i}_{\left(a,b,c\right)}^{r}$ Total reference source current (A)

${i}_{p\left(a,b,c\right)}^{r}$ Three-phase reference active power currents (A)

${i}_{q\left(a,b,c\right)}^{r}$ Three-phase reference reactive power currents (A)

${i}_{dc}^{ref}$ DC-reference current (A)

J Rotational inertia (kg-m^{2})

K Inertia coefficient for reactive power loop

${k}_{c}$ Voltage gain

${k}_{q}$ Reactive power droop gain

${k}_{pf},{k}_{if}$ Proportional and Integral constants for active power control loop

${k}_{pv},{k}_{iv}$ Proportional and Integral constants for reactive power control loop

${K}_{pv},{K}_{iv}$ roportional and Integral constants for DC control loop

L_{B} DC filter inductance (H)

L_{s} Filter inductance (H)

${P}_{e},{P}_{m}$ Electrical and mechanical powers (W)

${p}_{rated}$ Rated power of the WEC (W)

${P}_{ref}^{*}$ Total reference source active-power (W)

${P}_{ref,a},{P}_{ref,b},{P}_{ref,c}$ Reference source active-power in each phase (W)

${P}_{f}\left(n\right),{P}_{f}\left(n-1\right)$ Output of the voltage PI controller at the nth and (n − 1)^{th} instant (W)

${Q}_{r}^{*}$ Reactive power reference (var)

${Q}_{fl}$ Fundamental reactive power component of the loads (var)

${Q}_{qv}\left(n\right),{Q}_{qv}\left(n-1\right)$ PI controller output at the nth and (n-1)th instant (var)

R Armature resistance (Ω)

${r}_{d}$ Frequency-droop coefficient

${U}_{abc}$ PCC three phase voltages (V)

${U}_{t},{U}_{0}$ Terminal voltage (V)

${U}_{ref}$ Reference terminal voltage (V)

${u}_{a,b,cp}$ In-phase unit templates (V)

${u}_{a,b,cq}$ Quadrature unit templates (V)

${U}_{a,b,cq}$ Quadrature phase voltages (V)

${V}_{am},{V}_{bm},{V}_{cm},{V}_{T}$ Peak amplitude of the phase voltages (V), Sum of peak amplitudes (V)

${V}_{dc}^{ref}$ DC-reference voltage (V)

${Z}_{g}$ Line impedance (H)

$\omega $ Mechanical angular speed (rad/s)

${\omega}_{VSG}$ VSG mechanical speed (rad/s)

${\omega}_{f}$ Cut-off frequency of the filter

$\theta $ Electrical angle (˚)

$\Delta f$ Frequency deviation (Hz)

$\Delta {v}_{dc}$ DC-voltage deviation (V)

$\Delta {p}_{b}$ Frequency-droop power for the battery (W)

$\Delta {p}_{RES}$ RES power variation (W)

$\Delta {p}_{l}$ Damping power (W)

$\Delta {E}_{R}$ Variation of rotor kinetic energy (J)

$\text{d}\Delta f/\text{d}t$ Rate of change of the frequency (Hz/s)

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

[1] |
Bollen, M. and Hassan, F. (2011) Integration of Distributed Generation in the Power System. https://doi.org/10.1002/9781118029039 |

[2] |
Zhong, Q.C. and Weiss, G. (2009) Static Synchronous Generators for Distributed Generation and Renewable Energy. IEEE/PES Power Systems Conference and Exposition, Seattle, WA, 15-18 March 2009, 1-6.
https://doi.org/10.1109/PSCE.2009.4840013 |

[3] |
Kazmierkowski, M.P., Krishnan, R. and Blaabjerg, F. (2003) Control in Power Electronics: Selected Problems. https://doi.org/10.1016/B978-0-12-402772-5.X5000-5 |

[4] |
Ekanayake, J., et al. (2003) Control of DFIG Wind Turbines. IEEE Transactions on Power Systems, 17, 28-32. https://doi.org/10.1049/pe:20030107 |

[5] |
Ekanayake, J. and Jenkins, N. (2004) Comparison of the Response of Doubly Fed and Fixed-Speed Induction Generator Wind Turbines to Changes in Network Frequency. IEEE Transactions on Energy Conversion, 19, 800-802.
https://doi.org/10.1109/TEC.2004.827712 |

[6] |
Farret, F.A., Palle, B. and Simoes, M.G. (2004) State Space Modeling of Parallel Self-Excited Induction Generators for Wind Farm Simulation. Conference Record of the 2004 IEEE Industry Applications Conference. 39th IAS Annual Meeting, Seattle, WA, 3-7 October 2004, 2801-2807.
https://doi.org/10.1109/IAS.2004.1348870 |

[7] |
Carrasco, J.M., et al. (2006) Power-Electronic Systems for the Grid Integration of Renewable Energy Sources: A Survey. IEEE Transactions on Industrial Electronics, 53, 1002-1016. https://doi.org/10.1109/TIE.2006.878356 |

[8] |
Li, Y., Sun, Q., Wang, D. and Lin, S. (2019) A Virtual Inertia-Based Power Feedforward Control Strategy for an Energy Router in a Direct Current Microgrid Application. Energies, 12, 517. https://doi.org/10.3390/en12030517 |

[9] |
Khan, B. and Singh, P. (2017) Selecting a Meta-Heuristic Technique for Smart Micro-Grid Optimization Problem: A Comprehensive Analysis. IEEE Access, 5, 13951-13977. https://doi.org/10.1109/ACCESS.2017.2728683 |

[10] |
Kayalvizhi, S. and Vinod K.D.M. (2017) Load Frequency Control of an Isolated Micro Grid Using Fuzzy Adaptive Model Predictive Control. IEEE Access, 5, 16241-16251. https://doi.org/10.1109/ACCESS.2017.2735545 |

[11] | Kondoleon, D., Ten-Hope, L., Surles, T. and Therkelsen, R.L. (2003) The CERTS MicroGrid Concept. White Paper on Integration of Distributed Energy Resources, Prepared for Transmission Reliability Program Office of Power Technologies, US Department of Energy, Vol. 32. |

[12] |
Bevrani, H., et al. (2012) Intelligent Frequency Control in an AC Microgrid. IEEE Transactions on Smart Grid, 3, 1935-1944.
https://doi.org/10.1109/TSG.2012.2196806 |

[13] |
Zamora, R. and Srivastava, A.K. (2010) Controls for Microgrids with Storage: Review, Challenges, and Research Needs. Renewable & Sustainable Energy Reviews, 14, 2009-2018. https://doi.org/10.1016/j.rser.2010.03.019 |

[14] |
Chowdhury, S. and Crossley, P. (2009) Microgrids and Active Distribution Networks. https://doi.org/10.1049/PBRN006E |

[15] |
Chen, L., et al. (2018) Coordination of SMES, SFCL and Distributed Generation Units for Micro-Grid Stability Enhancement via Wireless Communications. IEEE Access, 6, 36699-36710. https://doi.org/10.1109/ACCESS.2018.2847463 |

[16] |
Hatziargyriou, N., Asano, H., Iravani, R. and Marnay, C. (2007) Microgrids. IEEE Power and Energy Magazine, 5, 78-94. https://doi.org/10.1109/MPAE.2007.376583 |

[17] |
Shi, K., Ye, H., Song, W. and Zhou, G. (2018) Virtual Inertia Control Strategy in Microgrid Based on Virtual Synchronous Generator Technology. IEEE Access, 6, 27949-27957. https://doi.org/10.1109/ACCESS.2018.2839737 |

[18] |
Ulbig, A., Borsche, T.S. and Andersson, G. (2014) Impact of Low Rotational Inertia on Power System Stability and Operation. IFAC Proceedings Volumes, 19, 7290-7297. https://doi.org/10.3182/20140824-6-ZA-1003.02615 |

[19] |
Ma, Y., et al. (2017) Virtual Synchronous Generator Control of Full Converter Wind Turbines with Short-Term Energy Storage. IEEE Transactions on Industrial Electronics, 64, 8821-8831. https://doi.org/10.1109/TIE.2017.2694347 |

[20] |
Xiong, R., Cao, J., Yu, Q., He, H. and Sun, F. (2018) Critical Review on the Battery State of Charge Estimation Methods for Electric Vehicles. IEEE Access, 6, 1832-1843. https://doi.org/10.1109/ACCESS.2017.2780258 |

[21] |
Faisal, M., et al. (2018) Review of Energy Storage System Technologies in Microgrid Applications: Issues and Challenges. IEEE Access, 6, 35143-35164.
https://doi.org/10.1109/ACCESS.2018.2841407 |

[22] |
Fang, J., Li, H., Tang, Y. and Blaabjerg, F. (2018) Distributed Power System Virtual Inertia Implemented by Grid-Connected Power Converters. IEEE Transactions on Power Electronics, 33, 8488-8499. https://doi.org/10.1109/TPEL.2017.2785218 |

[23] |
Beck, H. and Hesse, R. (2007) Virtual Synchronous Machine. 9th International Conference on Electrical Power Quality and Utilisation, Barcelona, 9-11 October 2007, 1-6. https://doi.org/10.1109/EPQU.2007.4424220 |

[24] |
D’Arco, S. and Suul, J.A. (2013) Virtual Synchronous Machines—Classification of Implementations and Analysis of Equivalence to Droop Controllers for Microgrids. IEEE Grenoble Conference, Grenoble, 16-20 June 2013, 1-7.
https://doi.org/10.1109/PTC.2013.6652456 |

[25] |
Zhong, Q.C. and Weiss, G. (2011) Synchronverters: Inverters that Mimic Synchronous Generators. IEEE Transactions on Industrial Electronics, 58, 1259-1267.
https://doi.org/10.1109/TIE.2010.2048839 |

[26] |
Driesen, J. and Visscher, K. (2008) Virtual Synchronous Generators. IEEE Power and Energy Society General Meeting—Conversion and Delivery of Electrical Energy in the 21st Century, Pittsburgh, PA, 20-24 July 2008, 1-3.
https://doi.org//10.1109/PES.2008.4596800 |

[27] |
Fang, J., Tang, Y., Li, H. and Li, X. (2018) A Battery/Ultracapacitor Hybrid Energy Storage System for Implementing the Power Management of Virtual Synchronous Generators. IEEE Transactions on Power Electronics, 33, 2820-2824.
https://doi.org/10.1109/TPEL.2017.2759256 |

[28] |
Lukic, S.M., Bansal, R.C., Rodriguez, F. and Emadi, A. (2008) Energy Storage Systems for Automotive Applications. IEEE Transactions on Industrial Electronics, 55, 2258-2267. https://doi.org/10.1109/TIE.2008.918390 |

[29] |
Khaligh, A. and Li, Z. (2010) Battery, Ultracapacitor, Fuel Cell, and Hybrid Energy Storage Systems for Electric, Hybrid Electric, Fuel Cell, and Plug-In Hybrid Electric Vehicles: State of the Art. IEEE Transactions on Vehicular Technology, 59, 2806-2814. https://doi.org/10.1109/TVT.2010.2047877 |

[30] |
Visscher, K. and de Haan, S. (2008) Virtual Synchronous Machines for Frequency Stabilisation in Future Grids with a Significant Share of Decentralized Generation. SmartGrids for Distribution, IET-CIRED, 1-4. https://doi.org/10.1049/ic:20080487 |

[31] | Hannan, M.A., et al. (2018) State-of-the-art and Energy Management System of Lithium-Ion Batteries in Electric Vehicle Applications: Issues and Recommendations. IEEE Access, 6, 19362-19378. |

[32] |
Bevrani, H. and Raisch, J. (2017) On Virtual Inertia Application in Power Grid Frequency Control. Energy Procedia, 141, 681-688.
https://doi.org/10.1016/j.egypro.2017.11.093 |

[33] |
Kerdphol, T., Rahman, F.S. and Mitani, Y. (2018) Virtual Inertia Control Application to Enhance Frequency Stability of Interconnected Power Systems with High Renewable Energy Penetration. Energies, 11, 981.
https://doi.org/10.3390/en11040981 |

[34] |
Wang, R., Sun, Q.Y., Ma, D.Z. and Liu, Z.W. (2019) The Small-Signal Stability Analysis of the Droop-Controlled Converter in Electromagnetic Timescale. IEEE Transactions on Sustainable Energy, 1-11.
https://doi.org/10.1109/TSTE.2019.2894633 |

[35] |
Ahmed, T., et al. (2004) Terminal Voltage Regulation Characteristics by Static Var Compensator for a Three-Phase Self-Excited Induction Generator. IEEE Transactions on Industry Applications, 40, 978-988.
https://doi.org/10.1109/TIA.2004.830783 |

[36] | Hossain, E., et al. (2018) Analysis and Mitigation of Power Quality Issues in Distributed Generation Systems Using Custom Power Devices. IEEE Access, 6, 16816-16833. |

[37] |
Lei, Y., Lin, X. and Zhu, Y. (2018) Passivity-Based Control Strategy for SMES under an Unbalanced Voltage Condition. IEEE Access, 6, 28768-28776.
https://doi.org/10.1109/ACCESS.2018.2831251 |

[38] |
Kuo, S.C. and Wang, L. (2001) Analysis of Voltage Control for a Self-Excited Induction Generator Using a Current-Controlled Voltage Source Inverter (CC-VSI). IEE Proceedings—Generation, Transmission and Distribution, 148, 431-438.
https://doi.org/10.1049/ip-gtd:20010477 |

[39] |
Leidhold, R., Garcia, G. and Valla, M.I. (2002) Induction Generator Controller Based on the Instantaneous Reactive Power Theory. IEEE Transactions on Energy Conversion, 17, 368-373. https://doi.org/10.1109/TEC.2002.801994 |

[40] |
Xu, Y. et al. (2010) Voltage and Current Unbalance Compensation Using a Static Var Compensator. IET Power Electronics, 3, 977-988.
https://doi.org/10.1049/iet-pel.2008.0094 |

[41] |
Al-Haddad, K. et al. (2009) Simple Controller for STATCOM-Based Var Generators. IET Power Electronics, 2, 192-202. https://doi.org/10.1049/iet-pel:20080146 |

[42] |
Chen, C.L. and Lin, C.E. (1996) An Active Filter for an Unbalanced Three-Phase System Using the Synchronous Detection Method. Electric Power Systems Research, 36, 157-161. https://doi.org/10.1016/0378-7796(95)01026-2 |

[43] |
Jung, Y.G., et al. (2003) The Algorithm of Expanded Current Synchronous Detection for Active Power Filters Considering Three-Phase Unbalanced Power System. IEEE Transactions on Industrial Electronics, 50, 1000-1006.
https://doi.org/10.1109/TIE.2003.817702 |

[44] |
Lejerskog, E., et al. (2015) Experimental Results on Power Absorption from a Wave Energy Converter at the Lysekil Wave Energy Research Site. Renew Energy, 77, 9-14. https://doi.org/10.1016/j.renene.2014.11.050 |

[45] |
Waters, R., et al. (2011) Ocean Wave Energy Absorption in Response to Wave Period and Amplitude Offshore Experiments on a Wave Energy converter. IET Renewable Power Generation, 5, 465-469. https://doi.org/10.1049/iet-rpg.2010.0124 |

[46] |
Skoglund, A., et al. (2010) On the Physics of Power, Energy and Economics of Renewable Electric Energy Sources—Part II. Renew Energy, 35, 1735-1740.
https://doi.org/10.1016/j.renene.2009.08.031 |

[47] |
Boström, C., et al. (2009) Study of a Wave Energy Converter Connected to a Nonlinear Load. IEEE Journal of Oceanic Engineering, 34, 123-127.
https://doi.org/10.1109/JOE.2009.2015021 |

[48] |
Parwal, A., et al. (2018) Energy Management for a Grid-Connected Wave Energy Park through a Hybrid Energy Storage System. Applied Energy, 231, 399-411.
https://doi.org/10.1016/j.apenergy.2018.09.146 |

[49] |
Blaabjerg, F., et al. (2006) Overview of Control and Grid Synchronization for Distributed Power Generation Systems. IEEE Transactions on Industrial Electronics, 53, 1398-1409. https://doi.org/10.1109/TIE.2006.881997 |

[50] |
Eriksson, R., Modig, N. and Elkington, K. (2018) Synthetic Inertia versus Fast Frequency Response: A Definition. IET Renewable Power Generation, 12, 507.
https://doi.org/10.1049/iet-rpg.2017.0370 |

[51] |
Yao, G., et al. (2017) A Virtual Synchronous Generator Based Hierarchical Control Scheme of Distributed Generation Systems. Energies, 10, 2049.
https://doi.org/10.3390/en10122049 |

[52] |
Pogaku, N., Prodanović, M. and Green, T.C. (2007) Modeling, Analysis and Testing of Autonomous Operation of an Inverter-Based Microgrid. IEEE Transactions on Power Electronics, 22, 613-625. https://doi.org/10.1109/TPEL.2006.890003 |

[53] | Chen, Y., Hesse, R., Turschner, D. and Beck, H-P. (2011) Dynamic Properties of the Virtual Synchronous Machine (VISMA). Renewable Energy and Power Quality Journal, 1, 755-759. |

[54] | Vandoorn, T.L., et al. (2011) Smart Microgrids and Virtual Power Plants in a Hierarchical Control Structure. 2nd IEEE PES International Conference and Exhibition on Innovative Smart Grid Technologies, Manchester, 5-7 December 2011, 1-7. |

[55] |
D’Arco, S., Suul, J.A. and Fosso, O.B. (2015) A Virtual Synchronous Machine Implementation for Distributed Control of Power Converters in SmartGrids. Electric Power Systems Research, 122, 180-197. https://doi.org/10.1016/j.epsr.2015.01.001 |

[56] |
Pudjianto, D., et al. (2007) Virtual Power Plant and System Integration of Distributed Energy Resources. IET Renewable Power Generation, 1, 10-16.
https://doi.org/10.1049/iet-rpg:20060023 |

[57] |
Rocabert, J., et al. (2012) Control of Power Converters in AC Microgrids. IEEE Transactions on Power Electronics, 27, 4734-4749.
https://doi.org/10.1109/TPEL.2012.2199334 |

[58] |
Barrado, J.A., Griñó, R. and Valderrama-Blavi, H. (2010) Power-Quality Improvement of a Stand-Alone Induction Generator Using a STATCOM with Battery Energy Storage System. IEEE Transactions on Power Delivery, 25, 2734-2741.
https://doi.org/10.1109/TPWRD.2010.2051565 |

[59] |
Kelly, J.F. and Christie, R. (2017) Applying Hardware-in-the-Loop Capabilities to an Ocean Renewable Energy Device Emulator. 12th International Conference on Ecological Vehicles and Renewable Energies (EVER), Monte Carlo, 11-13 April 2017, 1-7. https://doi.org/10.1109/EVER.2017.7935943 |

Copyright © 2020 by authors and Scientific Research Publishing Inc.

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.