The rapid integration of renewable energy sources into the power grid has necessitated a paradigm shift in inverter control strategies. Among the various types of solar inverters, grid-forming (GFM) inverters, particularly those based on the Virtual Synchronous Generator (VSG), have emerged as a pivotal technology. Unlike their grid-following counterparts, which rely on a stable grid reference, GFM inverters can actively establish voltage and frequency, providing inertial support similar to synchronous machines. However, the interaction between the VSG’s control loops and the grid impedance can lead to complex stability issues, particularly involving frequency coupling. This paper presents a comprehensive frequency-coupled impedance model for a VSG-based GFM inverter and analyzes its stability within the context of different types of solar inverter configurations. The study further introduces a virtual impedance loop to enhance system stability and provides a systematic design methodology.
1. Introduction to Frequency Coupling in VSG Converters
Frequency coupling is an inherent phenomenon in three-phase AC systems where an asymmetry in the dq-control loops exists. This asymmetry, often resulting from minor gain or phase mismatches in the proportional-integral (PI) controllers of the d- and q-axes, causes a single-frequency perturbation to generate responses at both the same frequency and a coupled frequency. For the different types of solar inverter topologies, this effect can significantly alter the output impedance characteristics, especially in the sub-synchronous frequency range. In a VSG-based types of solar inverter, the dq-current and voltage control loops are designed to be symmetrical, but practical implementations always introduce small imperfections. This leads to the generation of a negative-sequence coupling component at a frequency of \( 2f_0 – f_p \) when a positive-sequence perturbation at frequency \( f_p \) is injected, where \( f_0 \) is the fundamental frequency. The relationship between perturbation frequency, sequence, and the resulting coupling is a critical factor that must be considered for accurate stability assessment.

