Power decoupling method based on port Hamiltonian theory and virtual impedance
By employing port Hamiltonian theory and a multi-channel collaborative control method based on virtual impedance, the power decoupling problem of virtual synchronous generators under weak power grids was solved, achieving dynamic decoupling of active and reactive power and improving the system's stability and dynamic performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TIANJIN POLYTECHNIC UNIV
- Filing Date
- 2026-01-09
- Publication Date
- 2026-05-26
AI Technical Summary
Existing virtual synchronous generator control methods suffer from low computational accuracy and poor decoupling effect during power decoupling, making it difficult to improve system stability and dynamic performance, especially under weak grid conditions.
By employing a virtual impedance method based on port Hamiltonian theory, and constructing a multi-channel collaborative control mechanism, the virtual resistance and virtual inductance are dynamically adjusted to achieve decoupled control of active and reactive power, including anchoring control, zero-mean adaptive control, event response control, and power angle deviation-specific adaptive control, thereby improving the steady-state accuracy and dynamic response capability of the system.
It significantly improves the stability and power decoupling performance of the virtual synchronous generator under weak power grid conditions, effectively suppresses power angle oscillation, and enhances the robustness and decoupling effect of the system.
Smart Images

Figure CN121507995B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power decoupling control technology of virtual synchronous generators, and in particular to a power decoupling method based on port Hamiltonian theory and using virtual impedance. Background Technology
[0002] Virtual synchronous generator (VSR) control is widely used in microgrid control. Under complex operating conditions, it plays a crucial role in achieving real-time and accurate management of microgrids, ensuring their safe operation, and extending their lifespan, which is of great significance for the development and promotion of industries such as photovoltaic energy storage. The VSR control strategy primarily depends on the accuracy of active and reactive power control. Therefore, current research on VSR control focuses on the real-time and precise control of the active power-frequency control loop and the reactive power-voltage control loop.
[0003] In the existing technology, power decoupling methods include virtual power coordinate transformation method, virtual frequency and voltage coordinate transformation method, and controlled object linearization method. These methods have their own characteristics, but most of them have the disadvantages of low estimation accuracy and poor precision.
[0004] There is currently no effective solution to the problems of low calculation accuracy and poor decoupling effect in the above power decoupling methods. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the prior art and propose a power decoupling method based on port Hamiltonian theory and virtual impedance, which can solve the oscillation problem caused by VSG power coupling under weak power grids and improve system stability and dynamic performance.
[0006] The technical problem solved by this invention is achieved through the following technical solution:
[0007] The power decoupling method based on port Hamiltonian theory and using virtual impedance includes the following steps:
[0008] Step 1: Obtain the basic parameters for controlling the virtual synchronous generator in the microgrid system;
[0009] Step 2: Establish a port Hamiltonian theoretical model for virtual synchronous generator control based on the basic parameters;
[0010] Step 3: Based on the port Hamiltonian theoretical model, calculate the energy coupling coefficient of the virtual synchronous generator control in the microgrid system, quantify the degree of coupling between reactive power and active power in the system, and extract the operating stress index from it.
[0011] Step 4: Construct a multi-channel collaborative control mechanism and adaptively and dynamically adjust the virtual resistance and virtual inductance based on the extracted operating stress index;
[0012] Step 5: The adjustment values obtained from the multi-channel collaborative control mechanism are superimposed, limited, and anti-saturation processed to generate the final virtual resistance command value and virtual inductance command value.
[0013] Step 6: Apply the virtual resistance command value and the virtual inductance command value to the virtual synchronous generator to achieve dynamic decoupling control of active power and reactive power.
[0014] Furthermore, the basic parameters in step 1 include power angle deviation, output active power, output reactive power, internal potential, and terminal voltage.
[0015] Furthermore, the port Hamiltonian theoretical model in step 2 includes: a weight matrix representing the coupling relationship between each state variable and the system's energy distribution and each state variable.
[0016]
[0017]
[0018] in, x =[ δ , P , Q , E g , U g Let H(x) be the state variable, H(x) be the Hamiltonian function (total system energy), J be an antisymmetric matrix representing the energy flow structure, R be a symmetric positive semi-definite matrix representing the system dissipation, and u and y be the system input and output, respectively. The rate of change of the system state variable over time. The energy port that inputs the active power reference value and reactive power reference value into the system is the driving source of the system.
[0019] Furthermore, calculating the energy coupling coefficient of the system in step 3 includes the following steps:
[0020] Step 3.1: Calculate the elements in the weight matrix and divide the matrix into a main diagonal element matrix representing the self-energy of each state variable and an off-diagonal element matrix representing the degree of coupling;
[0021] Step 3.2: Calculate the self-energy and coupling energy of each state variable of the system, and take the absolute value to ensure non-negativity;
[0022] Step 3.3: Calculate the proportion of coupled energy in the total energy, which is used as the energy coupling coefficient.
[0023] Moreover, the four parallel control channels in step 4 include an anchoring control channel, a zero-mean adaptive control channel, an event response control channel, and a power angle deviation-specific adaptive control channel.
[0024] The anchoring control channel adjusts the steady-state deviation of the virtual resistance and virtual inductance through proportional-integral calculation, so that the virtual impedance returns to the preset steady-state setpoint.
[0025] The zero-mean adaptive control channel obtains the second adjustment amount of the virtual resistance based on the deviation between the operating stress index and the target stress through proportional-integral calculation and limiting processing; and obtains the second adjustment amount of the virtual inductance based on the reactive power deviation through proportional-integral calculation and limiting processing.
[0026] When the event response control channel detects that any of the power angle deviation, active power deviation, or terminal voltage deviation exceeds the set threshold, it determines it as a large disturbance event, triggers the pulse-type adjustment of the virtual resistance and virtual inductance, and decays exponentially after the event ends or before the event ends.
[0027] The difference between the normalized absolute value of the power angle deviation and the expected normalized power angle deviation is calculated in the adaptive control channel for power angle deviation. After proportional-integral operation and limiting, the fourth adjustment amount of virtual resistance and virtual inductance is obtained. The virtual resistance adjustment amount is positively correlated with the difference, and the virtual inductance adjustment amount is negatively correlated with the difference.
[0028] Furthermore, the amplitude limiting and anti-saturation treatment in step 5 includes the following steps:
[0029] Step 5.1: Dynamically constrain the single-step change range of the adjustment amount;
[0030] Step 5.2: Apply asymmetric restrictions to the rate of increase and rate of decrease of the adjustment quantity;
[0031] Step 5.3: Physically limit the final output value of the adjustment amount;
[0032] Step 5.4: When the target value of the adjustment amount exceeds the physical range, reduce the adjustment amount proportionally.
[0033] Furthermore, the dynamic decoupling control of active power and reactive power in step 6 includes the following steps:
[0034] Step 6.1: Apply the virtual resistance command value and virtual inductance command value generated in Step 5 to the virtual impedance control loop of the virtual synchronous generator, adjust the amplitude and phase of the output reference voltage of the virtual synchronous generator, and realize the dynamic decoupling control of active power and reactive power.
[0035] Step 6.2: Calculate the energy coupling coefficient of the system online in real time, as an evaluation index of the decoupling effect;
[0036] Step 6.3: Evaluate the decoupling effect based on the system's energy coupling coefficient.
[0037] The advantages and positive effects of this invention are:
[0038] 1. Multi-dimensional collaborative optimization: This invention introduces an anchoring control strategy to solve the problem of maintaining steady-state accuracy, a zero-mean adaptive strategy to solve the problem of rapid response, an event response strategy to solve the problem of dealing with sudden events, and a power angle deviation-specific adaptive strategy to solve the problem of power angle oscillation. This achieves collaborative optimization of virtual impedance under various operating conditions and effectively resolves the contradiction between steady-state accuracy and dynamic performance.
[0039] 2. High stability: The present invention designs the control law based on the port Hamiltonian theoretical framework, which ensures the inherent passivity of the closed-loop system, improves the stability of virtual impedance, and enhances the robustness of virtual synchronous generator control under weak power grid conditions.
[0040] 3. The power angle oscillation suppression effect is significant, and the present invention improves power stability and decoupling performance. Attached Figure Description
[0041] Figure 1 This is a flowchart of the virtual synchronous generator adaptive virtual impedance generation method provided in an embodiment of the present invention;
[0042] Figure 2 This is a block diagram illustrating the principle of multi-channel collaborative control generating virtual impedance command values in an embodiment of the present invention.
[0043] Figure 3 This is a schematic diagram illustrating the working principle of the anchoring control channel in an embodiment of the present invention;
[0044] Figure 4 This is a schematic diagram illustrating the working principle of the zero-mean adaptive control channel in this embodiment of the invention.
[0045] Figure 5 This is a schematic diagram illustrating the working principle of the event response control channel in an embodiment of the present invention;
[0046] Figure 6 This is a schematic diagram illustrating the working principle of the adaptive control channel for power angle deviation in this embodiment of the invention.
[0047] Figure 7 This is a flowchart of the overlay limiting process in an embodiment of the present invention;
[0048] Figure 8 This is a structural block diagram of the virtual synchronous generator adaptive virtual impedance generation device provided in an embodiment of the present invention;
[0049] Figure 9 This is a comparison diagram of the angular frequency response of the method of this invention and the traditional adaptive virtual impedance method under weak power grid disturbances;
[0050] Figure 10This is a comparison diagram of the active power response of the method of this invention and the traditional adaptive virtual impedance method under weak power grid disturbances. Detailed Implementation
[0051] The present invention will be further described in detail below with reference to the accompanying drawings.
[0052] Currently, commonly used methods for generating virtual impedance in virtual synchronous generator control include fixed-value virtual impedance methods and traditional adaptive virtual impedance methods. However, these methods often face problems such as a single control objective, poor adaptability to weak power grids, and weak power decoupling capabilities, making it difficult to achieve multi-objective collaborative optimization of virtual impedance generation and ensure the stability of the control system. Figure 2 As shown, this invention treats the virtual synchronous generator grid-connected system as a port Hamiltonian system. The essence of adding virtual impedance is to change the dissipation terms of the port Hamiltonian system and adjust the energy flow structure. Adaptively adjusting the virtual resistance and virtual inductance is equivalent to dynamically injecting appropriate dissipation terms and adjusting the energy structure according to the changes in system state variables to suppress oscillations and stabilize the system.
[0053] Example 1:
[0054] like Figure 8 As shown, this embodiment constructs a power decoupling system based on port Hamiltonian theory and virtual impedance, according to the power decoupling method based on port Hamiltonian theory and virtual impedance. The power decoupling system can be integrated into the controller of VSG, such as digital signal processor (DSP) or microcontroller (MCU).
[0055] The power decoupling system includes a parameter acquisition and preprocessing module, a coupling evaluation module, a multi-dimensional control module, a synthesis and constraint processing module, and an output and execution module. The output of the parameter acquisition and preprocessing module is connected to the input of the coupling evaluation module. The output of the coupling evaluation module is connected to the input of each unit in the multi-dimensional control module. The output of the multi-dimensional control module is connected to the input of the synthesis and constraint processing module. The output of the synthesis and constraint processing module is connected to the input of the output and execution module. The input of the output and execution module is connected to the system's virtual impedance control section for power decoupling.
[0056] The parameter acquisition and preprocessing module is used to establish the port Hamiltonian theoretical model of the virtual synchronous generator and to acquire the basic parameters of the virtual synchronous generator in real time.
[0057] The coupling evaluation module is used to calculate the real-time energy coupling coefficient of the virtual synchronous generator.
[0058] The multi-dimensional control module calculates the adaptive adjustment of the virtual impedance based on the "deviation degree" and "operating stress" of the physical quantities in each system state. It includes four parallel control units: an anchoring control unit, a zero-mean adaptive control unit, an event response control unit, and a power angle deviation-specific adaptive control unit. The anchoring control unit achieves error-free tracking of the virtual impedance to the steady-state setpoint; the zero-mean adaptive control unit provides dynamic damping and responds to system disturbances; the event response control unit handles stable control during large disturbances; and the power angle deviation-specific adaptive control unit specifically addresses disturbances caused by power angle deviations, controlling them independently and optimizing dynamic damping injection and energy shaping.
[0059] The synthesis and constraint processing module is used to superimpose the final adjustment of the virtual impedance onto the real-time parameters of the virtual impedance.
[0060] The output and execution module is used to output real-time parameters of the virtual impedance to perform power decoupling control on the virtual synchronous generator.
[0061] Example 2:
[0062] Power decoupling methods based on port Hamiltonian theory and using virtual impedance, such as Figure 1 As shown, it includes the following steps:
[0063] Step 1: Obtain the basic parameters for controlling the virtual synchronous generator in the microgrid system.
[0064] The basic parameters in step 1 include power angle deviation, output active power, output reactive power, internal potential, and terminal voltage.
[0065] Step 2: Establish a port Hamiltonian theoretical model for virtual synchronous generator control based on the basic parameters.
[0066] The port Hamiltonian model in step 2 includes: a weight matrix representing the energy distribution of the system and the coupling relationship between each state variable and the state variable.
[0067] (1)
[0068] (2)
[0069] in, x =[ δ , P , Q , E g , U g ] represents the state variable. δ For the power angle of the virtual synchronous generator, P This represents the actual active power.Q This represents the actual reactive power. E g The electromotive force of the virtual synchronous generator. U g Let be the grid voltage, H(x) be the Hamiltonian function (total system energy), J be an antisymmetric matrix representing the energy flow structure, R be a symmetric positive semi-definite matrix representing the system dissipation, and u and y be the system input and output, respectively. The rate of change of the system state variable over time. The energy port that inputs the active power reference value and reactive power reference value into the system is the driving source of the system.
[0070] Step 3: Based on the port Hamiltonian theoretical model, calculate the energy coupling coefficient of the virtual synchronous generator control in the microgrid system, quantify the degree of coupling between reactive power and active power in the system, and extract the operating stress index from it.
[0071] Step 3, calculating the system's energy coupling coefficient, includes the following steps:
[0072] Step 3.1: Calculate the elements in the weight matrix and divide the matrix into a main diagonal element matrix representing the self-energy of each state variable and an off-diagonal element matrix representing the degree of coupling;
[0073] Step 3.2: Calculate the self-energy and coupling energy of each state variable of the system, and take the absolute value to ensure non-negativity;
[0074] Step 3.3: Calculate the proportion of coupled energy in the total energy, which is used as the energy coupling coefficient.
[0075] Step 4: Construct a multi-channel collaborative control mechanism and adaptively and dynamically adjust the virtual resistance and virtual inductance based on the extracted operating stress index.
[0076] The four parallel control channels in step 4 include the anchoring control channel, the zero-mean adaptive control channel, the event response control channel, and the power angle deviation-specific adaptive control channel;
[0077] like Figure 3 As shown, the anchoring control channel ensures that the virtual impedance returns to the preset steady-state optimal setpoint during the steady-state operation of the virtual synchronous generator control, thus ensuring optimal steady-state performance of the virtual synchronous generator control. The working principle involves calculating the deviation between the current virtual impedance output command value and the set steady-state optimal operating point, and then using proportional-integral control to generate the first adjustment amount based on this deviation. From the perspective of port Hamiltonian theory, this is equivalent to applying a restoring force in the gradient direction of the energy function of the virtual synchronous generator control system to pull the system state back to the desired equilibrium point.
[0078] The virtual impedance proportional-integral controller for the anchoring control channel is:
[0079] (3)
[0080] (4)
[0081] The meanings of the formula parameters are shown in Table 1:
[0082] Table 1 Anchoring Channel PI Controller Parameters
[0083]
[0084] like Figure 4 As shown, the zero-mean adaptive control channel provides a fast and flexible fine-tuning amount for virtual impedance adjustment when there is a sustained small-amplitude power stress deviation. However, in the long run, the average value of the second adjustment amount output by the zero-mean adaptive control channel is zero, and it does not affect the steady-state setpoint. Explained from the port Hamiltonian theory, the purpose of this channel is to dynamically adjust the dissipation and interconnect matrix to quickly suppress energy oscillations caused by power fluctuations through damping injection.
[0085] Its operating stress is:
[0086] (5)
[0087] The error of state variable s is defined as:
[0088] (6)
[0089] The virtual resistance saturation proportional-integral controller is:
[0090] (7)
[0091] The meanings of the formula parameters are shown in Table 2:
[0092] Table 2 Calculation of Operating Stress and Adaptive Parameters of Virtual Resistance
[0093]
[0094] The per-unit error of reactive power is defined as:
[0095] (8)
[0096] The virtual inductor saturation proportional-integral controller has been updated to:
[0097] (9)
[0098] The meanings of the formula parameters are shown in Table 3:
[0099] Table 3 Reactive power response and virtual inductance adaptation
[0100]
[0101] like Figure 5 As shown, the event response control channel provides pulsed virtual impedance regulation for sudden large disturbances, quickly suppressing excessive impacts on various state variables during system operation. Its working principle is as follows:
[0102] 1. Real-time detection of power angle deviation, active power deviation, and generator terminal voltage; check if they exceed set thresholds. If they do, it is determined that a major disturbance event has occurred. Activate the event response control channel.
[0103] 2. After the control channel is started, the event response adjustment amount b of the virtual resistor. R and the event response adjustment amount b of the virtual inductor L Increase and adjust according to the set formula.
[0104] 3. Regardless of whether any new events occur within each control cycle, the virtual impedance adjustment decreases exponentially.
[0105] 4. During pulse accumulation and exponential decay, the virtual impedance adjustment is always limited to the upper and lower limits set by the formula, ensuring that the output event response adjustment is non-negative and does not exceed the upper limit.
[0106] 5. The adjusted amount after the limitation process is output as the adjustment amount of the event response channel to the superposition module and superimposed with the adjustment amounts of other channels.
[0107] From the perspective of port Hamiltonian theory, it involves injecting a large amount of dissipation instantaneously during a transient process to quickly consume the extra energy caused by the sudden change, thus preventing the system energy function from growing excessively and causing system instability.
[0108] Its variables The updated formula is:
[0109] (10)
[0110] (11)
[0111] (12)
[0112] (13)
[0113] The meanings of the formula parameters are shown in Table 4:
[0114] Table 4 Event Response Channel Parameters
[0115]
[0116] like Figure 6 As shown, the power angle deviation adaptive control channel is specifically designed to suppress power angle oscillations. It independently adjusts the virtual impedance based on the power angle deviation to optimize energy decoupling and damping injection effects. From the perspective of port Hamiltonian theory, this channel precisely adjusts the injection damping according to the severity of the power angle oscillations, reducing the internal power coupling strength of the system and achieving precise control of the power angle.
[0117] Its normalized state variable for the work angle is:
[0118] (14)
[0119] The power angle error is defined as:
[0120] (15)
[0121] The output of the saturated proportional-integral controller is:
[0122] (16)
[0123] (17)
[0124] The meanings of the formula parameters are shown in Table 5:
[0125] Table 5 Adaptive Channel Parameters for Power Angle Deviation
[0126]
[0127] Step 5: The adjustment values obtained from the multi-channel collaborative control mechanism are superimposed, limited, and subjected to anti-saturation processing to generate the final virtual resistance command value and virtual inductance command value.
[0128] like Figure 7 As shown, the overlay, limiting, and anti-saturation processing includes the following steps:
[0129] Step 5.1: Superimpose the outputs of the four channels to obtain the adjustment amount:
[0130] (18)
[0131] (19)
[0132] The meanings of the formula parameters are shown in Table 6:
[0133] Table 6 Virtual Impedance Synthesis and Engineering Constraint Parameters
[0134]
[0135] Step 5.2: Dynamically constrain the single-step change range of the adjustment amount:
[0136] (20)
[0137] (twenty one)
[0138] The meanings of the formula parameters are shown in Table 7:
[0139] Table 7 Single-step limiting parameters
[0140]
[0141] The formula for determining the upper limit of the target value is:
[0142] (twenty two)
[0143] Integral term update (discretized integral formula):
[0144] (twenty three)
[0145] (twenty four)
[0146] (25)
[0147] The upper limit of the target value is assigned as:
[0148] (26)
[0149] The meanings of the formula parameters are shown in Table 8:
[0150] Table 8. Upper Limit Detection and Anti-Saturation Treatment Parameters
[0151]
[0152] Step 5.2: Apply asymmetric restrictions to the rate of increase and rate of decrease of the adjustment quantity;
[0153] The instruction value slope limit (rate limiting function) is:
[0154] (27)
[0155] (28)
[0156] The meanings of the formula parameters are shown in Table 9:
[0157] Table 9 Command Value Slope Limit Parameters
[0158]
[0159] Step 5.3: Physically limit the final output value of the adjustment amount;
[0160] The final output constraints (upper and lower boundary constraints) are:
[0161] (29)
[0162] (30)
[0163] The meanings of the formula parameters are shown in Table 10:
[0164] Table 10 Final Output Limiting Parameters
[0165]
[0166] Step 5.4: When the target value of the adjustment amount exceeds the physical range, reduce the adjustment amount proportionally.
[0167] When the real-time adjustment command for the output virtual impedance is [ , The physical limits set within the control program have been exceeded. ],[ If this is the case, the virtual impedance adjustment of each channel output will be reduced proportionally to prevent integral saturation, while ensuring that the real-time output adjustment of each control channel remains at its original proportion to prevent secondary interference between them. Specifically:
[0168] When the target value exceeds the upper limit, if the output of any control channel of the multi-control channel is positive, the real-time adjustment of each control channel will be reduced proportionally.
[0169] When the target value exceeds the lower limit, if the output of any control channel of the multi-control channel is negative, the real-time adjustment of each control channel will be reduced proportionally.
[0170] This adjustment is based on real-time adjustment commands for virtual impedance. , The system also includes real-time output adjustment parameters for each channel (including anchoring, adaptive, event response, and power angle-specific channels). Simultaneously, the system performs four-channel coordinated control on the real-time output parameters of the virtual impedance, calculating and updating the cycle within each cycle of the control system. T s =1 / 20kHz, the real-time adjustment of the virtual impedance is updated and synthesized every 20 cycles, and the real-time parameters of the virtual impedance are updated to finally generate the real-time command values of the virtual resistance Rv and the virtual inductance Lv.
[0171] Step 6: Apply the virtual resistance command value and the virtual inductance command value to the virtual synchronous generator to achieve dynamic decoupling control of active power and reactive power.
[0172] Step 6.1: Apply the virtual resistance command value and virtual inductance command value generated in Step 5 to the virtual impedance control loop of the virtual synchronous generator, adjust the amplitude and phase of the output reference voltage of the virtual synchronous generator, and realize the dynamic decoupling control of active power and reactive power.
[0173] Step 6.2: Calculate the energy coupling coefficient of the system online in real time, as an evaluation index of the decoupling effect;
[0174] Step 6.3: Evaluate the decoupling effect based on the system's energy coupling coefficient. If the energy coupling coefficient remains higher than the set threshold, adjust the multi-channel control parameters to enhance the decoupling capability.
[0175] Based on the aforementioned power decoupling method using port Hamiltonian theory and virtual impedance, a virtual synchronous generator grid-connected model was built in MATLAB / Simulink, and a weak grid scenario (short-circuit ratio of 0.42) was set up. Figure 9 and Figure 10 The paper presents a comparison of the angular frequency response (i.e., w) and active power response (i.e., P) of the virtual synchronous generator under the same grid disturbance, using the traditional adaptive virtual impedance and the port Hamiltonian virtual impedance method proposed in this invention.
[0176] from Figure 9 It can be seen that when using the traditional adaptive virtual impedance, the power angle exhibits significant oscillations after the disturbance. However, when using the method of this invention, the amplitude of the angular frequency oscillation is significantly reduced, the oscillation time is shortened, and the system recovers to a new stable state more quickly.
[0177] from Figure 10 It can be seen that the active power fluctuation under traditional adaptive impedance is large. The method of this invention eliminates the overshoot of active power and has no oscillation, making the power response more stable.
[0178] It should be emphasized that the embodiments described in this invention are illustrative rather than limiting. Therefore, this invention includes, but is not limited to, the embodiments described in the specific implementation. Any other implementations derived by those skilled in the art based on the technical solutions of this invention are also within the scope of protection of this invention.
Claims
1. A power decoupling method based on port Hamiltonian theory and using virtual impedance, characterized in that: Includes the following steps: Step 1: Obtain the basic parameters for controlling the virtual synchronous generator in the microgrid system; Step 2: Establish a port Hamiltonian theoretical model for virtual synchronous generator control based on the basic parameters; The port Hamiltonian model includes: a weight matrix representing the energy distribution of the system and the coupling relationship between each state variable and the state variable; Step 3: Based on the port Hamiltonian theoretical model, calculate the energy coupling coefficient of the virtual synchronous generator control in the microgrid system, quantify the degree of coupling between reactive power and active power in the system, and extract the operating stress index from it. The operating stress is: in, s To comprehensively assess operational stress indicators, δ For the power angle of the virtual synchronous generator, δ max_nomalized This is the normalized reference value for the work angle. P This represents the actual active power. P ref This is a reference value for active power. Q This represents the actual reactive power. Q ref This is a reference value for reactive power. S b This is the system power baseline value; Step 3, calculating the system's energy coupling coefficient, includes the following steps: Step 3.1: Calculate the elements in the weight matrix and divide the matrix into a main diagonal element matrix representing the self-energy of each state variable and an off-diagonal element matrix representing the degree of coupling; Step 3.2: Calculate the self-energy and coupling energy of each state variable of the system, and take the absolute value to ensure non-negativity; Step 3.3: Calculate the proportion of coupled energy in the total energy, which is used as the energy coupling coefficient; Step 4: Based on the extracted operating stress index, adaptively and dynamically adjust the virtual resistance and virtual inductance to construct a multi-channel collaborative control mechanism, including the anchoring control channel, the zero-mean adaptive control channel, the power angle deviation special control channel, and the event response control channel, in order to calculate the adaptive adjustment amount of the virtual impedance. Among them, the anchoring control channel adjusts the steady-state deviation of the virtual resistance and virtual inductance through proportional-integral calculation, so that the virtual impedance returns to the preset steady-state set point; The zero-mean adaptive control channel obtains the second adjustment amount of the virtual resistance based on the deviation between the operating stress index and the target stress through proportional-integral calculation and limiting processing; and obtains the second adjustment amount of the virtual inductance based on the reactive power deviation through proportional-integral calculation and limiting processing. Step 5: The adjustment values obtained from the multi-channel collaborative control mechanism are superimposed, limited, and subjected to anti-saturation processing to generate the final virtual resistance command value and virtual inductance command value. Step 6: Apply the virtual resistance command value and the virtual inductance command value to the virtual synchronous generator to achieve dynamic decoupling control of active power and reactive power.
2. The power decoupling method based on port Hamiltonian theory and using virtual impedance as described in claim 1, characterized in that: The basic parameters in step 1 include power angle deviation, output active power, output reactive power, internal potential, and terminal voltage.
3. The power decoupling method based on port Hamiltonian theory and using virtual impedance as described in claim 1, characterized in that: The port Hamiltonian theoretical model in step 2 includes: a weight matrix representing the energy distribution of the system and the coupling relationship between each state variable and the state variable. ; ; in, x Let H(x) be the state variable, H(x) be the Hamiltonian function, J be an antisymmetric matrix representing the energy flow structure, R be a symmetric positive semi-definite matrix representing the system dissipation, and u and y be the system input and output, respectively. The rate of change of the system state variable over time. The energy port that inputs the active power reference value and reactive power reference value into the system is the driving source of the system.
4. The power decoupling method based on port Hamiltonian theory and using virtual impedance as described in claim 1, characterized in that: The four parallel control channels in step 4 include an anchoring control channel, a zero-mean adaptive control channel, an event response control channel, and a power angle deviation-specific adaptive control channel. When the event response control channel detects that any of the power angle deviation, active power deviation, or terminal voltage deviation exceeds the set threshold, it determines it as a large disturbance event, triggers the pulse-type adjustment of the virtual resistance and virtual inductance, and decays exponentially after the event ends or before the event ends. The difference between the normalized absolute value of the power angle deviation and the expected normalized power angle deviation is calculated in the adaptive control channel for power angle deviation. After proportional-integral operation and limiting, the fourth adjustment amount of virtual resistance and virtual inductance is obtained. The virtual resistance adjustment amount is positively correlated with the difference, and the virtual inductance adjustment amount is negatively correlated with the difference.
5. The power decoupling method based on port Hamiltonian theory and using virtual impedance as described in claim 1, characterized in that: Step 5, the amplitude limiting and anti-saturation treatment, includes the following steps: Step 5.1: Dynamically constrain the single-step change range of the adjustment amount; Step 5.2: Apply asymmetric restrictions to the rate of increase and rate of decrease of the adjustment quantity; Step 5.3: Physically limit the final output value of the adjustment amount; Step 5.4: When the target value of the adjustment amount exceeds the physical range, reduce the adjustment amount proportionally.
6. The power decoupling method based on port Hamiltonian theory and using virtual impedance as described in claim 1, characterized in that: The dynamic decoupling control of active power and reactive power in step 6 includes the following steps: Step 6.1: Apply the virtual resistance command value and virtual inductance command value generated in Step 5 to the virtual impedance control loop of the virtual synchronous generator, adjust the amplitude and phase of the output reference voltage of the virtual synchronous generator, and realize the dynamic decoupling control of active power and reactive power. Step 6.2: Calculate the energy coupling coefficient of the system online in real time, as an evaluation index of the decoupling effect; Step 6.3: Evaluate the decoupling effect based on the system's energy coupling coefficient.