1 Introduction

Stability of the frequency and voltage in a distributed single-phase microgrid has caught the common attention. As more and more building integrated the energy sources such as photovoltaic, small wind generator, electric vehicle and battery storage system are all connected to a single-phase grid, the stable, reliable and economic operation of this single-phase microgrid are greatly influenced [1, 2]. Thus, a grid-friendly and improved interface to integrate numerous distributed energy sources into the single-phase microgrid is of much importance.

In order to achieve the proportional power sharing, grid frequency and terminal voltage stabilization and fast islanded/grid-connected seamless transition, some innovative control methods are documented. In [36], power sharing of paralleled inverters in the steady state is realized by utilize the P–f and Q–U droop controllers. To improve the dynamic synchronism of frequency, virtual inertia and damping factor are emulated based on derivative of the detected grid frequency in [79]. Furthermore, considering the intrinsic regulation capacity of the frequency and voltage, and the self-synchronization features of a conventional synchronous generator, elaborated model of three-phase virtual synchronous generator (VSG) is established in [10, 11], and such grid interface is widely recognized in three-phase system. It not only enables the functions of the governor and exciter to realize the frequency and voltage regulation in the steady state, but also provides the rotational inertia to the grid and increases the dynamic stability without using the phase-locked loop (PLL). However, VSG control method in the single-phase microgrid still remains to be a challenging issue. Compared with the three-phase system, the major difference in single-phase grid is the twice fluctuation of fundamental-frequency in its output power, thus this feature makes the three-phase instantaneous power theory based on Clark transform and Park transform invalid. Therefore, various numerical strategies are proposed to achieve a fast and accurate instantaneous single-phase output power calculation [12, 13].

One method to obtain active and reactive power by calculating the mean value and fluctuation is based on the whole period or half period sampling in [14]. Assuming that the voltage phasor u leads the current phasor i with the phase angle θ ui . The lengths of the phasors equal to their peak values, and the instantaneous values equals to their projections u α and i α . Inspired by the rotating coordinates, the virtual αβ frame is utilized to build up the 90° phase-shifted phasors, u β and i β . It is well understood that the single-phase active power consists of a constant consumed DC-offset power and a twice fundamental-frequency power periodically flow between the load and the source. As the DC power value always equals to the peak value of the periodic fluctuating power in a single phase system, the active and reactive power can be defined as:

