A method for tuning virtual inertia and virtual damping robust rods in VSG grid-connected inverters

By dividing the VSG grid-connected inverter into four state-space sub-modules and performing eigenvalue analysis, the problem of the coupling effect being difficult to reflect in existing tuning methods is solved, achieving more accurate virtual inertia and virtual damping tuning, and improving the system's stability and frequency domain disturbance suppression capability.

CN123121864APending Publication Date: 2026-11-17WUHAN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611206804.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The existing tuning methods for VSG grid-connected inverters are difficult to reflect the coupling effects between power filtering, reactive voltage regulation, virtual impedance compensation, voltage and current dual closed loops and grid impedance, resulting in insufficient damping, oscillation frequency deviation or misjudgment of high-frequency modes. They also lack robust feasible domain scanning under the combined action of multiple constraints, making it difficult to directly provide the parameter range that can be written to the controller.

Method used

The VSG grid-connected inverter is divided into four state-space sub-modules, and linearized state-space models are established for each. The dominant power oscillation mode is identified through eigenvalue analysis and participation factor analysis. Robust tuning of virtual inertia and virtual damping is performed to form a compact model, clarify the attribution of virtual impedance compensation, and retain the voltage and current dual closed-loop coupling relationship.

Benefits of technology

It improves the dynamic characterization capability of the parameter tuning model, reduces the complexity of modular modeling and engineering derivation, avoids confusion between virtual impedance compensation and physical impedance, improves the targeting of parameter scanning and frequency domain disturbance suppression performance, and forms an executable controller parameter boundary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123121864A_ABST
    Figure CN123121864A_ABST
Patent Text Reader

Abstract

This invention provides a robust tuning method for virtual inertia and virtual damping in a VSG grid-connected inverter. This method acquires control parameters, main circuit parameters, and operating parameters, calculates the steady-state operating point, and establishes a four-module state-space model comprising power calculation and power filtering, a VSG core power voltage outer loop, a voltage-current dual closed loop with virtual impedance compensation, and LCL filtering and the grid main circuit. Based on the component connection method, a closed-loop state matrix of the VSG grid-connected inverter is generated, followed by mode identification and parameter scanning. This allows for the determination of the robust feasible region and recommended parameters for virtual inertia and virtual damping under constraints such as stability margin, damping ratio, oscillation frequency, and maximum singularity, thereby improving the accuracy, robustness, and engineering reproducibility of VSG grid-connected inverter parameter tuning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy grid connection, and more specifically, to a method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter. Background Technology

[0002] With the large-scale grid connection of power electronic power sources such as wind power, photovoltaic power, and battery energy storage, the proportion of synchronous generators in the power system is decreasing, and the system's equivalent inertia and damping support capacity are weakening. Therefore, VSG grid-connected inverters need to rationally set virtual inertia. and virtual damping To improve power and frequency dynamic response.

[0003] Existing tuning methods based on simplified second-order power loops typically only consider the active-frequency link and perform analytical selection based on damping ratio or pole location. This makes it difficult to reflect the coupling effects between power filtering, reactive voltage regulation, virtual impedance compensation, voltage and current dual closed loops, LCL filters, and grid impedance. Consequently, the tuning results may exhibit insufficient damping, oscillation frequency deviation, or misjudgment of high-frequency modes under actual grid-connected conditions.

[0004] While existing modular modeling methods for general grid-connected inverters can describe relatively complete control and main circuit dynamics, their focus is on general modeling of various types of grid-connected inverters. These methods typically involve a large number of modules, complex interface variables, and unclear model attribution of virtual impedance compensation units, which is detrimental to virtual inertia models for VSG grid-connected inverters. and virtual damping The engineering setup.

[0005] Furthermore, existing methods often rely on empirical values, single damping ratios, or single pole indices, lacking robust feasible domain scanning under multiple constraints, and making it difficult to directly provide parameter ranges that can be written into the VSG controller or used as online adaptive boundaries. Summary of the Invention

[0006] This invention addresses the technical problems existing in the prior art by providing a method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter, thereby improving the compactness, physical interpretability, and engineering applicability of the model while preserving key dynamic couplings.

[0007] This invention provides a method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter, comprising:

[0008] Obtain the control parameters, main circuit parameters, and steady-state operating parameters of the VSG grid-connected inverter, and calculate the steady-state operating point of the VSG grid-connected inverter based on the grid voltage, active power reference value, reactive power reference value, and grid impedance;

[0009] The VSG grid-connected inverter is divided into four state space sub-modules according to its functional characteristics and signal flow. The four state space sub-modules include a power calculation and power filtering module, a VSG core power voltage outer loop module, a voltage and current dual closed loop module with virtual impedance compensation, and an LCL filtering and grid main circuit module. The virtual impedance compensation unit is integrated into the voltage and current dual closed loop module and does not have a separate dynamic state variable.

[0010] Linearized state-space models of the four state-space sub-modules are established respectively, and a block diagonal matrix is ​​constructed based on the closed-loop state matrix, input matrix, output matrix and through matrix of each state-space sub-module. Then, a connection matrix is ​​established based on the signal transmission relationship between the four state-space sub-modules to generate the closed-loop state matrix of the VSG grid-connected inverter.

[0011] Eigenvalue analysis and participation factor analysis are performed on the closed-loop state matrix of the VSG grid-connected inverter to identify the VSG-dominated power oscillation mode, which is jointly participated in by the active power filtering state, angular frequency state and power angle state, from the oscillation mode, and to exclude the high-frequency mode dominated by the LCL filter and the main circuit module of the grid.