2. Frequency-Coupled Impedance Modeling of the VSG Inverter
To accurately capture the dynamics of a VSG-based types of solar inverter, a sequence-domain impedance model that includes frequency coupling is developed. The model is derived by linearizing the system equations in the frequency domain. The main circuit, power loop, voltage loop, and current loop of the VSG are considered. The harmonic linearization method is applied to the time-domain equations of the inverter, resulting in a small-signal model in the frequency domain.
2.1 Main Circuit and Control Structure
The topology of the grid-forming VSG inverter, a specific type of solar inverter, includes a DC voltage source, a three-phase inverter bridge, an LCL filter, and a grid connection point (PCC). The control system consists of an outer power loop (mimicking synchronous generator inertia and droop characteristics) and an inner voltage-current double loop. The power loop generates the magnitude (\( E_m \)) and phase angle (\(\theta\)) of the internal electromotive force (EMF). The governing equations for the VSG power loop are given by:
$$ J \frac{d\omega}{dt} = P_{ref} – P_e – D_p(\omega – \omega_n) $$
$$ \frac{d\theta}{dt} = \omega $$
$$ E_m = V_0 + \frac{1}{Ks + D_q}(Q_{ref} – Q_e) $$
where \(J\) is the inertia, \(D_p\) is the active damping coefficient, \(K\) and \(D_q\) are the voltage regulation coefficients, and \(P_e, Q_e\) are the instantaneous active and reactive power outputs.
2.2 Derivation of the Sequence Impedance Matrix
By injecting a small positive-sequence voltage perturbation at frequency \(f_p\) (\( \omega_p \)) and a negative-sequence perturbation at frequency \(f_n\), the response of the system is analyzed. The dq-domain equations are transformed back to the sequence domain. The final small-signal model can be expressed as a 2×2 impedance matrix relating the perturbation voltages and currents:
$$ \begin{bmatrix}
V_p(s) \\
V_n(s – j2\omega_0)
\end{bmatrix}
=
\begin{bmatrix}
Z_{pp}(s) & Z_{pn}(s) \\
Z_{np}(s – j2\omega_0) & Z_{nn}(s – j2\omega_0)
\end{bmatrix}
\begin{bmatrix}
I_p(s) \\
I_n(s – j2\omega_0)
\end{bmatrix} $$
Here, \(Z_{pp}\) and \(Z_{nn}\) are the self-impedances, while \(Z_{pn}\) and \(Z_{np}\) are the coupling impedances representing the frequency coupling effect. The simplified equivalent SISO impedance model can be derived for stability analysis. The positive-sequence equivalent impedance \(Z_{p\_vsg}(s)\) is given by:
$$ Z_{p\_vsg}(s) = Z_{pp}(s) – \frac{Z_{pn}(s) \cdot Z_{np}(s – j2\omega_0)}{Z_{nn}(s – j2\omega_0) + Z_{gn}(s – j2\omega_0)} $$
This impedance model forms the basis for the stability analysis. To validate the model, time-domain simulations were performed. A comparison of the theoretical impedance and simulation results is shown in Table 1, demonstrating good agreement and proving the accuracy of the model for this type of solar inverter.
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| Active Power Reference \(P_{ref}\) | 7200 W | Inertia Coefficient \(J\) | 0.062 |
| Reactive Power Reference \(Q_{ref}\) | 350 Var | Active Damping \(D_p\) | 6.0 |
| Rated Frequency \(f_0\) | 50 Hz | Reactive Damping \(D_q\) | 300 |
| Filter Inductance \(L_f\) | 2.8 mH | Voltage Regulator \(K\) | 6.8 |
| Filter Capacitance \(C_f\) | 10 μF | Voltage Loop \(k_{pv}\) | 1.3 |
| Filter Resistance \(R_f\) | 1.2 Ω | Voltage Loop \(k_{iv}\) | 4.2 |
| DC Voltage \(V_{dc}\) | 780 V | Current Loop \(k_{pi}\) | 6.3 |
3. Stability Analysis Based on the Impedance Model
Using the developed SISO impedance model, the stability of the grid-connected inverter system is analyzed over a range of grid strengths (Short Circuit Ratio, SCR). The Nyquist stability criterion is applied by examining the ratio of the grid impedance \(Z_g(s)\) to the inverter output impedance \(Z_{p\_vsg}(s)\) or \(Z_{n\_vsg}(s)\). A system is stable if the phase margin at the frequency where the magnitudes of the two impedances intersect is positive.
3.1 Impact of Grid Strength on Stability
For different types of solar inverter applications, the grid strength varies. The Bode plots of the positive-sequence output impedance were analyzed for SCR values ranging from 1.2 (very weak grid) to 40 (strong grid). The phase margin calculations at the intersection frequencies are as follows:
- Weak Grid (SCR = 3): The phase margins are positive.
- \(\phi_{p1} = 180^\circ – (-90^\circ – 8.85^\circ) = 98.85^\circ\)
- \(\phi_{n1} = 180^\circ – (-90^\circ + 17.41^\circ) = 72.59^\circ\)
- Strong Grid (SCR = 28): The phase margin becomes negative.
- \(\phi_{p2} = 180^\circ – (-90^\circ – (-163.23^\circ)) = -73.23^\circ\)
- The negative phase margin indicates a high risk of sub-synchronous oscillations.
The analysis reveals a counter-intuitive finding: this type of solar inverter (VSG) demonstrates robust stability under weak grid conditions but is more prone to instability under strong grid conditions. This is due to the reduced decoupling effect of the grid inductance, which strengthens the interaction between the inverter and the grid, leading to a decreased damping ratio.
3.2 Sensitivity Analysis for Virtual Impedance Design
To quantify the effect of virtual impedance on system stability, an impedance ratio sensitivity analysis is performed. The positive-sequence impedance ratio is defined as \( L_p(s) = Z_g(s) / Z_{p\_vsg}(s) \). The sensitivity of this ratio to the virtual reactance \(X_v\) is:
$$ \lambda_{Xv} = \frac{\partial L_p(s)}{\partial X_v} = \text{Re}[\lambda_{Xv}] + j \text{Im}[\lambda_{Xv}] $$
The analysis shows that in the critical frequency band (30-40 Hz), the real part of the sensitivity is positive and the imaginary part is negative. This indicates that increasing the virtual reactance will effectively shift the phase of the output impedance in a direction that increases the stability margin. The critical condition for stability is met when the following criteria are satisfied at the intersection frequency:
$$ \text{Im}[\lambda_{Xv}] = 0 \quad \text{and} \quad \text{Re}[\lambda_{Xv}] > 0 $$
This provides a theoretical basis for selecting the virtual impedance value. The three-dimensional plot of the sensitivity demonstrates how its trajectory moves towards this critical condition as \(X_v\) increases.
4. Stability Enhancement through Virtual Impedance Design
Based on the sensitivity analysis, a virtual impedance is introduced in series with the inverter’s output impedance to reshape its frequency characteristics. The virtual impedance is implemented in the control loop as shown in the control block diagram. The modified reference voltages for the inner voltage loop are:
$$ \begin{cases}
V_{d}^{ref} = E_m – R_v i_{Ld} + X_v i_{Lq} \\
V_{q}^{ref} = V_0 – R_v i_{Lq} – X_v i_{Ld}
\end{cases} $$
where \(R_v\) and \(X_v\) are the virtual resistance and reactance, respectively. The introduction of virtual impedance modifies the equivalent output impedance to \(Z_{out}(s) = Z_{vsg}(s) + Z_v(s)\).
4.1 Critical Threshold for Virtual Impedance
To determine the minimum value of virtual inductance required for stabilization, a critical stability condition is derived. The system is at the boundary of stability when the phase margin is zero. This leads to an approximate expression for the critical virtual inductance \(L_{v,crit}\):
$$ L_{v,crit} \approx -L_g – \frac{\text{Im}\{Z_{vsg}(j\omega_0)\}}{\omega_0} $$
This equation shows that the critical value depends on the grid inductance (\(L_g\)) and the imaginary part of the inverter’s intrinsic output impedance at the oscillation frequency. For a grid with \(L_g = 3.35 \text{ mH}\) (SCR ≈ 28), the calculated critical virtual inductance is approximately 1.17 mH. The Bode plot analysis for different virtual inductance values confirms this threshold.
| Grid Inductance \(L_g\) | Critical Virtual Inductance \(L_{v,crit}\) |
|---|---|
| 3.35 mH | ~1.17 mH |
| 2.4 mH | ~1.76 mH |
When the virtual inductance is below this threshold (e.g., \(L_v = 0.45 \text{ mH}\)), the phase margin remains negative, and the system is unstable. When the virtual inductance exceeds the threshold (e.g., \(L_v = 1.35 \text{ mH}\)), the phase margin becomes positive, and the system is stabilized. This demonstrates the threshold effect of the virtual impedance in improving the stability of this specific type of solar inverter.
5. Time-Domain Simulation Verification
Time-domain simulations in MATLAB/Simulink are performed to validate the theoretical findings. The system is initially operating in a weak grid (SCR = 3) and is then switched to a strong grid (SCR = 28) at t = 1s.
- Without Virtual Impedance: The A-phase voltage waveform shows sustained oscillations after the transition to a strong grid, confirming the instability predicted by the impedance analysis. The oscillations persist at different grid strengths (SCR = 28 and 40), validating the risk of instability under strong grid conditions for this type of solar inverter.
- With Virtual Impedance: When a virtual inductance of 10 mH is added, the oscillations are completely suppressed. The system remains stable across all grid conditions, demonstrating the effectiveness of the virtual impedance in improving robustness.
Further simulations validate the critical threshold. For a grid with \(L_g = 3.35 \text{ mH}\), the system is not fully stable when \(L_v = 0.9 \text{ mH}\). However, when the virtual inductance is increased to \(L_v = 1.35 \text{ mH}\) at t = 2s, the oscillations are dampened, and the system stabilizes. A similar trend is observed for the \(L_g = 2.4 \text{ mH}\) case, where the system stabilizes only after the virtual inductance reaches 1.8 mH. These simulation results are in excellent agreement with the Bode plot analysis, confirming the existence and accuracy of the virtual impedance critical value.
- Comprehensive Modeling: A frequency-coupled output impedance model for a VSG-based GFM types of solar inverter was developed and validated through time-domain simulations. The model accurately captures the coupling between positive and negative sequences, providing a reliable tool for stability analysis.
- Stability Characteristics: The analysis revealed a unique stability behavior where the VSG-based inverter shows robust stability in weak grids but is vulnerable to sub-synchronous oscillations in strong grids. This is attributed to the reduced damping caused by the tighter coupling between the inverter and the grid.
- Virtual Impedance Design: A sensitivity-based methodology was proposed for designing virtual impedance. It was shown that virtual impedance can effectively improve the phase margin at the critical intersection frequency. The virtual impedance exhibits a distinct threshold; its value must exceed a certain critical level, which is a function of the grid impedance and the inverter’s intrinsic characteristics, to effectively stabilize the system.
This study provides a systematic framework for the analysis and design of grid-forming inverters, offering valuable insights for the development of more resilient and stable power electronic-based power systems.