$$\left\{ {\begin{array}{*{20}l} {P = \frac{{\left| \varvec{u} \right|\left| \varvec{i} \right|\cos \left( {\theta_{ui} } \right)}}{2} = \frac{{u_{\alpha } i_{\alpha } + u_{\beta } i_{\beta } }}{2}} \hfill \\ {Q = \frac{{\left| \varvec{u} \right|\left| \varvec{i} \right|\sin \left( {\theta_{ui} } \right)}}{2} = \frac{{u_{\beta } i_{\alpha } - u_{\alpha } i_{\beta } }}{2}} \hfill \\ \end{array} } \right.$$
(1)

Hence, multiple methods are presented to create an orthogonal signal generator (OSG) system, such as Hilbert Transform, inverse Park Transform and Second Order Generalized Integrator (SOGI). However, these methods normally require a synchronization unit to realize OSG under certain frequency, and the transient response and dynamic stability of such methods are dependent on the performance of both OSG function and synchronization function. As the frequency of a converter would vary under different conditions in microgrid, the design of these functions is widely recognized a stringent issue.

In this paper, VSG control is embedded with a virtual synchronous rotational shaft which provides the power calculation module with an instant and accurate frequency signal. Thus, it increases the accuracy of the instantaneous power calculation while maintains its stability and speed. Furthermore, a virtual power calculation (VPC) is presented based on the similar method to achieve the islanded/grid-connected seamless transition.

The rest of this paper is organized as follows. The VSG control for the single-phase inverter is presented in Sect. 2. The instantaneous power calculation method based on the intrinsic frequency is proposed in Sect. 3, with comparison simulation, stability analysis and seamless transition experimental results are presented in Sect. 4, followed by conclusions made in Sect. 5.

2 Single-phase virtual synchronous generator

Figure 1 shows the general configuration of a single-phase inverter based on VSG method.

Fig. 1
figure 1

General configuration of a single-phase VSG

As indicated in Fig. 1, there are some similarities between a single-phase synchronous generator and the inverter. Theoretically, the input DC source U DC can mimic the prime mover, and the filter inductance L f in the single-phase inverter can be considered as the inductor of the stator L st of the generator. Additionally, with the electro-magnetic and electro-mechanical model, virtual governor and exciter model built inside the control system, a single-phase inverter can mimic the characteristic of a real synchronous generator.

2.1 Electro-magnetic and electro-mechanical models

According to Faraday’s Law, the electro-magnetic model is designed to demonstrate the basic relationship between the stator voltage u inv and the back electro-motive force (EMF) e 0. It can be expressed as:

$$\left\{ {\begin{array}{*{20}l} {u_{inv} = - R_{s} i_{o} - L_{s} \frac{{{\text{d}}i_{o} }}{{{\text{d}}t}} + e_{0} } \hfill \\ {e_{0} = M_{f} i_{f} \omega\sin \delta } \hfill \\ \end{array} } \right.$$
(2)

where u inv is the PWM reference of the inverter; i o is the output current; M f and i f are the magnetic inductance and excitation current respectively; L s and R s are the stator impedance which are the combination of the real existed filter inductor and programmable virtual impedance. Thus, the output voltage can be coordinated by mimicking the parameter of a real synchronous generator. Especially, δ is the power angle which is determined by the electro-mechanical model, and therefore it provides the inverter with the capacity to generate the synchronous frequency ω.

According to Newton’s Law, the electro-mechanical model is designed to illustrate the motion modes of generator. It can be expressed as:

$$J\alpha = T_{m} - T_{e} + D\omega$$
(3)

where T m and T e are the mechanical torque and electro-magnetic torque, respectively; D is the rotor damping factor; J is the virtual inertia; α is the angular acceleration; and ω is the synchronous frequency which also represents the dynamic rotating speed of the back EMF. The virtual synchronous shaft is built up through the equation above to represent the electro-mechanical energy conversion process of a real generator [11]. Therefore, not only the voltage–current relation of inverter meets the feature of a synchronous generator, but also the frequency dynamic response conforms to the rotor motion rule inside the generator. The synchronous generator module provides inverter with the flexibility to mimic various rotor inertia constants, stator impedance to achieve the similar interface of single-phase generators of same power level.

2.2 Virtual governor and virtual exciter

On the basis of the proposed generator module above, virtual governor and virtual exciter are employed to realize the ability of the frequency and voltage regulation in the real synchronous generator system. The active power-frequency static feature is established on the P–f droop controller, and the reactive power–voltage static feature is established on the Q–U droop controller. Both controllers can be expressed as:

$$\left\{ {\begin{array}{*{20}l} {D_{P} = \frac{\Delta f}{\Delta P} = \frac{{\left( {f - f_{n} } \right)/f_{n} }}{{\left( {P_{n} - P_{ref} } \right)/P_{n} }}} \hfill \\ {D_{Q} = \frac{\Delta U}{\Delta Q} = \frac{{\left( {U_{o} - U_{n} } \right)/U_{n} }}{{\left( {Q_{n} - Q_{ref} } \right)/Q_{n} }}} \hfill \\ \end{array} } \right.$$
(4)

where D P and D Q are the P–f droop factor and the Q–U droop factor respectively; P n , f n , Q n , U n are the nominal values of active power, frequency, reactive power and voltage, respectively; According to the equations, P ref represents the input mechanical power reference under present frequency f to enable active load sharing between paralleled inverters, while Q ref represents the reactive power reference under present voltage amplitude U o , as well as realizes the proportional reactive power sharing . It is highlighted that the present frequency can be obtained from the proposed virtual rotor shaft above without using any dedicated PLL, and the virtual inertia increases the dynamic stability of the synchronous frequency in the single-phase microgrid.

2.3 VPC-based seamless transition

Though the single-phase VSG is a voltage-controlled source which owns the advantages of the self-regulated frequency and voltage, a fast and adequately accurate synchronization process remains to be a stringent issue. It is well understood that PLL may lead to heavy calculation burden and time-consuming when there is a phase jump event or sudden frequency change occurs. Supposing there is virtual impedance between the grid and the inverter, virtual current can be calculated as:

$$i_{v} = \frac{{u_{o} - u_{g} }}{{L_{v} s + R_{v} }} = \frac{{\left| {\Delta u} \right|\angle \delta_{g} }}{{L_{v} s + R_{v} }}$$
(5)

where u o and u g are the instant value of inverter output voltage and grid voltage; L v and R v are virtual synchronizing impedance; i v is the virtual current which represents the virtual power flowing between the inverter and the grid, while δ g represents the virtual power angle. Then, u o and i v are applied to calculate the virtual power during the pre-synchronization process. And the completion flag of such process can be recognized when the VPC result is near zero. The control module of such VPC-based seamless transition is depicted in Fig. 2.

Fig. 2
figure 2

VPC-based seamless transition control module for VSG

Note that VPC method displaces the function of a PLL unit, thus provides the possibility of the seamless transition in a single-phase VSG system. The operation methods of the islanded mode, grid pre-synchronization and transition processes are introduced in the followings.

When all three switches in Fig. 2 are set to Position 1, the VSG operates under the islanded mode, in which the virtual governor undertakes the function to generate a mechanical torque T m with due P–f droop factor, while the virtual exciter can generate the excitation current i f with due Q–U droop factor. Thus, both the local frequency and voltage can be coordinated in islanded mode.

When the inverter receives the command to connect to a grid, all the switches in Fig. 2 are thrown to Position 2. In the virtual governor block, the mechanical power reference P m is set to zero, and the virtual current i v is implemented to calculate the virtual power. If virtual power is positive while inverter voltage phasor leads the grid voltage phasor, intrinsic frequency f of VSG will decrease, and vice versa. By calculating the virtual power flow between the inverter and grid, pre-synchronization can be realized. Then, phase breaker can be turned on as soon as the calculated virtual power is close to zero with grid-connected current under well-controlled. Considering the virtual inertia J which is set in the VSG module may lag the pre-synchronization time, an alternative switch can be embedded in the VSG module to deprive inertia constant whenever a fast grid synchronization is in need. Furthermore, small value of L v and R v can also accelerate the synchronization process, but may also lead to oscillations in the frequency estimation.

After being connected to the grid, all the switches are thrown back to Position 1 with the actual output power can be regulated again in the VSG control model. In case of a drastically sudden power change occurs, an uploading process is alternative under certain circumstances.

Whether being connected to a strong grid or a weak grid, the single-phase VSG can operate in the similar way as it does in the islanded mode. After the uploading process, the output power of the inverter is fixed according the initial nominal power P n and Q n set in the P–f and Q–U droop controllers. However, when the frequency or voltage of the grid varies, the power references can also be affected according to (4).

It is easy to illustrate when VSG connects to a strong grid with fixed frequency and voltage. As the active power flow is determined by the power angle, and the power angle can be controlled by the virtual mechanical torque, the variation of nominal active power P n can move the P–f droop curve vertically which enable the output active power P tracks its command. Similarly, as the reactive power flow is determined by the excitation current, and the current can be controlled by the voltage error, the variation of the nominal reactive power Q n can move the Q–U droop curve vertically which enable the output reactive power Q tracks its command. Additionally, when VSG connects to a weak grid or even other VSGs with floating frequency and voltage, the control strategy of injection power remains the same as is mentioned above. Thanks to the VSG belongs to the synchronous power source which has intrinsic regulation ability of both frequency and voltage, the frequency and voltage of the point of common coupling (PCC) are determined by all the paralleled power source, while the P–f and Q–U droop controllers enable the proportional power sharing.

However, considering the frequency is variable by adopting the VSG control, the single-phase power calculation is more challenging and stringent. What’s more, both real power calculation and virtual power calculation requires the dynamic stability, accuracy and appropriate calculation speed to ensure a high performance of the VSG. Hence, taking the advantage of VSG control method, an innovative instantaneous single-phase power calculation is of great significance.

3 Single-phase power calculation based on intrinsic frequency

The main task for calculating instantaneous power in single-phase system is to extract average and fluctuating components from the cycles of sine waves. On the basis of SOGI which is a good alternative for creating orthogonal system in [7], the proposed method utilizes the intrinsic frequency signal from VSG module to achieve a more accurate and stable power calculation.

The sampled output voltage and current u o , i o can be transferred into two groups of quadrature signals u α , u β and i α , i β through SOGI system. Introduced with the intrinsic frequency from the virtual shaft of the single-phase VSG module, the closed-loop transfer functions of SOGI are defined as:

$$\left\{ {\begin{array}{*{20}l} {H_{\alpha } (s) = \frac{{u_{\alpha } }}{u}(s) = \frac{{i_{\alpha } }}{i}(s) = \frac{k\omega s}{{s^{2} + k\omega s + \omega^{2} }}} \hfill \\ {H_{\beta } (s) = \frac{{u_{\beta } }}{u}(s) = \frac{{i_{\beta } }}{i}(s) = \frac{{k\omega^{2} }}{{s^{2} + k\omega s + \omega^{2} }}} \hfill \\ \end{array} } \right.$$
(6)

From the perspective of frequency-domain, the two output signals with a phase shift of 90° are generated, while the component on α axis has the same phase and magnitude as the fundamental of input signal. And the gain factor k affects the bandwidth of the closed-loop system which will be analyzed in detail in the following. Commonly, the resonance frequency ω is set on the system nominal value ω n . From the perspective of time-domain, the proposed instantaneous power calculation actually utilize the information of 1/4 fundamental cycles of voltage and current, and can give out a refreshed result every 1 AD interruption cycle. However, as the proposed SOGI structure is frequency dependent, problems can occur when system frequency fluctuating under different conditions. Thanks to the VSG module can generate the continuously and slowly-varied intrinsic frequency, it can be employed easily without the fear of frequency skipping or phase jumping event. Here, the resonance frequency ω can be replaced with the intrinsic frequency of VSG, and this embedded value assures the accuracy of center frequency without need of any PLL, thus improves the performance of instantaneous power calculation with SOGI method.

3.1 Actual power calculation

To utilize the grid-friendly interface, the VSG control strategy in single-phase system is proposed above. Therefore, the frequency of the inverter is flexible under different operation modes, while the center frequency deviation in OSG system can cause the inaccurate power calculation in both dynamic and steady state. The Bode diagram of SOGI system is shown in Fig. 3a.

Fig. 3
figure 3

Dynamic responses of the proposed power calculation method

The magnitude-frequency curves indicate the band-pass feature of H α (s) and low-pass feature of H β (s). The phase-frequency curves indicate the 0° shift feature of H α (s) and 90° shift feature of H β (s) in the center frequency. It is easily understood that only the resonance frequency equals to the frequency of detected sine waves, the instantaneous power calculation under SOGI method can generate a correct result. The larger the frequency deviation is, the more phase-shift and amplitude decay occurs. Therefore, the program embedded feature and continuity feature of the intrinsic frequency can provide the advantage to calculate more accurate instantaneous power while maintain the dynamic stability of the original SOGI method. While in the conventional method, the constant resonance frequency would lead to an imprecise power result.

It is obvious that with the decrease of k, bandwidths are narrowed both in the magnitude and phase diagrams. Hence, in order to avoid too much magnitude decay and phase shift when the frequency deviates from the center frequency, conventional SOGI system requires a slightly higher k which in turn leads to a larger overshot in step response result. Step response figure of H α (s) at different gain factors is shown in Fig. 3b. In general, lots of efforts need to be taken to balance the frequency bandwidth and overshot in the conventional SOGI system. While the proposed instantaneous power calculation based on an intrinsic and comparatively slow changing frequency can provide the power computation process with desired small overshot and considerably narrow bandwidth around the varied intrinsic frequency. In this paper, k is equal to 1.0 for the simulation and the experiment.

3.2 Virtual power calculation

As is mentioned above, stability of the power calculation module plays an important role in seamless transition based on the virtual power strategy. Similar to the actual power calculation method, the performance of virtual power calculation can also be elevated based on the intrinsic frequency. Conventionally, PLL unit is always considered as time-consuming and unstable under sudden frequency change or phase jump events. Even though advanced PLL designs have solved some of the issues, the present paralleled power system actually contains multiple frequencies as each VSG or frequency-voltage regulated source injects its own intrinsic frequency into grid, therefore, makes it more troublesome for PLL unit to generate a stable grid frequency during the pre-synchronization period.

Apparently, the intrinsic frequency serves as the stable and accurate information for center frequency in SOGI system, which allows virtual power calculation to be near zero even under varied grid frequency. Though implementing the same SOGI system, the virtual synchronizing impedance and the virtual inertia also play significant roles during the pre-synchronization period. Figure 3c shows the dynamic response of the intrinsic frequency based SOGI system under different virtual synchronizing impedance and virtual inertia where k of SOGI system is equal to 1.0. In the frequency response waveforms in Fig. 3c, Z u is per unit value of virtual synchronizing impedance and J u is per unit value of virtual inertia. When a sudden change of the grid frequency from 50 to 50.2 Hz occurs in 3 s, varied frequency can be tracked smoothly according to the proposed intrinsic frequency-based VPC. Additionally, the regulation time can be extended along with the increase of Z u and J u . It is obvious that Z u functions as the ratio factor for calculated errors of the virtual power from zero, increasing the virtual synchronizing impedance would prolong the synchronization time proportionally, while J u determines the changing speed of the intrinsic frequency. Thus, the smaller virtual inertia is, the shorter the synchronization period would take. Firstly, small value of L v and R v can accelerate the synchronization process, but may also lead to oscillations in frequency estimation. Secondly, the ratio of R v /L v defines the cut-off frequency of output voltage, which determines the capacity of filtering out the harmonics in grid voltage. Thus, L v and R v can be set slightly smaller than stator impedance L s and R s .

As SOGI system based on the intrinsic frequency method is implemented in both actual and virtual power calculations, it provides the possibility for the single-phase VSG to achieve seamless transition.

4 Simulation and experiment results

4.1 Simulation results

The proposed instantaneous power calculation based on intrinsic frequency of single-phase VSG is verified with simulations carried out in MATLAB/Simulink. Comparison simulations are also designed with conventional power calculation based on the nominal frequency. Parameters of VSG and control system are all given in Table 1.

Table 1 Parameters used in simulation and experiment

The PWM carrier wave frequency and sampling frequency are chosen to be 10 kHz. Virtual inertia of the proposed VSG is chosen to be 0.001 kg/m2 which stand for the inertia constant H v  = 0.2 s in the per unit system according to:

$$H_{v} = \frac{1}{2}J_{v} \omega_{n}^{2} /P_{n}$$
(7)

Simulation circuit is exactly the same as shown in Fig. 1 where the full-bridge single-phase inverter is connected to a local load via the local breaker K1, as well as connected to the grid via the grid breaker K2. P–f droop factor D P  = 0.01 is chosen so that 1% nominal frequency variation correspondent to 100% nominal active power, and Q–U droop factor D Q  = 0.01 is chosen so that 1% nominal voltage variation correspondent to 100% nominal reactive power. With the turn on/off combinations of the breakers K1 and K2, simulations under islanded mode, grid-connected mode and transition operation modes are elaborated in the following.

In islanded mode, K1 is enabled and K2 remains turn-off according to main circuit shown in Fig. 1, while control switches in Fig. 2 are in Position 1. VSG starts with no-load mode while 261 Ω resistive load is connected at 0.4 s. The output power and frequency waveforms under intrinsic frequency power calculation and conventional power calculation are shown in Fig. 4a, b, respectively. It can be seen that frequency varies from 50.5 Hz to 50.05 Hz along with active power changes from 0 to 225 W in Fig. 4a. While in Fig. 4b, frequency drops to 50.08 Hz which is higher than the regulated frequency according to the droop curves. As resonance frequency of power calculation in conventional method deviates from the actual frequency, power calculation results are smaller than the actual power with the same load and terminal voltage. Thus, the regulated frequency according to the droop curves becomes larger than its expected value.

Fig. 4
figure 4

Comparison of simulation results under islanded mode

In grid-connected mode, K2 is closed-on and K1 remains turn-off according to the main circuit shown in Fig. 1, while control switches in Fig. 2 are all in Position 1. Simulation of grid-connected mode is conducted in the following steps. Firstly, VSG is connected to a grid (50 Hz, 230 V) while injecting an active power of 250 W. Secondly, sudden change of the grid frequency increases from 50.0 to 50.1 Hz at 0.62 s.

Figure 5 reveals the dynamic response of the grid-connected VSG under grid frequency sudden change event. As a virtual synchronous shaft is introduced, though grid frequency increases abruptly, power angle between VSG and the grid opens up gradually according to the virtual inertia, thus no power impact occurs and VSG could follow the grid within 0.2 s. According to the P–f droop control, the injected power would drop to 200 W in the steady state which is shown in Fig. 5a. While in Fig. 5b, injected power drops to 223 W which is larger than the regulated one. As the power calculation in Fig. 5a applies the intrinsic frequency of VSG which makes the resonance frequency follows the actual frequency, there is no attenuation of the calculated power value. As the grid capacity is much stronger than inverter, and the frequency is set to 50.1 Hz, conventional power calculation under nominal frequency is no longer accurate. Smaller calculation results in the digital system leads to a larger power injection in the analog system.

Fig. 5
figure 5

Comparison of simulation results under grid-connected mode

Seamless transition simulation is conducted as follows. Firstly, VSG is under no-load operation with K1 and K2 are both turn-off, and control switches are all in Position 1, grid frequency and voltage are equal to their nominal value, which are 50 Hz and 230 V. At 0.25 s, VSG receives pre-synchronization command with control switches are thrown to Position 2. When the voltage error between both sides of K2 is considerably small, K2 is closed to connect VSG to the grid. Then, the switches are thrown back to Position 1 to output 250 W and 250 var.

Comparison simulation results are shown in Fig. 6. The grid voltage u g , the output voltage u o and current i o are depicted to illustrate the differences between the proposed power calculation methods and conventional methods. It can be observed from Fig. 6a that there is no inrush current i o occurs between the grid and the inverter during islanded to grid-connected mode transition which verifies the proposed virtual power calculation can achieve a seamless transition without PLL. However, Fig. 6b reveals an inrush current up to 4.8 A during the transition period.

Fig. 6
figure 6

Comparison of simulation results under seamless transition

And the major difference comes from the resonance frequency in virtual power calculation module. As frequency in no-load mode is 50.5 Hz, in order to synchronize with grid frequency 50 Hz, inverter would gradually decrease its output frequency. As the conventional calculation using the nominal frequency as its resonance frequency, it leads to attenuation in calculated results, which may cause grid breaker close in advance when virtual power is not smaller enough, then higher inrush current is generated.

4.2 Experiment results

The proposed power calculation method is also tested with a 500 VA single-phase VSG. The parameters used in the experiments which are similar to the simulations are shown in Table 1. The switching frequency and sampling frequency are chosen as 10 kHz.

Firstly, to verify the advantages of the proposed intrinsic frequency-based actual power calculation, comparison experiment under the islanded mode is conducted as follows: firstly, a 225 W load impacts at 2.5 s, then a 225 W load drops at 7.5 s. Waveforms of the output active power and frequency are extracted from the recorded sinusoid voltage and current data, and then depicted in Fig. 7. It is obvious that 50.05 Hz should correspond to 225 W according to the P–f droop curves as shown in Fig. 7a, while in Fig. 7b, the frequency under conventional method only drops to 50.09 Hz. Thanks to the intrinsic frequency of VSG, the generated orthogonal phasor in the single-phase power calculation module would not have damped amplitude compared with the conventional method. However, as the resonant frequency of conventional power calculation never matches the real output frequency during the frequency decrease period in Fig. 7b, the calculated power is always smaller than the real power. Thus, the smaller calculated power in control system would correspond to a larger frequency than its expected value. Then, the P–f relationship would not coincide with the droop requirements when applies the conventional power calculation method.

Fig. 7
figure 7

Comparison of experimental results under islanded mode

Moreover, to illustrate the merits of the VPC-based seamless transition, comparison experiment of the islanded/grid-connected transition is conducted. The actions of all the breakers and switches are in accordance with those in the correspondent simulation.

The islanded/grid-connected transition results are depicted in Fig. 8. As grid frequency stays on 50 Hz and its voltage is 230 V, the active power and reactive power injecting is constant as 250 W and 250 var according to the droop curves.

Fig. 8
figure 8

Comparison of experimental results under seamless transition

It is clear that the peak of the inrush current during the transition period is regulated within 3 A in Fig. 8a, which adopts the proposed virtual power calculation embedded with the intrinsic frequency. Moreover, the transition time is constrained inside 10 ms with no overshot or oscillation occurs. While also applying the virtual power calculation method, the inrush current peak is up to 4.8 A in Fig. 8b, which only adopts the conventional power calculation with a constant resonant frequency. Thus, the damped amplitude in the calculated virtual power value causes the grid breaker being closed ahead of time, and lead to a much larger inrush current.

5 Conclusion

In order to achieve the proportional power sharing, frequency and voltage stabilization, as well as a fast grid-tied/islanded transition in the single-phase microgrid, an accurate and fast power calculation method is significant. On the basis of the intrinsic frequency generated from electro-mechanical model of VSG, an instantaneous single-phase power calculation strategy is developed. As the frequency value can be updated every control cycle in microgrid, this method can provide converter with faster and more precise power calculation results. Besides, a virtual power calculation method is also presented to achieve the islanded/grid-connected seamless transition without PLL, and its pre-synchronization time can be decreased by means of the adaptive virtual inertia. Then, the dynamic response performance of the proposed method is illustrated by the stability analysis. Moreover, comparison simulations also demonstrate its calculation speed and accuracy. The advantages of the proposed methods over conventional power calculation based on nominal frequency are verified through islanded operation and islanded/grid-connected transition experiments. It is explicit that the intrinsic frequency of VSG can provide the power calculation with a more accurate resonant frequency than conventional method. And with more accurate calculated power value, inverter can acquire better performance to meet droop requirements in islanded mode, as well as inject accurate power into the grid in the grid-connected mode. What’s more, the inrush current can also be better regulated during the islanded/grid-connected transition with the more precise virtual power calculation results.

However, as the intrinsic frequency of VSG model is regulated by the virtual inertia, its dynamic processes which have shorter time constants such as electrical magnetic process are not taken into consideration in this model. Therefore, the power regulation in the electrical constants dynamic process and higher harmonics is the further focus of the research.