[0012] Two-dimensional parameter scanning is performed within the preset range of virtual inertia and virtual damping to track the pole location, damping ratio, oscillation frequency and maximum singular value of the dominant power oscillation mode of the VSG.

[0013] Based on the stability margin constraint, damping ratio constraint, oscillation frequency constraint, and maximum singular value constraint, the robust feasible region of the virtual inertia and the virtual damping is determined, and a recommended virtual inertia and recommended virtual damping are selected from the robust feasible region.

[0014] The present invention provides a method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter. Instead of constructing a general grid-connected inverter model, this method is designed for the virtual inertia of VSG grid-connected inverters. and virtual damping The tuning process forms a compact four-module model, clarifies the virtual impedance compensation attribution, retains the voltage and current dual closed-loop coupling relationship, and selects the target low-frequency power oscillation mode through participation factors. Attached Figure Description

[0015] Figure 1 A flowchart of a method for tuning virtual inertia and virtual damping robust rods for a VSG grid-connected inverter, provided in one embodiment of the present invention;

[0016] Figure 2 For different virtual inertia Pole trajectory diagram of the lower dominant oscillation mode;

[0017] Figure 3For different virtual damping Pole trajectory diagram of the lower dominant oscillation mode;

[0018] Figure 4 Virtual inertia - Virtual Damping Thermodynamic diagram of oscillation frequency in the parametric plane;

[0019] Figure 5 Virtual inertia - Virtual Damping Damping ratio thermogram of the parametric plane. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the present invention. In the embodiments involved, the uppercase superscript "." represents a steady-state complex phasor, the unmarked uppercase symbol represents the magnitude of the corresponding phasor, the lowercase symbol represents the instantaneous variable or dq-axis component in the VSG synchronous rotating coordinate system, and the subscript "0" represents the steady-state value of the corresponding variable at the steady-state operating point. To avoid confusion between phasor symbols and time derivative symbols, the time derivatives of variables are all expressed in differential form.

[0021] Figure 1 This invention illustrates a method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter according to an embodiment of the present invention. The method includes the following steps:

[0022] Step 1: Obtain the control parameters, main circuit parameters, and steady-state operating parameters of the VSG grid-connected inverter, and calculate the steady-state operating point of the VSG grid-connected inverter based on the grid voltage, active power reference value, reactive power reference value, and grid impedance.

[0023] It is understood that this embodiment of the invention takes a single VSG grid-connected inverter connected to an equivalent grid as the research object. The DC side of the inverter is powered by battery energy storage, and the AC side is connected to the grid through an LCL filter. The control part includes: power calculation and low-pass filtering, VSG active-frequency control, VSG reactive-voltage control, virtual impedance compensation, voltage loop PI control, and current loop PI control.

[0024] First, obtain all parameters of the VSG grid-connected inverter. The main parameters of the VSG grid-connected inverter include the following:

[0025] Control parameters: Power filter cutoff angular frequency Virtual inertia Virtual damping Rated angular frequency Voltage regulation coefficient reactive power droop coefficient Virtual resistance Virtual inductance Voltage loop proportionality coefficient Voltage loop integral coefficient Current loop proportionality coefficient Integral coefficient of current loop .

[0026] Main circuit parameters: Inverter-side filter inductor The equivalent series resistance of the inverter-side filter inductor Filter capacitor Damping resistor set in series with the filter capacitor , grid-side filter inductor and the series resistance of the equivalent branch of the power grid .

[0027] Operating parameters: peak grid phase voltage, initial grid phase, steady-state angular frequency, steady-state active power reference value and steady-state reactive power reference value at PCC. The active power reference value and reactive power reference value represent the expected steady-state active power and steady-state reactive power output of the VSG grid-connected inverter at PCC, respectively.

[0028] The steady-state operating point of the VSG grid-connected inverter system is automatically calculated based on the control parameters, main circuit parameters, and operating parameters mentioned above.

[0029] (1) Solve for the grid-side output current and PCC point voltage using the PCC power constraint and grid-side impedance, specifically including the following:

[0030] The grid voltage phasor is obtained based on the peak value and initial phase of the grid phase voltage:

[0031]

[0032] in, This represents the peak value of the grid phase voltage. This represents the initial phase of the grid voltage source.

[0033] Define the grid-side impedance:

[0034] The steady-state complex power at PCC satisfies:

[0035]

[0036] definition:

[0037]

[0038] but:

[0039]

[0040] At the same time, the PCC voltage phasor satisfies:

[0041]

[0042] Substituting the PCC voltage relationship into the steady-state complex power equation, we get:

[0043] Let the square of the grid-side output current amplitude be:

[0044]

[0045] but:

[0046]

[0047] Squaring both sides and rearranging, we get:

[0048]

[0049] definition:

[0050]

[0051] The candidate solutions are:

[0052]

[0053] If the discriminant If the value is less than zero, then there is no steady-state operating point that satisfies the power constraint under the current grid parameters and power reference values. If there are one or two non-negative candidate solutions, then the physical solution is selected based on the inverter's allowable current range and the PCC's allowable voltage range. When there are two feasible solutions, the normal operating solution with the smaller current amplitude and the higher PCC voltage amplitude is preferred.

[0054] Calculations based on the selected object:

[0055]

[0056] in The imaginary unit, Indicates taking the real part, and This indicates the complex conjugate operation.

[0057] (2) Calculate the capacitor body voltage based on the PCC voltage:

[0058] Filter capacitor With damping resistor In series, the PCC voltage phasor, the filter capacitor's body voltage phasor, and the capacitor branch current phasor satisfy the following:

[0059]

[0060] therefore:

[0061] (3) Calculate the inverter-side current based on the node current relationship:

[0062] According to Kirchhoff's current law at the PCC node, the phasor of the inverter-side filter inductor current is:

