A Synchronous Stability Control Method and System Based on Virtual Rotor Adaptive Compensation
By using a synchronous stability control method with virtual rotor adaptive compensation, the inertia and damping are adaptively adjusted, and combined with power angle compensation, the problem of loss of synchronization under large disturbances in traditional VSG is solved, thereby improving the stability and response speed of the inverter.
Patent Information
- Application Number
- CN202611453868.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-17
AI Technical Summary
Traditional VSG technology uses fixed inertia and damping parameters in grid-connected inverters, resulting in poor dynamic response. Under large disturbances, transient power angle loss and inverter disconnection are likely to occur, and there is a lack of effective power angle compensation mechanism.
A synchronous stability control method based on virtual rotor adaptive compensation is adopted. Through adaptive dynamic compensation of rotational inertia and damping coefficient, the inertia and damping are automatically adjusted when the frequency deviates from the rated value. Combined with the transient power angle compensation model, the system is prevented from losing synchronization.
It achieves optimized dynamic response under small disturbances and effectively prevents power angle divergence under large disturbances, thereby improving system stability and response speed and preventing inverter disconnection from the grid.
Smart Images

Figure CN123121808A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power electronic converter control and new energy grid connection stability technology, and specifically relates to a synchronous stability control method and system based on virtual rotor adaptive compensation. Background Technology
[0002] With the escalating global energy crisis and increasing environmental awareness, renewable energy sources, such as wind and solar power, are increasingly penetrating modern power systems. Traditional power grids, dominated by synchronous generators, possess substantial rotating mass, providing ample inertia and damping to maintain stable grid frequency and voltage. However, wind and solar power generation equipment typically connects to the grid via power electronic inverters. Traditional grid-connected inverters often employ grid-following control strategies (such as current vector control based on phase-locked loops), lacking inertia support capabilities. As the proportion of power electronic devices increases, the total inertia of the power system decreases significantly, resulting in a grid exhibiting characteristics of "low inertia and weak damping." This makes it highly susceptible to severe frequency and voltage fluctuations, and even large-scale power outages, during sudden load changes or line faults.
[0003] To address this issue, Virtual Synchronous Generator (VSG) technology emerged. VSG control simulates the rotor motion equations and excitation regulation characteristics of a traditional synchronous generator, enabling the inverter to exhibit droop characteristics, inertia response, and damping characteristics similar to a synchronous generator in its external characteristics. VSG technology effectively improves grid stability and is one of the core technologies of grid-connected converters. Despite the achievements of traditional VSG technology, the following prominent technical bottlenecks remain: the rotational inertia and damping coefficient of traditional VSGs are usually set to fixed values. If the inertia is set too large, although it can suppress frequency abrupt changes, it will lead to a slower dynamic response and longer settling time; if the damping is set too small, the system is prone to prolonged power and frequency oscillations after disturbances; when a severe short-circuit fault occurs in the grid, causing a deep voltage drop, the electromagnetic power output by the inverter decreases sharply. Because the mechanical power of the "virtual rotor" inside the VSG cannot be reduced instantaneously, excess power causes the virtual rotor to accelerate continuously, and the virtual power angle to increase rapidly. Simultaneously, due to the extremely limited overcurrent capacity of power electronic devices, current limiting is necessary during faults, further weakening the inverter's active power output. If the fault clearing time is long, the power angle will exceed the stability limit boundary, causing the inverter to lose synchronization, leading to severe instability or even grid disconnection. Existing adaptive VSG research mainly focuses on adjusting inertia and damping through frequency deviation and rate of change, which is only effective for small disturbances. During large disturbances (severe grid faults), simply changing inertia and damping is insufficient to reverse the trend of virtual rotor acceleration and divergence, lacking a direct intervention and compensation mechanism for the power angle. Based on this background, there is an urgent need for a synchronous stability control method and system that can adaptively optimize the dynamic response under small disturbance conditions and directly compensate for the virtual rotor power angle under extreme large disturbance conditions to prevent system loss of synchronization. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of existing technologies in grid-connected inverter VSG control, such as poor dynamic response due to fixed parameters and easy transient power angle loss under large disturbances. This invention proposes a synchronous stability control method and system based on virtual rotor adaptive compensation. Through adaptive dynamic compensation of rotational inertia and damping coefficient, this invention automatically increases inertia to suppress changes when the frequency deviates from the rated value and deteriorates rapidly; and decreases inertia to accelerate the recovery speed when the frequency recovers to the rated value. Combined with damping compensation, this completely eliminates the inherent contradiction between large overshoot and slow response speed under traditional VSG fixed parameters.
[0005] A first aspect of this invention proposes a synchronous stability control method based on virtual rotor adaptive compensation, comprising:
[0006] Based on the actual active power output of the grid-connected inverter, and based on the rotor motion equation of the virtual synchronous generator, a virtual rotor active power-frequency control model with adaptive compensation terms is constructed, and the virtual angular frequency of the virtual rotor is calculated; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping.
[0007] Determine the operating condition of the power grid; if it is in a steady state or small disturbance condition, integrate the virtual angular frequency to obtain the basic virtual power angle; if it is in a large disturbance condition, calculate the power angle compensation; superimpose the basic virtual power angle and the power angle compensation to obtain the final virtual internal potential phase.
[0008] Based on the reactive power-voltage droop characteristics and virtual excitation control, the virtual internal potential amplitude is calculated by combining reactive power deviation.
[0009] Based on the virtual internal potential phase and the virtual internal potential amplitude, a space vector pulse width modulation signal is generated by combining voltage and current dual closed-loop control to drive the power switching transistors of the grid-connected inverter to achieve control.
[0010] In one specific embodiment of the present invention, it further includes:
[0011] The expression for the virtual rotor active-frequency control model is as follows:
[0012] Pref - Pe - (D0+ ΔD)(ω - ω g )=(J0+ ΔJ)ωdω / dt
[0013] Where Pe is the actual active power output of the inverter, Pref is the grid reference active power, J0 is the basic moment of inertia, D0 is the basic damping coefficient, and ω is the virtual angular frequency of the virtual rotor. g ΔJ is the actual angular frequency of the power grid, ΔD is the adaptive compensation amount for rotational inertia, ΔD is the adaptive compensation amount for damping, and t is time.
[0014] In one specific embodiment of the present invention, it further includes:
[0015] The calculation expressions for the adaptive compensation amount ΔJ of rotational inertia and the adaptive compensation amount ΔD of damping are as follows:
[0016] ;
[0017] ;
[0018] Where Δω = ω − ω0 is the angular frequency deviation; ω0 is the rated angular frequency; , These are the proportional coefficient and differential coefficient for compensation of moment of inertia, respectively; This is the damping compensation proportional coefficient; The frequency deviation dead zone threshold is used for damping compensation triggering.
[0019] In one specific embodiment of the present invention, it further includes:
[0020] The calculation process for the power angle compensation is as follows:
[0021] Establish an inverter equivalent output impedance and grid impedance model. Based on the maximum transmittable power limit Pmax during a fault, calculate the deceleration power area compensation requirement that makes the virtual synchronous generator satisfy the equal area rule, and then obtain:
[0022] Δθ=k θ ∫(Pe - Pmax sinθ0)dt
[0023] Where, k θ This is the transient power angle compensation gain coefficient.
[0024] In one specific embodiment of the present invention, it further includes:
[0025] The stage of frequency change is determined by the sign of the product of the angular frequency deviation and its rate of change, and then the moment of inertia is dynamically switched; where:
[0026] when >0 and / When the value is greater than 0, it indicates that the frequency is too high and is continuing to rise. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from rising rapidly.
[0027] when >0 and / When ΔJ < 0, it indicates that although the frequency is relatively high, it has already passed the peak and begun to decline; at this time, setting ΔJ = 0, the inertia returns to J0.
[0028] when <0 and / When the value is less than 0, it indicates that the frequency is too low and is continuing to decrease. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from decreasing rapidly.
[0029] when <0 and / When the value is greater than 0, it indicates that although the frequency is low, it has already passed the trough and begun to rise; at this time, if ΔJ=0, the inertia will be restored to J0.
[0030] A second aspect of this invention provides a synchronous stability control system based on virtual rotor adaptive compensation, comprising:
[0031] The virtual angular frequency calculation module is used to construct a virtual rotor active-frequency control model with adaptive compensation terms based on the rotor motion equation of the virtual synchronous generator, according to the actual active power output of the grid-connected inverter, and to calculate the virtual angular frequency of the virtual rotor; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping.
[0032] The virtual internal potential phase calculation module is used to determine the operating condition of the power grid. If it is in a steady state or small disturbance condition, the virtual angular frequency is integrated to obtain the basic virtual power angle. If it is in a large disturbance condition, the power angle compensation is also calculated. The basic virtual power angle and the power angle compensation are superimposed to obtain the final virtual internal potential phase.
[0033] The virtual internal potential amplitude calculation module is used to calculate the virtual internal potential amplitude based on the reactive power-voltage droop characteristics and virtual excitation control, combined with the reactive power deviation.
[0034] The control output module is used to generate a space vector pulse width modulation signal based on the phase and amplitude of the virtual internal potential, combined with voltage and current dual closed-loop control, to drive the power switching transistors of the grid-connected inverter to achieve control.
[0035] In one specific embodiment of the present invention, it further includes:
[0036] The expression for the virtual rotor active-frequency control model is as follows:
[0037] Pref - Pe - (D0+ ΔD)(ω - ω g )=(J0+ ΔJ)ωdω / dt
[0038] Where Pe is the actual active power output of the inverter, Pref is the grid reference active power, J0 is the basic moment of inertia, D0 is the basic damping coefficient, and ω is the virtual angular frequency of the virtual rotor. g ΔJ is the actual angular frequency of the power grid, ΔD is the adaptive compensation amount for rotational inertia, ΔD is the adaptive compensation amount for damping, and t is time.
[0039] In one specific embodiment of the present invention, it further includes:
[0040] The calculation expressions for the adaptive compensation amount ΔJ of rotational inertia and the adaptive compensation amount ΔD of damping are as follows:
[0041] ;
[0042] ;
[0043] Where Δω = ω − ω0 is the angular frequency deviation; ω0 is the rated angular frequency; , These are the proportional coefficient and differential coefficient for compensation of moment of inertia, respectively; This is the damping compensation proportional coefficient; The frequency deviation dead zone threshold is used for damping compensation triggering.
[0044] In one specific embodiment of the present invention, it further includes:
[0045] The calculation process for the power angle compensation is as follows:
[0046] Establish an inverter equivalent output impedance and grid impedance model. Based on the maximum transmittable power limit Pmax during a fault, calculate the deceleration power area compensation requirement that makes the virtual synchronous generator satisfy the equal area rule, and then obtain:
[0047] Δθ=k θ ∫(Pe - Pmax sinθ0)dt
[0048] Where, k θ This is the transient power angle compensation gain coefficient.
[0049] In one specific embodiment of the present invention, it further includes:
[0050] The stage of frequency change is determined by the sign of the product of the angular frequency deviation and its rate of change, and then the moment of inertia is dynamically switched; where:
[0051] when >0 and / When the value is greater than 0, it indicates that the frequency is too high and is continuing to rise. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from rising rapidly.
[0052] when >0 and / When ΔJ < 0, it indicates that although the frequency is relatively high, it has already passed the peak and begun to decline; at this time, setting ΔJ = 0, the inertia returns to J0.
[0053] when <0 and / When the value is less than 0, it indicates that the frequency is too low and is continuing to decrease. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from decreasing rapidly.
[0054] when <0 and / When the value is greater than 0, it indicates that although the frequency is low, it has already passed the trough and begun to rise; at this time, if ΔJ=0, the inertia will be restored to J0.
[0055] A third aspect of the present invention provides an electronic device comprising:
[0056] At least one processor; and a memory communicatively connected to said at least one processor;
[0057] The memory stores instructions that can be executed by the at least one processor, and the instructions are configured to execute the above-described synchronous stability control method based on virtual rotor adaptive compensation.
[0058] A fourth aspect of the present invention provides a computer-readable storage medium storing computer instructions for causing the computer to execute the above-described synchronous stability control method based on virtual rotor adaptive compensation.
[0059] The features and beneficial effects of this invention are as follows:
[0060] This invention achieves adaptive dynamic compensation of rotational inertia and damping coefficient. When the frequency deviates from the rated value and deteriorates rapidly, the inertia is automatically increased to suppress the change; when the frequency recovers to the rated value, the inertia is reduced to accelerate the recovery speed. Combined with damping compensation, this invention completely eliminates the inherent contradiction between large overshoot and slow response speed under the fixed parameters of traditional VSG.
[0061] To address the deep voltage drop caused by severe short circuits in the power grid, this invention innovatively proposes a transient power angle compensation model. When a large disturbance is detected, this scheme can directly apply to the phase angle generation stage of the virtual rotor, reducing the excessive integration of the power angle caused by active power imbalance. This is equivalent to increasing the deceleration area of the system, fundamentally preventing the risk of loss of synchronization and inverter disconnection under large disturbances in traditional VSG.
[0062] This invention can be directly embedded into the digital controller (such as DSP or FPGA) of existing grid-connected inverters for new energy sources such as wind, solar and energy storage, without requiring any changes to the inverter's main circuit topology and hardware sensors, and has extremely high industrial application and promotion value. Attached Figure Description
[0063] Figure 1 This is a flowchart of a synchronous stability control method based on virtual rotor adaptive compensation according to an embodiment of the present invention.
[0064] Figure 2 The figure shows a comparison of the transient power angle response curves of a conventional fixed-parameter VSG and the adaptive compensation VSG of the present invention under large disturbances in one embodiment of the present invention. Detailed Implementation
[0065] This invention proposes a synchronous stability control method and system based on virtual rotor adaptive compensation. To make the objectives, technical solutions, and advantages of this invention clearer, the 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 merely illustrative of the invention and are not intended to limit the invention.
[0066] A first aspect of this invention proposes a synchronous stability control method based on virtual rotor adaptive compensation, comprising:
[0067] Based on the actual active power output of the grid-connected inverter, and based on the rotor motion equation of the virtual synchronous generator, a virtual rotor active power-frequency control model with adaptive compensation terms is constructed, and the virtual angular frequency of the virtual rotor is calculated; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping.
[0068] Determine the operating condition of the power grid; if it is in a steady state or small disturbance condition, integrate the virtual angular frequency to obtain the basic virtual power angle; if it is in a large disturbance condition, calculate the power angle compensation; superimpose the basic virtual power angle and the power angle compensation to obtain the final virtual internal potential phase.
[0069] Based on the reactive power-voltage droop characteristics and virtual excitation control, the virtual internal potential amplitude is calculated by combining reactive power deviation.
[0070] Based on the virtual internal potential phase and the virtual internal potential amplitude, a space vector pulse width modulation signal is generated by combining voltage and current dual closed-loop control to drive the power switching transistors of the grid-connected inverter to achieve control.
[0071] In a specific embodiment of the present invention, the overall process of the synchronous stability control method based on virtual rotor adaptive compensation is as follows: Figure 1 As shown, it includes the following steps:
[0072] 1) Collect the three-phase voltage and three-phase current at the output of the grid-connected inverter in real time, and calculate the actual output active power Pe and reactive power Qe of the inverter through coordinate transformation.
[0073] 2) Obtain the grid reference active power Pref, reference reactive power Qref, rated angular frequency ω0, and rated voltage amplitude E0.
[0074] 3) Based on the rotor motion equation of the virtual synchronous generator (VSG), construct a virtual rotor active-frequency control model with adaptive compensation terms, and calculate the virtual angular frequency of the virtual rotor; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping.
[0075] In this embodiment, the rotor motion equation of the virtual rotor active-frequency control model with adaptive compensation term is:
[0076] Pref - Pe - (D0+ ΔD)(ω - ω g )=(J0+ ΔJ)ωdω / dt
[0077] Where Pe is the actual active power output of the inverter, Pref is the grid reference active power, J0 is the basic moment of inertia, D0 is the basic damping coefficient, and ω is the virtual angular frequency of the virtual rotor. g ω is the actual angular frequency of the power grid (the rated angular frequency ω0 in islanded mode), ΔJ is the adaptive compensation amount for rotational inertia, ΔD is the adaptive compensation amount for damping, and t is time.
[0078] The calculation expressions for the adaptive compensation amount of rotational inertia ΔJ and the adaptive compensation amount of damping ΔD are as follows:
[0079] ;
[0080] ;
[0081] Where Δω = ω − ω0 is the angular frequency deviation; , These are the proportional coefficient and differential coefficient for compensation of moment of inertia, respectively; This is the damping compensation proportional coefficient; The frequency deviation dead zone threshold is used for damping compensation triggering.
[0082] In this embodiment, the acceleration or deceleration phase is determined by the sign of the product of the angular frequency deviation and its rate of change, thereby dynamically switching the moment of inertia to suppress frequency overshoot and shorten the recovery time.
[0083] Specifically, when >0 and / When the value is greater than 0, it indicates that the frequency is not only too high, but is also continuing to rise (accelerated deterioration stage). At this time, the adaptive control logic calculates ΔJ, which makes the total inertia J = J0 + ΔJ significantly larger, preventing the frequency from rising rapidly.
[0084] when >0 and / When the value is less than 0, it indicates that although the frequency is relatively high, it has already passed the peak and begun to decline (recovery phase). At this time, in order to prevent excessive inertia from hindering frequency recovery, the system sets ΔJ=0, and the inertia recovers to the base value J0.
[0085] when <0 and / When the value is less than 0, it indicates that the frequency is not only too low, but is also continuing to decrease (accelerated deterioration stage). At this time, the adaptive control logic calculates ΔJ, which makes the total inertia J=J0+ΔJ significantly larger, preventing the frequency from decreasing rapidly.
[0086] when <0 and / When the value is greater than 0, it indicates that although the frequency is low, it has passed the trough and begun to rise (recovery phase). At this time, in order to prevent excessive inertia from hindering frequency recovery, the system sets ΔJ=0, and the inertia recovers to the base value J0.
[0087] The intervention of damping compensation ΔD can provide a larger damping torque when the frequency deviates far, absorbing power oscillations.
[0088] In this embodiment, through the above-described judgment method, the inverter output power and frequency response exhibit excellent performance of no overshoot and fast and stable operation.
[0089] 4) Determine the operating condition of the system based on the state of the grid voltage; if it is in a steady state or small disturbance condition, the virtual angular frequency ω is integrated to obtain the basic virtual power angle θ0; if it is in a large disturbance condition, in addition to calculating the basic virtual power angle θ0, a transient power angle compensation model is introduced to calculate the power angle compensation amount Δθ; the basic virtual power angle θ0 and the power angle compensation amount Δθ are superimposed to obtain the final virtual internal potential phase θ.
[0090] Specifically, in this embodiment, the voltage drop depth ΔU at the grid connection point is detected. If ΔU < 0.2pu, it is determined to be a small disturbance condition, and Δθ = 0. If ΔU ≥ 0.2pu, it is determined to be a large disturbance condition, and the transient power angle compensation model is triggered.
[0091] Furthermore, in the transient power angle compensation model, the calculation method for the power angle compensation amount Δθ is as follows:
[0092] Establish an inverter equivalent output impedance and grid impedance model. Based on the maximum transmittable power limit Pmax during a fault, calculate the deceleration power area compensation requirement that makes the virtual synchronous generator satisfy the equal area rule (EAC), and then obtain:
[0093] Δθ=k θ ∫(Pe - Pmax sinθ0)dt
[0094] Where, k θ This is the transient power angle compensation gain coefficient; by adding this compensation amount, the electromagnetic power of the virtual rotor during a fault is matched with the mechanical power, thus suppressing power angle divergence.
[0095] 5) Based on the reactive power-voltage droop characteristics and virtual excitation control, the virtual internal potential amplitude E is obtained by combining reactive power deviation calculation.
[0096] 6) Based on the virtual internal potential phase θ and the virtual internal potential amplitude E, a space vector pulse width modulation (SVPWM) signal is generated by combining voltage and current dual closed-loop control to drive the power switching transistors of the grid-connected inverter.
[0097] The method described in this embodiment will be further explained in detail below with reference to specific embodiments.
[0098] In one specific embodiment of the present invention, in a new energy grid-connected microgrid, an energy storage PCS (bidirectional converter) is configured to adopt the control strategy of the method described in this embodiment.
[0099] Specifically, regarding the core equations of traditional VSG control:
[0100] Pref - Pe - D(ω - ω g )=Jωdω / dt;
[0101] In the formula, D is the inertia of the system.
[0102] During periods of small disturbances (e.g., a sudden 10% load increase), the system voltage drop is minimal, primarily manifesting as frequency fluctuations. The system calculates Δω = ω - ω0 and dω / dt in real time.
[0103] 1) When >0 and / When the value is greater than 0, it indicates that the frequency is too high and is continuing to rise. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from rising rapidly.
[0104] 2) When >0 and / When the value is less than 0, it indicates that although the frequency is relatively high, it has already exceeded the peak value and begun to decline; at this time, setting ΔJ=0 will restore the inertia to J0.
[0105] Similarly, the intervention of damping compensation ΔD can provide a larger damping torque when the frequency deviates far, absorbing power oscillations.
[0106] During periods of significant disturbance (e.g., a three-phase short-circuit fault in the power grid, causing the voltage to drop to 30%): If only adjustment of J and D is used, the maximum electromagnetic power Pmax = EU / X will decrease drastically due to the extremely low voltage (voltage U decreases, X is the line inductive reactance). According to the equal area rule (EAC), the acceleration area must be greater than the maximum possible deceleration area. The system monitors the voltage in real time, and when ΔU ≥ 0.2pu is calculated, transient power angle compensation is immediately triggered. The core of this compensation is to introduce negative compensation directly into the phase angle integral stage without changing the normal angular frequency ω integral: Original logic: θ = ∫ωdt; Current logic: θ = ∫ωdt - Δθ. The expression for calculating the power angle compensation is as follows:
[0107] ;
[0108] Where t0 is the start time of the disturbance, θ normal Let P be the angle of work at time τ. ref The output active power is used as a reference.
[0109] The core idea is to introduce a "virtual rotor spatial displacement." While the rotor of a physical synchronous generator is a rigid entity whose position cannot change abruptly, the "virtual rotor" of this invention is constructed at the code level. During a fault, a software algorithm can forcibly "pull" the rotor back (i.e., reduce the power angle θ), forcibly offsetting the rotor acceleration lead caused by active power imbalance. When the grid fault is cleared after several hundred milliseconds, because the power angle θ is always kept within the stability margin, the system can quickly restore synchronization with the main grid, without experiencing synchronization loss like with traditional VSGs.
[0110] Figure 2 This is a comparison curve of the transient power angle response under large disturbances between a conventional fixed-parameter VSG and the adaptive compensation VSG of this invention in one embodiment of the present invention. Figure 2 As shown, in a simulation where a severe short circuit occurs at 0.5s and is cleared at 0.7s, the power angle of a traditional VSG continuously rises above 180°, leading to complete instability. However, the VSG controlled by the method described in this embodiment only reaches a maximum transient power angle of 85°, and smoothly returns to normal after the fault is cleared, maintaining perfect synchronization.
[0111] Furthermore, the method described in this embodiment is mainly applied to photovoltaic grid-connected centralized inverters.
[0112] Specifically, the three-phase voltage U before and after the inverter output filter inductor is acquired by a high-frequency Hall voltage / current sensor. abc and current I abc The sampling frequency is set to 10kHz.
[0113] DSP core algorithm board: includes main controller (such as TMS320F28335 or more advanced control chip based on dual-core ARM architecture).
[0114] During implementation, the sampled data undergoes Clark and Park transforms, and then passes through a low-pass filter (cutoff frequency 50Hz) to obtain smooth Pe and Qe.
[0115] The voltage sag amplitude ΔU is monitored with a control cycle of 200μs. The state machine seamlessly switches between "normal VSG mode", "adaptive optimization VSG mode" and "transient limit power angle compensation mode".
[0116] The state variables ω and θ are maintained in memory. The first-order Runge-Kutta method (Eulerian method) is used to iteratively solve the differential equations containing ΔJ, ΔD, and Δθ in the discrete domain.
[0117] Dual closed-loop inner loop control: After obtaining the virtual electromotive force E∠θ, it is used as the reference for the outer loop voltage command. The outer loop voltage PI controller outputs a reference current, while the inner loop current uses a PI controller with grid voltage feedforward decoupling to accurately track the current. To prevent overcurrent during large disturbances, the inner loop reference current command has a hard limiting boundary (typically limited to 1.2IN) to ensure the safety of the IGBT module.
[0118] The inner loop output is modulated by SVPWM to generate 6 complementary PWM signals with dead time, which are then amplified to drive the power switch.
[0119] Furthermore, in response to asymmetric faults such as single-phase ground faults that may occur in the power grid, the method described in this embodiment also includes: positive and negative sequence separation based on a second-order generalized integrator.
[0120] Specifically, during asymmetric voltage drops, the grid voltage contains a large number of negative-sequence components. The positive-sequence component U+ and the negative-sequence component U− of the voltage are extracted. Active power calculations are primarily based on the positive-sequence component, thus ensuring torque stability in the virtual rotor control equations and preventing severe power oscillations at twice the frequency (100Hz) at the inverter output. Transient power angle compensation gain coefficient k θ It will adaptively derating based on the proportion of negative-order components to cope with more complex operating conditions.
[0121] This invention can be widely applied to large-scale wind farms, centralized photovoltaic power plants, and grid-side independent energy storage power plants, enabling them to truly possess grid-friendly characteristics similar to or even surpassing those of traditional thermal power units. The adaptive compensation method proposed in this invention does not increase any physical costs and can be directly deployed in existing energy storage PCS and photovoltaic inverters through software upgrades, possessing significant market conversion potential. In remote microgrids or island microgrids, when the microgrid operates independently from the main grid (island mode), large-scale load switching can easily lead to system collapse. The adaptive inertia and damping control mechanism of this invention can greatly enhance the frequency robustness of islanded systems, ensuring the power supply security of critical loads.
[0122] The technologies employed in this invention are all mature digital signal processing and modern control theories, and the required hardware (voltage / current sensors, DSP controller, inverter bridge) are standard features of currently available industrial-grade inverters. The core innovation of this invention lies in the reconstruction of the control law and the optimization of the algorithm topology. Therefore, this scheme not only possesses Lyapunov asymptotic stability over a wide range in theory, but also demonstrates complete manufacturability, reusability, and extremely high cost-effectiveness in engineering practice, exhibiting clear industrial applicability.
[0123] To achieve the above embodiments, a second aspect of the present invention proposes a synchronous stability control system based on virtual rotor adaptive compensation, comprising:
[0124] The virtual angular frequency calculation module is used to construct a virtual rotor active-frequency control model with adaptive compensation terms based on the rotor motion equation of the virtual synchronous generator, according to the actual active power output of the grid-connected inverter, and to calculate the virtual angular frequency of the virtual rotor; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping.
[0125] The virtual internal potential phase calculation module is used to determine the operating condition of the power grid. If it is in a steady state or small disturbance condition, the virtual angular frequency is integrated to obtain the basic virtual power angle. If it is in a large disturbance condition, the power angle compensation is also calculated. The basic virtual power angle and the power angle compensation are superimposed to obtain the final virtual internal potential phase.
[0126] The virtual internal potential amplitude calculation module is used to calculate the virtual internal potential amplitude based on the reactive power-voltage droop characteristics and virtual excitation control, combined with the reactive power deviation.
[0127] The control output module is used to generate a space vector pulse width modulation signal based on the phase and amplitude of the virtual internal potential, combined with voltage and current dual closed-loop control, to drive the power switching transistors of the grid-connected inverter to achieve control.
[0128] In one specific embodiment of the present invention, it further includes:
[0129] The expression for the virtual rotor active-frequency control model is as follows:
[0130] Pref - Pe - (D0+ ΔD)(ω - ω g )=(J0+ ΔJ)ωdω / dt
[0131] Where Pe is the actual active power output of the inverter, Pref is the grid reference active power, J0 is the basic moment of inertia, D0 is the basic damping coefficient, and ω is the virtual angular frequency of the virtual rotor. g ΔJ is the actual angular frequency of the power grid, ΔD is the adaptive compensation amount for rotational inertia, ΔD is the adaptive compensation amount for damping, and t is time.
[0132] In one specific embodiment of the present invention, it further includes:
[0133] The calculation expressions for the adaptive compensation amount ΔJ of rotational inertia and the adaptive compensation amount ΔD of damping are as follows:
[0134] ;
[0135] ;
[0136] Where Δω = ω − ω0 is the angular frequency deviation; ω0 is the rated angular frequency; , These are the proportional coefficient and differential coefficient for compensation of moment of inertia, respectively; This is the damping compensation proportional coefficient; The frequency deviation dead zone threshold is used for damping compensation triggering.
[0137] In one specific embodiment of the present invention, it further includes:
[0138] The calculation process for the power angle compensation is as follows:
[0139] Establish an inverter equivalent output impedance and grid impedance model. Based on the maximum transmittable power limit Pmax during a fault, calculate the deceleration power area compensation requirement that makes the virtual synchronous generator satisfy the equal area rule, and then obtain:
[0140] Δθ=k θ ∫(Pe - Pmax sinθ0)dt
[0141] Where, k θ This is the transient power angle compensation gain coefficient.
[0142] In one specific embodiment of the present invention, it further includes:
[0143] The stage of frequency change is determined by the sign of the product of the angular frequency deviation and its rate of change, and then the moment of inertia is dynamically switched; where:
[0144] when >0 and / When the value is greater than 0, it indicates that the frequency is too high and is continuing to rise. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from rising rapidly.
[0145] when >0 and / When ΔJ < 0, it indicates that although the frequency is relatively high, it has already passed the peak and begun to decline; at this time, setting ΔJ = 0, the inertia returns to J0.
[0146] when <0 and / When the value is less than 0, it indicates that the frequency is too low and is continuing to decrease. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from decreasing rapidly.
[0147] when <0 and / When the value is greater than 0, it indicates that although the frequency is low, it has already passed the trough and begun to rise; at this time, if ΔJ=0, the inertia will be restored to J0.
[0148] This enables adaptive dynamic compensation of rotational inertia and damping coefficient. When the frequency deviates from the rated value and deteriorates rapidly, the inertia is automatically increased to suppress the change; when the frequency recovers to the rated value, the inertia is reduced to speed up the recovery. Combined with damping compensation, this completely eliminates the inherent contradiction between large overshoot and slow response speed under the fixed parameters of traditional VSG.
[0149] To implement the above embodiments, a third aspect of the present invention provides an electronic device, comprising:
[0150] At least one processor; and a memory communicatively connected to said at least one processor;
[0151] The memory stores instructions that can be executed by the at least one processor, and the instructions are configured to execute the above-described synchronous stability control method based on virtual rotor adaptive compensation.
[0152] To implement the above embodiments, a fourth aspect of the present invention provides a computer-readable storage medium storing computer instructions for causing the computer to execute the above-described synchronous stability control method based on virtual rotor adaptive compensation.
[0153] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0154] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform a synchronous stability control method based on virtual rotor adaptive compensation according to the above embodiments.
[0155] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0156] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0157] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0158] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.
[0159] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0160] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0161] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0162] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0163] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A synchronous stability control method based on virtual rotor adaptive compensation, characterized in that, include: Based on the actual active power output of the grid-connected inverter, and based on the rotor motion equation of the virtual synchronous generator, a virtual rotor active power-frequency control model with adaptive compensation terms is constructed, and the virtual angular frequency of the virtual rotor is calculated; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping. Determine the operating condition of the power grid; if it is in a steady state or small disturbance condition, integrate the virtual angular frequency to obtain the basic virtual power angle; if it is in a large disturbance condition, calculate the power angle compensation amount. The basic virtual power angle is superimposed with the power angle compensation amount to obtain the final virtual internal potential phase. Based on the reactive power-voltage droop characteristics and virtual excitation control, the virtual internal potential amplitude is calculated by combining reactive power deviation. Based on the virtual internal potential phase and the virtual internal potential amplitude, a space vector pulse width modulation signal is generated by combining voltage and current dual closed-loop control to drive the power switching transistors of the grid-connected inverter to achieve control.
2. The method according to claim 1, characterized in that, Also includes: The expression for the virtual rotor active-frequency control model is as follows: Pref - Pe - (D0+ ΔD)(ω - ω g )=(J0+ ΔJ)ωdω / dt Where Pe is the actual active power output of the inverter, Pref is the grid reference active power, J0 is the basic moment of inertia, D0 is the basic damping coefficient, and ω is the virtual angular frequency of the virtual rotor. g ΔJ is the actual angular frequency of the power grid, ΔD is the adaptive compensation amount for rotational inertia, ΔD is the adaptive compensation amount for damping, and t is time.
3. The method according to claim 2, characterized in that, Also includes: The calculation expressions for the adaptive compensation amount ΔJ of rotational inertia and the adaptive compensation amount ΔD of damping are as follows: ; ; Where Δω = ω − ω0 is the angular frequency deviation; ω0 is the rated angular frequency; , These are the proportional coefficient and differential coefficient for compensation of moment of inertia, respectively; This is the damping compensation proportional coefficient; The frequency deviation dead zone threshold is used for damping compensation triggering.
4. The method according to claim 2, characterized in that, Also includes: The calculation process for the power angle compensation is as follows: Establish an inverter equivalent output impedance and grid impedance model. Based on the maximum transmittable power limit Pmax during a fault, calculate the deceleration power area compensation requirement that makes the virtual synchronous generator satisfy the equal area rule, and then obtain: Δθ=k θ ∫(Pe - Pmax sinθ0)dt Where, k θ This is the transient power angle compensation gain coefficient.
5. The method according to claim 3, characterized in that, Also includes: The stage of frequency change is determined by the sign of the product of the angular frequency deviation and its rate of change, and then the moment of inertia is dynamically switched; where: when >0 and / When the value is greater than 0, it indicates that the frequency is too high and is continuing to rise. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from rising rapidly. when >0 and / When ΔJ < 0, it indicates that although the frequency is relatively high, it has already passed the peak and begun to decline; at this time, setting ΔJ = 0, the inertia returns to J0. when <0 and / When the value is less than 0, it indicates that the frequency is too low and is continuing to decrease. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from decreasing rapidly. when <0 and / When the value is greater than 0, it indicates that although the frequency is low, it has already passed the trough and begun to rise; at this time, if ΔJ=0, the inertia will be restored to J0.
6. A synchronous stability control system based on virtual rotor adaptive compensation, characterized in that, include: The virtual angular frequency calculation module is used to construct a virtual rotor active-frequency control model with adaptive compensation terms based on the rotor motion equation of the virtual synchronous generator, according to the actual active power output of the grid-connected inverter, and to calculate the virtual angular frequency of the virtual rotor; the adaptive compensation terms include adaptive compensation for rotational inertia and adaptive compensation for damping. The virtual internal potential phase calculation module is used to determine the operating condition of the power grid. If it is in a steady state or small disturbance condition, the virtual angular frequency is integrated to obtain the basic virtual power angle. If it is in a large disturbance condition, the power angle compensation is also calculated. The basic virtual power angle and the power angle compensation are superimposed to obtain the final virtual internal potential phase. The virtual internal potential amplitude calculation module is used to calculate the virtual internal potential amplitude based on the reactive power-voltage droop characteristics and virtual excitation control, combined with the reactive power deviation. The control output module is used to generate a space vector pulse width modulation signal based on the phase and amplitude of the virtual internal potential, combined with voltage and current dual closed-loop control, to drive the power switching transistors of the grid-connected inverter to achieve control.
7. The system according to claim 6, characterized in that, Also includes: The expression for the virtual rotor active-frequency control model is as follows: Pref - Pe - (D0+ ΔD)(ω - ω g )=(J0+ ΔJ)ωdω / dt Where Pe is the actual active power output of the inverter, Pref is the grid reference active power, J0 is the basic moment of inertia, D0 is the basic damping coefficient, and ω is the virtual angular frequency of the virtual rotor. g ΔJ is the actual angular frequency of the power grid, ΔD is the adaptive compensation amount for rotational inertia, ΔD is the adaptive compensation amount for damping, and t is time.
8. The system according to claim 7, characterized in that, Also includes: The calculation expressions for the adaptive compensation amount ΔJ of rotational inertia and the adaptive compensation amount ΔD of damping are as follows: ; ; Where Δω = ω − ω0 is the angular frequency deviation; ω0 is the rated angular frequency; , These are the proportional coefficient and differential coefficient for compensation of moment of inertia, respectively; This is the damping compensation proportional coefficient; The frequency deviation dead zone threshold is used for damping compensation triggering.
9. The system according to claim 8, characterized in that, Also includes: The calculation process for the power angle compensation is as follows: Establish an inverter equivalent output impedance and grid impedance model. Based on the maximum transmittable power limit Pmax during a fault, calculate the deceleration power area compensation requirement that makes the virtual synchronous generator satisfy the equal area rule, and then obtain: Δθ=k θ ∫(Pe - Pmax sinθ0)dt Where, k θ This is the transient power angle compensation gain coefficient.
10. The system according to claim 8, characterized in that, Also includes: The stage of frequency change is determined by the sign of the product of the angular frequency deviation and its rate of change, and then the moment of inertia is dynamically switched; where: when >0 and / When the value is greater than 0, it indicates that the frequency is too high and is continuing to rise. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from rising rapidly. when >0 and / When ΔJ < 0, it indicates that although the frequency is relatively high, it has already passed the peak and begun to decline; at this time, setting ΔJ = 0, the inertia returns to J0. when <0 and / When the value is less than 0, it indicates that the frequency is too low and is continuing to decrease. By calculating the adaptive compensation amount ΔJ of the moment of inertia, the total moment of inertia J = J0 + ΔJ is increased, which prevents the frequency from decreasing rapidly. when <0 and / When the value is greater than 0, it indicates that although the frequency is low, it has already passed the trough and begun to rise; at this time, if ΔJ=0, the inertia will be restored to J0.