[0063]

[0064] Right now:

[0065] The internal potential is calculated based on the steady-state relationship of the virtual impedance. The virtual impedance compensation unit generates a voltage loop reference value based on the VSG internal potential, VSG angular frequency, and grid-side output current. At the steady-state operating point, the virtual impedance reference voltage phasor satisfies:

[0066]

[0067] Since the voltage loop PI controller includes an integral element, the voltage loop error is zero at the steady-state operating point. Therefore:

[0068]

[0069] This yields the internal potential phasor of the VSG:

[0070]

[0071] The steady-state amplitude of the internal potential of the VSG is:

[0072]

[0073] The steady-state power angle is the phase angle difference between the internal potential phasor of the VSG and the grid voltage phasor.

[0074]

[0075] The complex power at PCC is verified based on the determined steady-state operating point:

[0076]

[0077] The steady-state operating point satisfies:

[0078]

[0079] The complex power received by the equivalent voltage source node of the power grid is:

[0080]

[0081] according to:

[0082]

[0083] We can obtain:

[0084]

[0085] Right now:

[0086]

[0087] in:

[0088]

[0089] therefore:

[0090]

[0091] in, and These are the steady-state active power reference value and the steady-state reactive power reference value at the PCC node, respectively. and These represent the steady-state active power and steady-state reactive power received by the equivalent voltage source node of the power grid, respectively. This is the internal potential phasor of the VSG.

[0092] Step 2: Divide the VSG grid-connected inverter into four state space sub-modules according to its functional characteristics and signal flow, and establish linearized state space models for each of the four state space sub-modules. The four state space sub-modules include a power calculation and power filtering module, a VSG core power voltage outer loop module, a voltage and current dual closed loop module with virtual impedance compensation, and an LCL filtering and grid main circuit module. The virtual impedance compensation unit is integrated into the voltage and current dual closed loop module and does not have a separate dynamic state variable.

[0093] In this step, the VSG grid-connected inverter system is divided into four state-space sub-modules. The state variables, input variables, and output variables of each module are defined as follows:

[0094] Module 1: Power calculation and power filtering module, its state variables are: ,in For filtered active power, This refers to the filtered reactive power.

[0095] The input variables for module 1 are small-signal disturbances in the PCC voltage and the grid-side output current: ,in and These represent the disturbance amounts of the dq-axis components of the PCC voltage. Let dq be the dq-axis component of the grid-side current.

[0096] The output variables of module 1 are the small-signal disturbances of the filtered active power and filtered reactive power: .

[0097] The instantaneous active power and instantaneous reactive power of module 1 are as follows:

[0098]

[0099] The filtered active power and filtered reactive power satisfy the following:

[0100]

[0101] Performing first-order linearization near the steady-state operating point yields:

[0102]

[0103] The linearized state-space model of module 1 is as follows:

[0104]

[0105] in:

[0106] Module 2: VSG core power voltage outer loop module.

[0107] State variables: ,in For VSG virtual angular frequency, For VSG, This represents the amplitude of the internal potential of the VSG.

[0108] The input variables for module 2 are the filtered active power, the filtered reactive power, and the small-signal disturbance of the dq-axis component of the PCC voltage:

[0109]

[0110] in, and These are the disturbances in the filtered active power and filtered reactive power, respectively. and These represent the disturbances in the d-axis and q-axis components of the PCC voltage, respectively.

[0111] Output variables: .

[0112] The linearized state-space model of this module consists of two parts: active power-frequency control and reactive power-voltage control.

[0113] Active power and frequency control equations:

[0114]

[0115] Under synchronous steady-state operation conditions, there is That is, the rated angular frequency is equal to the steady-state operating angular frequency. The DC gain of the power filter stage is 1, therefore:

[0116]

[0117] Therefore, the active power-frequency control equation satisfies the equilibrium condition at the steady-state operating point.

[0118] The reactive-voltage control unit adjusts the internal potential amplitude of the VSG based on the PCC voltage amplitude and the filtered reactive power. Its nonlinear state equation is:

[0119]

[0120] in:

[0121]

[0122] Near the steady-state operating point, the small-signal disturbance of the PCC voltage amplitude is:

[0123]

[0124] in:

[0125] When the steady-state voltage reference value is taken as the steady-state voltage amplitude of PCC:

[0126]

[0127] And since the DC gain of the power filter stage is 1, therefore:

[0128]

[0129] The reactive power-voltage control equation satisfies the equilibrium condition at the steady-state operating point.

[0130] In closed-loop modal analysis, and It is considered a constant reference value, that is:

[0131]

[0132] Therefore, the linearized state equation of the reactive power-voltage control unit is:

[0133]

[0134] In maximum singular value analysis, The closed-loop state equation is introduced separately as an external disturbance input. This yields the state matrix of module 2:

[0135]

[0136]

[0137] in:

[0138]

[0139] Module 3 is a dual closed-loop voltage and current module with virtual impedance compensation, including a virtual impedance compensation unit, a voltage loop PI control unit, and a current loop PI control unit. The state variables of Module 3 are defined as follows:

[0140]

[0141] in, and These represent the d-axis integral state and the q-axis integral state of the voltage loop, respectively. and These represent the d-axis integral state and the q-axis integral state of the current loop, respectively.

[0142] The input variables for module 3 are defined as follows:

[0143]

[0144] in, and These are the amplitude of the internal potential of the VSG and its angular frequency, respectively. and These are the d-axis and q-axis components of the voltage across the filter capacitor, respectively. and These are the d-axis and q-axis components of the grid-side output current, respectively. and These are the d-axis and q-axis components of the inverter-side filter inductor current, respectively.

[0145] The output variables of module 3 are defined as the d-axis and q-axis small-signal disturbances of the inverter output voltage:

[0146] The virtual impedance compensation unit generates a voltage loop reference value based on the VSG internal potential amplitude, VSG angular frequency, and grid-side output current.

[0147]

[0148] in, For virtual resistance, This is a virtual inductance.

[0149] Performing first-order linearization near the steady-state operating point yields:

[0150]

[0151] Voltage loop error is defined as:

[0152]

[0153] The voltage loop integral state satisfies:

[0154]

[0155] The voltage loop PI control unit generates a reference value for the inverter-side filter inductor current:

[0156]

[0157] The grid-side output current feedforward term and capacitor cross-coupling compensation term in the formula are used to generate the inverter-side filter inductor current reference value.

[0158] Current loop error is defined as:

[0159]

[0160] The integral state of the current loop satisfies:

[0161]

[0162] The current loop PI control unit generates the inverter output voltage:

[0163]

[0164] To construct the state space matrix of module 3, define the row vectors of virtual impedance and voltage error linearization coefficients:

[0165]

[0166] Therefore:

[0167]

[0168] Further define the input coefficient row vector of the current loop error:

[0169]

[0170] therefore:

[0171]

[0172] The above can be rearranged into a linear equation as follows:

[0173]

[0174] The state matrix of module 3 is as follows:

[0175]

[0176] The input matrix for module 3 is:

[0177]

[0178] therefore, It is a 4x8 matrix. The first two rows represent the effects of virtual impedance compensation and voltage error on the voltage loop integral state, and the last two rows represent the effects of the voltage loop, capacitor current feedforward, and inverter-side inductor current feedback on the current loop integral state.

[0179] The output equation of module 3 is:

[0180]

[0181] in:

[0182]

[0183] Define the row vector for outputting passthrough coefficients:

[0184]

[0185] The through-matrix of module 3 is then:

[0186]

[0187] The virtual impedance compensation unit does not contain integration, filtering, or energy storage components; it operates through an input matrix. and through matrix It participates in the construction of the state equation and output equation of module 3, but does not increase the state variables of module 3.

[0188] Module 4 is the LCL filter and main power grid circuit module, and its state variables are defined as follows:

[0189]

[0190] in, and These are the d-axis and q-axis components of the inverter-side filter inductor current. and These are the d-axis and q-axis components of the voltage across the filter capacitor. and These are the d-axis and q-axis components of the grid-side output current.

[0191] The input variables for module 4 are defined as follows:

[0192]

[0193] in, and These are the d-axis and q-axis components of the inverter output voltage. and These are the d-axis and q-axis components of the grid voltage in the VSG synchronous rotating coordinate system.

[0194] The output variables of module 4 are defined as follows:

[0195]

[0196] Module 4 outputs all six main circuit states, which are used for subsequent module connections and algebraic construction of the PCC voltage.

[0197] The filter capacitor branch current satisfies:

[0198]

[0199] The following conditions must be met between the PCC voltage, the filter capacitor voltage, and the voltage drop across the series damping resistor:

[0200]

[0201] The nonlinear state equation of module 4 in the VSG synchronous rotating coordinate system is:

[0202]

[0203]

[0204] Expressing each variable as the sum of its steady-state value and small-signal disturbances, performing a first-order Taylor expansion near the steady-state operating point, and neglecting the product of two or more small-signal disturbances, we obtain:

[0205] The above linearized equations can be rearranged as follows:

[0206] in:

[0207]

[0208] The output equation of module 4 is:

[0209]

[0210] in:

[0211]

[0212] The grid voltage satisfies the following in the VSG synchronous rotating coordinate system:

[0213]

[0214] At steady-state work angle Linearization of the vicinity yields:

[0215]

[0216] In the component connection matrix, the six states output by module 4 generate the required PCC voltage inputs for modules 1 and 2 according to the following algebraic relationship:

[0217] Step 3: Construct a block diagonal matrix based on the closed-loop state matrix, input matrix, output matrix, and through matrix of each state space submodule, and then establish a connection matrix based on the signal transmission relationship between the four state space submodules to generate the closed-loop state matrix of the VSG grid-connected inverter.

[0218] Specifically, based on the component connection method, the state variables, input variables, and output variables of the four sub-modules are combined sequentially as follows:

[0219]

[0220] The state variables, input variables, and output variables of each submodule are arranged in the order specified in modules 1 to 4. The state dimensions of each submodule are 2, 3, 4, and 6, the input dimensions are 4, 4, 8, and 5, and the output dimensions are 2, 3, 2, and 6. Therefore:

[0221] Construct the block diagonal matrix of the four state space submodules:

[0222]

[0223] This yields the open-loop state-space model after combining the four sub-modules:

[0224]

[0225] Based on the signal transmission relationship between the four sub-modules, the input variables of each module satisfy the following connection relationship.

[0226] The inputs to the power calculation and power filtering module are the PCC voltage and the grid-side output current.

[0227]

[0228] The first two components are the d-axis and q-axis perturbations of the PCC voltage, respectively:

[0229]

[0230] The inputs to the VSG core power voltage outer loop module are filtered active power, filtered reactive power, and PCC voltage:

[0231] The inputs to the voltage and current dual closed-loop module with virtual impedance compensation are the VSG internal potential amplitude, angular frequency, and the voltage and current variables output from the LCL filter and the main grid circuit module.

[0232]

[0233] The inputs to the LCL filter and main grid circuit module are the inverter output voltage, the VSG angular frequency, and the grid voltage disturbance in the VSG synchronous rotating coordinate system.

[0234]

[0235] Among them, the grid voltage disturbance is generated by the power angle disturbance:

[0236]

[0237] Based on the correspondence between the module inputs and outputs described above, a connection matrix is ​​established. , so that:

[0238]

[0239] in:

[0240]

[0241] The above four sets of module connection equations uniquely determine the connection matrix. The non-zero elements are all matrix elements at the positions where no signal connection has been established.

[0242] Connect the modules:

[0243]

[0244] Substituting into the open-loop output equation of the four modules, we get:

[0245]

[0246] The results were:

[0247]

[0248] When matrix When reversible:

[0249]

[0250] Further, we obtain the total input variables:

[0251]

[0252] Substituting the total input variables into the open-loop state equations of the four modules, we obtain the closed-loop state matrix of the system:

[0253]

[0254] The closed-loop small-signal state equation of the system is:

[0255]

[0256] in:

[0257]

[0258] Step 4: Perform eigenvalue analysis and participation factor analysis on the closed-loop state matrix of the VSG grid-connected inverter to identify the VSG-dominant power oscillation mode, which is jointly participated in by the active power filtering state, angular frequency state and power angle state, from the oscillation modes, and exclude the high-frequency modes dominated by the LCL filter and the grid main circuit module.

[0259] Among them, eigenvalue analysis is performed on the closed-loop state matrix:

[0260] If the eigenvalue is

[0261] The corresponding damping ratio and damped oscillation frequency are:

[0262]

[0263] To identify VSG power oscillation modes sensitive to changes in virtual inertia and virtual damping, participation factor analysis is performed on the closed-loop state matrix. The closed-loop state matrix in this embodiment contains 15 states, arranged in the following order: filtered active power, filtered reactive power, VSG angular frequency, VSG power angle, VSG internal potential amplitude, voltage loop dq-axis integral state, current loop dq-axis integral state, inverter-side filter inductor current dq-axis state, filter capacitor voltage dq-axis state, and grid-side output current dq-axis state.

[0264] Perform eigenvalue decomposition on the closed-loop state matrix:

[0265]

[0266] in:

[0267]

[0268] The Columns are associated with eigenvalues The corresponding right eigenvector. In the right eigenvector matrix When it is invertible, the left eigenvector matrix is ​​defined as:

[0269]

[0270] Thus satisfying:

[0271]

[0272] The Behavior and Eigenvalues The corresponding left eigenvector.

[0273] Will Recorded as the modal number, Let it be denoted as the status number, then the number is... The modality and the first The participation factor between states is defined as:

[0274]

[0275] in, For the first The right eigenvector of the th ? The elements corresponding to each state For the first The th left eigenvector The element corresponding to the nth state. The larger the participation factor, the higher the nth state. The state and the first The higher the degree of correlation between modes.

[0276] This formula is consistent with the way participation factors are calculated in current MATLAB scripts:

[0277]

[0278] Among them, the symbol " " indicates that the corresponding elements of the matrix are multiplied, and the transpose is a non-conjugate transpose.

[0279] To facilitate comparison of the relative participation levels of different states within the same mode, the first... The participation factor of each mode is normalized according to the maximum participation factor of that mode:

[0280]

[0281] After normalization, the maximum normalization participation factor in each mode is 1, and the remaining normalization participation factors are between 0 and 1.

[0282] The dq-axis states of the inverter-side filter inductor current, filter capacitor voltage, and grid-side output current in the LCL filter and main grid circuit module are defined as the LCL state set:

[0283]

[0284] For the For each modality, determine the state corresponding to its maximum normalized participation factor:

[0285]

[0286] If the first If the nth state belongs to the LCL state set, then the nth state will be... Each mode is identified as the dominant mode of the LCL and excluded. Since the participation factors of the same mode are uniformly divided by a positive number, the states corresponding to the largest participation factors before and after normalization are the same.

[0287] For the remaining modes after excluding the dominant LCL mode, the modes with imaginary parts greater than a preset imaginary part threshold are first selected to retain one mode with a positive imaginary part in each pair of conjugate oscillation modes:

[0288]

[0289] Further screening is conducted to identify modes whose normalized participation factors for active power filtering state, VSG angular frequency state, and VSG power angle state satisfy preset participation factor thresholds. These modes that meet the above conditions constitute a candidate mode set for VSG power oscillation.

[0290] Select the eigenvalue with the largest real part from the set of candidate modes:

[0291] The eigenvalues ​​and their conjugate eigenvalues ​​are then identified as the dominant power oscillation modes of the VSG. For a stable system, the mode with the largest real part is the candidate oscillation mode that is closest to the imaginary axis and has the slowest decay rate.

[0292] In one specific implementation, the imaginary part threshold and the participation factor threshold are taken as follows:

[0293]

[0294] The above values ​​can be preset and adjusted according to the system state quantity scale, operating conditions, and modal distribution.

[0295] Step 5: Perform a two-dimensional parameter scan within the preset range of virtual inertia and virtual damping to track the pole position, damping ratio, oscillation frequency, and maximum singular value of the VSG dominant power oscillation mode.

[0296] Among them, see Figure 2 and Figure 3 Different virtual inertia are shown respectively. Pole trajectory diagram of the dominant oscillation mode and different virtual damping Pole trajectory diagram of the lower dominant oscillation mode. Figure 4 and Figure 5 The virtual inertia are shown respectively. - Virtual Damping Oscillation frequency thermogram of the parametric plane, virtual inertia - Virtual Damping Damping ratio thermogram of the parametric plane. Therefore, different virtual inertia... and virtual damping Depending on the pole location, oscillation frequency, and damping ratio, a suitable virtual inertia needs to be selected. and virtual damping .

[0297] Specifically, within the preset parameter range, the virtual inertia... and virtual damping Perform a two-dimensional parameter scan, including the virtual inertia. scope:

[0298] Virtual Damping scope:

[0299]

[0300] For each set of virtual inertia and virtual damping parameters, regenerate the closed-loop state matrix. Calculate all eigenvalues ​​and define the real part of the largest eigenvalue as:

[0301]

[0302] when When the corresponding parameter combination is determined to be an unstable closed-loop parameter combination, its maximum singular peak value is not used for robust feasible region evaluation.

[0303] For closed-loop stable parameter combinations, identify the dominant power oscillation mode of the VSG:

[0304]

[0305] Its damping ratio and oscillation frequency are respectively:

[0306] To evaluate the frequency domain amplification of power output from external disturbances, the external input vector is defined as:

[0307]

[0308] in, and These represent the disturbances of the PCC active power reference value and the PCC reactive power reference value relative to the steady-state reference value, respectively.

[0309]

[0310] Define the external output vector as:

[0311]

[0312] Among them, the dynamic power angle, after considering the grid angular frequency disturbance, satisfies:

[0313]

[0314] The effect of the active power reference disturbance on the VSG angular frequency state equation is as follows:

[0315]

[0316] The effect of reactive power reference disturbance on the VSG internal potential state equation is as follows:

[0317]

[0318] The grid voltage satisfies the following in the VSG synchronous rotating coordinate system:

[0319]

[0320] Simultaneously considering the grid voltage amplitude disturbance and the power angle disturbance, a first-order linearization is performed, resulting in:

[0321]

[0322] Let the four-module block diagonal matrix be , , and The connection matrix is Then the closed-loop state matrix is:

[0323]

[0324] The direct effects of active power reference disturbance, reactive power reference disturbance, and grid angular frequency disturbance on the state equations are constructed into a matrix. The grid voltage amplitude disturbance is distributed through the grid voltage dq-axis input port of module 4 to obtain the external input matrix of the port. Then the four-input closed-loop input matrix is:

[0325]

[0326] The effect of grid voltage amplitude disturbance on the input port of module 4 is as follows:

[0327]

[0328] Define the output selection matrix Used to select the filtered active power state and the filtered reactive power state from the total system state variables:

[0329]

[0330] in:

[0331]

[0332] Therefore, the state-space model of the four-input, two-output physical quantities is as follows:

[0333]

[0334] To eliminate the differences in units and orders of magnitude between different input and output physical quantities, an input basis matrix is ​​defined:

[0335] And output the per-unit matrix:

[0336]

[0337] The normalized inputs and outputs satisfy:

[0338]

[0339] Therefore, we can conclude that:

[0340]

[0341] The standardized four-input two-output transfer matrix is:

[0342] In frequency At this point, the maximum singular value of the standardized four-input two-output transfer matrix is ​​defined as:

[0343]

[0344] The maximum singular peak value within the preset frequency range is defined as:

[0345]

[0346] In one specific implementation, the maximum singular value scan frequency range is:

[0347]

[0348] The maximum singular frequency response, when displayed in decibels, is:

[0349]

[0350] Robust feasible region constraints are expressed in the form of maximum singular value peaks in linear value form. .

[0351] Step 6: Determine the robust feasible region of the virtual inertia and the virtual damping based on the stability margin constraint, damping ratio constraint, oscillation frequency constraint, and maximum singular value constraint, and select the recommended virtual inertia and recommended virtual damping from the robust feasible region.

[0352] To evaluate the adaptability of virtual inertia and virtual damping parameters to changes in operating conditions, a set of preset operating conditions is constructed:

[0353]

[0354] Each operating condition is determined by a preset combination of grid voltage, grid impedance, active power reference values, and reactive power reference values. For each set of virtual inertia and virtual damping, the steady-state operating point, closed-loop state matrix, dominant power oscillation mode, and maximum singular peak value are recalculated under each operating condition. If the steady-state operating point is unsolvable or the closed-loop system is unstable under any operating condition, the corresponding parameter combination is deemed infeasible.

[0355] For the For each operating condition, the virtual inertia and virtual damping parameters that satisfy the constraints of stability margin, damping ratio, oscillation frequency, and peak maximum singularity are combined to form the feasible region of a single operating condition. The robust feasible region under the preset operating conditions is defined as follows:

[0356]

[0357] in,

[0358] Therefore, the parameter combinations belonging to the robust feasible region satisfy the constraints under all operating conditions in the preset operating condition set.

[0359] The maximum value of the peak value of the maximum singularity for a given virtual inertia and virtual damping under various operating conditions is defined as follows:

[0360] Select within the robust feasible region The parameter combination that achieves the minimum value is used as the recommended parameter:

[0361] When multiple identical optimal parameter combinations exist, the parameter combinations with the largest minimum damping, the smallest virtual inertia, and the smallest virtual damping are selected sequentially for each operating condition, thereby uniquely determining the recommended virtual inertia and recommended virtual damping.

[0362] The method provided by this invention is verified through simulation:

[0363] To verify the effectiveness of the method of the present invention, an electromagnetic transient simulation model of a VSG grid-connected inverter was built in MATLAB / Simulink. The system parameters are as follows:

[0364] Rated power: 100kVA;

[0365] Mains voltage: 380V / 50Hz;

[0366] LCL filter: ;

[0367] Controller parameters: ;

[0368] Virtual impedance: .

[0369] The recommended parameters obtained using the method of this invention are as follows: =2, =70.

[0370] The present invention provides a method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter. Compared with the prior art, the present invention has the following advantages:

[0371] (1) Improve the dynamic characterization capability of the parameter tuning model. This invention integrates power calculation and power filtering, VSG core power voltage outer loop, voltage and current dual closed loop with virtual impedance compensation, LCL filtering and grid main circuit into the closed loop state matrix. Compared with the tuning method based only on the second-order power loop, it can characterize the influence of inner loop control, virtual impedance and main circuit dynamics on the low-frequency oscillation mode of VSG.

[0372] (2) Reduce the complexity of modular modeling and engineering derivation. This invention compresses the system into four state space sub-modules according to functional characteristics and signal flow. While retaining the key dynamics of power filtering, reactive voltage regulation, virtual impedance compensation, voltage and current dual closed loop and LCL main circuit, it reduces the number of independent modules and interface variables, which facilitates on-site engineering reproduction, parameter replacement and batch scanning.

[0373] (3) Avoid confusion between virtual impedance compensation and physical impedance. In this invention, the virtual impedance compensation unit is incorporated into the voltage and current dual closed-loop module. The output of the virtual impedance compensation is used as the voltage loop reference input to participate in the construction of the closed-loop state matrix. Since the compensation unit is an algebraic mapping and does not introduce integral or filtering states, it does not increase the system state dimension, and the physical attribution of the model is clearer.

[0374] (4) Improve the targeting of virtual inertia and virtual damping scanning targets. This invention determines the dominant state of each mode through participation factor analysis, and excludes LCL modes dominated by inverter-side filter inductor current, filter capacitor voltage and grid-side output current state; further, it screens VSG power oscillation candidate modes based on the normalized participation factors of active power filtering state, angular frequency state and power angle state, and determines the conjugate pole pair with the largest real part in the candidate modes as the VSG dominant power oscillation mode, so that the parameter scanning of virtual inertia and virtual damping is targeted at the target power oscillation mode.

[0375] (5) Improve the frequency domain disturbance suppression performance of parameter tuning results. Based on the constraints of stability margin, damping ratio and oscillation frequency, this invention introduces the maximum singular peak value of the four-input two-output per-unit transfer matrix to evaluate the worst-case amplification of active power reference, reactive power reference, grid voltage amplitude and grid angular frequency by the normalized disturbances, thereby reducing the risk of frequency domain disturbance amplification caused by selecting parameters based solely on a single mode index.

[0376] (6) Facilitates the formation of executable controller parameter boundaries. The recommended virtual inertia output by this invention... And recommended virtual damping It can be directly written to the VSG controller, and the output robust feasible region can also be used as an online adaptive virtual inertia. and virtual damping The controller's parameter safety boundaries are defined to reduce the risk of small signal instability caused by online parameter adjustments exceeding these boundaries.

[0377] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0378] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0379] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for tuning the virtual inertia and virtual damping robust rod of a VSG grid-connected inverter, characterized in that, include: Obtain the control parameters, main circuit parameters, and steady-state operating parameters of the VSG grid-connected inverter, and calculate the steady-state operating point of the VSG grid-connected inverter based on the grid voltage, active power reference value, reactive power reference value, and grid impedance; The VSG grid-connected inverter is divided into four state space sub-modules according to its functional characteristics and signal flow. The four state space sub-modules include a power calculation and power filtering module, a VSG core power voltage outer loop module, a voltage and current dual closed loop module with virtual impedance compensation, and an LCL filtering and grid main circuit module. The virtual impedance compensation unit is integrated into the voltage and current dual closed loop module and does not have a separate dynamic state variable. Linearized state-space models of the four state-space sub-modules are established respectively, and a block diagonal matrix is ​​constructed based on the closed-loop state matrix, input matrix, output matrix and through matrix of each state-space sub-module. Then, a connection matrix is ​​established based on the signal transmission relationship between the four state-space sub-modules to generate the closed-loop state matrix of the VSG grid-connected inverter. Eigenvalue analysis and participation factor analysis are performed on the closed-loop state matrix of the VSG grid-connected inverter to identify the VSG-dominated power oscillation mode, which is jointly participated in by the active power filtering state, angular frequency state and power angle state, from the oscillation mode, and to exclude the high-frequency mode dominated by the LCL filter and the main circuit module of the grid. Two-dimensional parameter scanning is performed within the preset range of virtual inertia and virtual damping to track the pole location, damping ratio, oscillation frequency and maximum singular value of the dominant power oscillation mode of the VSG. Based on the stability margin constraint, damping ratio constraint, oscillation frequency constraint, and maximum singular value constraint, the robust feasible region of the virtual inertia and the virtual damping is determined, and a recommended virtual inertia and recommended virtual damping are selected from the robust feasible region.

2. The method according to claim 1, characterized in that, The calculation of the steady-state operating point of the VSG grid-connected inverter based on grid voltage, active power reference value, reactive power reference value, and grid impedance includes: Construct the grid voltage phasor based on the grid phase voltage peak value and initial phase; Calculate the grid-side current phasor based on the active power reference value, reactive power reference value, and the grid voltage vector; Calculate the PCC voltage phasor based on the grid-side impedance and the grid-side current phasor; Calculate the inverter-side inductor current phasor based on the PCC voltage vector and the capacitor damping resistor; The VSG internal potential vector is calculated based on the inverter-side inductor impedance and the inverter-side inductor current phasor, and the steady-state power angle is obtained based on the phase angle of the VSG internal potential phasor. The grid voltage phasor, the grid-side current phasor, the PCC voltage phasor, the inverter-side inductor current phasor, the VSG internal potential phasor, and the steady-state power angle together constitute the calculation result of the steady-state operating point, which is used for small-signal linearization of each state space submodule near the steady-state operating point.

3. The method according to claim 1, characterized in that, Each state-space submodule has its own set of state variables, which are used to establish the linearized state-space model of each state-space submodule. The state variables of each state-space submodule are: The state variables of the power calculation and power filtering module are filtered active power and filtered reactive power. The state variables of the VSG core power voltage outer loop module are virtual angular frequency, VSG power angle and VSG internal potential amplitude. The state variables of the voltage and current dual closed-loop module with virtual impedance compensation are the voltage loop integral state and the current loop integral state along the d-axis and q-axis. The state variables of the LCL filter and grid main circuit module are the dq-axis components of the inverter-side inductor current, the filter capacitor voltage, and the grid-side inductor current.

4. The method according to claim 3, characterized in that, The linearized state-space model of the power calculation and power filtering module is established based on the following relationship: Calculate the instantaneous active power and instantaneous reactive power based on the filter capacitor voltages of the d-axis and q-axis and the grid-side output currents of the d-axis and q-axis. By performing a first-order low-pass filter on the instantaneous active power and instantaneous reactive power, the filtered active power and filtered reactive power are obtained.

5. The method according to claim 3, characterized in that, The linearized state-space model of the VSG core power voltage outer loop module is established based on the following relationship: The VSG core power voltage outer loop module includes an active frequency control unit and a reactive voltage control unit. The active frequency control unit generates virtual angular frequency and power angle based on filtered active power, active power reference value, rated angular frequency, virtual inertia and virtual damping; The reactive voltage control unit generates the VSG internal potential amplitude based on the filtered reactive power, the reactive power reference value, the voltage regulation coefficient, and the reactive droop coefficient.

6. The method according to claim 3, characterized in that, The linearized state-space model of the voltage-current dual closed-loop module with virtual impedance compensation is established based on the following relationship: The voltage and current dual closed-loop module with virtual impedance compensation includes a virtual impedance compensation unit, a voltage loop PI control unit, and a current loop PI control unit. The virtual impedance compensation unit generates d-axis and q-axis voltage loop reference values ​​based on the VSG internal potential amplitude and virtual angular frequency output by the VSG core power voltage outer loop module, and the d-axis and q-axis grid-side currents output by the LCL filter and main grid circuit module. The output of the virtual impedance compensation unit serves as the reference input of the voltage loop PI control unit, and participates in the construction of the closed-loop state matrix through the input matrix and through-matrix of the voltage-current dual closed-loop module with virtual impedance compensation.

7. The method according to claim 3, characterized in that, The linearized state-space model of the LCL filter and the main circuit module of the power grid is established based on the following relationship: The LCL filter and main grid circuit module establishes a state equation in the VSG rotating coordinate system. The input variables of the state equation include the dq-axis component of the inverter output voltage and the dq-axis component of the grid voltage in the VSG rotating coordinate system. The disturbance of the grid voltage in the VSG rotating coordinate system is related to the power angle disturbance through the steady-state value of the power angle.

8. The method according to claim 1, characterized in that, The process of constructing a block diagonal matrix based on the closed-loop state matrix, input matrix, output matrix, and pass-through matrix of each state space submodule, and then establishing a connection matrix based on the signal transmission relationship between the four state space submodules to generate the closed-loop state matrix includes: For each state space submodule, write differential algebraic equations describing its dynamic behavior. Perform a first-order Taylor expansion of the differential algebraic equations near the steady-state operating point to obtain the closed-loop state matrices A1 to A4, input matrices B1 to B4, output matrices C1 to C4, and pass-through matrices D1 to D4 for each state space submodule. The closed-loop state matrix, input matrix, output matrix, and pass-through matrix of the four state space sub-modules are each constructed as a block diagonal matrix. , , and ; A connection matrix L is established based on the input and output signal transmission relationship between each state space submodule, wherein the elements of the connection matrix L represent the coefficients of the j-th output signal connected to the i-th input signal, and the element is zero when there is no connection. The closed-loop state matrix of the VSG grid-connected inverter is calculated using the following formula. : ; The input and output matrices are updated simultaneously.

9. The method according to claim 1, characterized in that, Eigenvalue analysis and participation factor analysis were performed on the closed-loop state matrix of the VSG grid-connected inverter to identify the dominant VSG power oscillation mode, which is jointly involved by the active power filtering state, angular frequency state, and power angle state, from the oscillation modes. These modes include: Calculate the right eigenvector matrix and the left eigenvector matrix of the closed-loop state matrix, wherein the left eigenvector matrix is ​​the inverse of the right eigenvector matrix; Calculate the participation factor between each mode and each state variable, and normalize the participation factor for each mode; The dq-axis state variables of the inverter-side inductor current, capacitor voltage, and grid-side inductor current in the LCL filter and grid main circuit module are taken as the LCL state set. The normalized participation factor of each mode is compared. If the dominant state corresponding to the largest participation factor of the mode belongs to the LCL state set, then the mode is determined to be a high-frequency mode of LCL and is excluded. The conjugate pole of the remaining modes, which is dominated by the filtered active power, the virtual angular frequency and the VSG power angle and whose real part is closest to the imaginary axis, is selected as the VSG dominant power oscillation mode.

10. The method according to claim 1, characterized in that, The robust feasible region of the virtual inertia and virtual damping is defined as the set of all combinations of virtual inertia and virtual damping that satisfy the following condition: Condition 1: The maximum real part of all eigenvalues ​​of the closed-loop state matrix is ​​less than the negative preset minimum stability margin; Condition 2: The damping ratio of the dominant power oscillation mode of VSG is greater than or equal to the preset minimum damping ratio; Condition 3: The oscillation frequency of the dominant power oscillation mode of VSG is between the preset minimum oscillation frequency and the maximum oscillation frequency; Condition 4: The normalized maximum singular value is less than or equal to the preset maximum singular value threshold.