A distributed energy storage control method based on virtual synchronous machine control
Through the virtual synchronous machine and the modified damping link, precise control of the active frequency and reactive voltage of the energy storage device is achieved, solving the problems of closed-loop pole design and voltage quality degradation in the existing technology, and improving the dynamics of the system. Performance and stability.
Patent Information
- Application Number
- CN202210248737.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-14
AI Technical Summary
It is difficult to freely design closed-loop poles in the existing technology, resulting in overshoot problems in active frequency control, and reactive voltage control cannot effectively ensure the stability of the common point voltage during island operation, especially the line voltage loss caused by the increase in output power.
A distributed energy storage control method based on a virtual synchronous machine is used to decouple active and reactive power through virtual inductors, a modified damping link is added to achieve precise control of active frequency, and the inverter switching duty is adjusted through a proportional integral controller To stabilize the reactive voltage and ensure the stability of the common point voltage.
It achieves accurate power distribution and dynamic performance improvement of energy storage devices, avoids voltage quality degradation caused by excessive voltage drops on lines, provides sufficient networking capabilities and inertial support capabilities, and ensures stable operation of the system.
Smart Images

Figure CN114696344B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electrical engineering technology, and in particular relates to a distributed energy storage control method based on virtual synchronous machine control. Background Art
[0002] With the strategic goals of carbon peak and carbon neutrality proposed in recent years, the proportion of renewable energy in my country's energy use has been greatly increased. These new energy sources are mainly distributed power generation, which stores the produced electricity in energy storage devices and then connects it to the local power grid through grid-connected inverters. This places higher demands on the inverter, which must have strong networking capabilities and inertial support capabilities. When operating in a networked manner, it can respond to changes in voltage amplitude and frequency on the grid side. When operating in an isolated island, it can reasonably allocate power according to the droop coefficient and respond to changing loads in a timely manner.
[0003] At present, there are many active frequency control methods proposed, such as basic VSG control and damping winding simulation, but they all have their own unavoidable shortcomings, such as the inability to freely design the damping ratio of the closed-loop poles, the need to use a phase-locked loop to measure the grid frequency for damping winding simulation, and easy overshoot. Therefore, how to design an active frequency control that can freely design closed-loop poles and has no overshoot has become a key issue at present.
[0004] At the same time, for reactive voltage control, a voltage-current dual closed-loop control strategy is currently widely used. However, the control object of this method is the output voltage of the inverter. When operating in an island mode, the voltage loss on the line and the virtual reactance may increase due to the increase in output power, making it impossible to guarantee the amplitude of the common point voltage, and the problem of large common point voltage offset cannot be solved in one control. Summary of the invention
[0005] In view of the above defects and improvement needs of the prior art, the present invention provides a distributed energy storage control method based on virtual synchronous machine control, which aims to accurately distribute the output of multiple energy storage devices while freely designing closed-loop poles to improve the dynamic performance of the system and solve the problem of voltage quality degradation caused by excessive voltage drop on the line and virtual impedance.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] A distributed energy storage control method based on virtual synchronous machine control comprises the following steps:
[0008] Step S1: multiple distributed energy storage devices are connected to the busbar through DC / DC converters and inverters, and virtual inductance is used to decouple active and reactive power, so that the active output of the energy storage device is proportional to the frequency deviation, and the reactive output is proportional to the voltage deviation, so as to realize automatic power distribution of the energy storage device;
[0009] Step S2: For the active frequency control, the grid-connected inverter adopts the control method of the virtual synchronous motor, adds the modified damping link, and designs the control coefficients in the control system according to the required droop coefficient, inertia coefficient and line parameters to achieve accurate non-overshoot control of the active frequency;
[0010] Step S3: For reactive voltage control, the voltage of the common node is calculated according to the voltage and current values of the AC side output port and the known cable parameters, and the reference value of reactive power is obtained by comparing it with the voltage reference value. The duty cycle of the inverter switch tube is changed after the proportional-integral controller, thereby changing the voltage value of the output port.
[0011] Furthermore, step S2 specifically includes:
[0012] Step S2.1: Use the power measurement element to measure the active power and output frequency on the AC side. The active control loop introduces the synchronous motor rotor motion equation and the modified damping link on the basis of the traditional ω-P droop control to realize the control of the virtual synchronous machine. The design of the damping link is as follows:
[0013]
[0014] Among them, P d is the damping power, ω m is the desired angular velocity of the inverter, ω0 is the set value of the angular velocity, ω0=2×π×f0=314rad / s, P out is the output active power, k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integration part;
[0015] The active power control of the system is written as follows:
[0016]
[0017] Step S2.2: Design various control coefficients according to the droop coefficient, inertia coefficient and line parameters required by the system.
[0018] Furthermore, the step S2.2 specifically includes:
[0019] Design the expected inertia constant per unit value M according to the application* and droop coefficient per unit value Calculate the desired virtual inertia J and droop coefficient k p :
[0020]
[0021] Among them, ω0 is the reference value of the system angular frequency, which is ω0=314rad / s, S base is the capacity reference value of the energy storage device;
[0022] Set a reasonable virtual inductance value to decouple PQ without excessively affecting its dynamic response speed. The selection of the virtual inductance value follows:
[0023]
[0024] Among them, V base is the rated voltage at the output, L f is the filter inductance value, L ls is the virtual inductance value, S base is the rated capacity of the inverter;
[0025] Set the desired closed-loop pole values:
[0026] λ3=-10ζω n ,
[0027] Among them, ω n is the undamped natural frequency, ζ is the damping ratio, T sf is the time constant of the filter, λ 3,4 As a non-dominant pole, try to stay away from the dominant pole λ 1,2 ;
[0028] λ 1,2,3,4 Substitute it into the state equation:
[0029]
[0030] After simplification, it becomes:
[0031]
[0032] The characteristic root of the equation is set to λ = [λ1 λ2 λ3 λ4], and the characteristic root arrangement method is as follows: λ3=-10ζω n , λ4<λ3, substitute it into Solve for K x By changing the values of the coefficients in , the characteristic roots can be freely set.
[0033] Furthermore, the matrices in the state equation are as follows:
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041] K x =[k xω k xp k xi ]
[0042] Among them, J sf is the inertia of the system, k p is the droop coefficient of active power, ω0 is the set value of the system angular velocity, and K is the derivative of active power with respect to angle, which is expressed as T fsf is the time constant of the filter, k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integration part;
[0043] Using the Ackerman function, we can solve K in MATLAB. x The value of , where:
[0044] Furthermore, the active power control adds a low-pass filter LPF in the active power measurement part to suppress low-frequency harmonic disturbances. The time constant of the LPF is set to: where ω n is the undamped natural frequency and ζ is the damping ratio.
[0045] Furthermore, the step S3 specifically includes:
[0046] Step S3.1: According to the voltage value V of the AC output port out and current value I out And the known cable parameters R line and X line , calculate the voltage of the common node, the calculation method is as follows:
[0047] V d =V outd -I d R line +I q (X line +X ls )
[0048] V q =V outq -I q R line -I d (X line +X ls )
[0049]
[0050] Among them, V outd 、V outq is the direct-axis and quadrature-axis voltages of the inverter output voltage after dq0 transformation, I d ,I q is the output current I out The direct-axis and quadrature-axis currents after dq0 transformation, R line , X line is the resistance and reactance of the line, V bus is the solved bus voltage;
[0051] Step S3.2: Based on the reactive power setting value Q0 and bus voltage V bus and voltage setting value E0, calculate the reference value Q of reactive power ref :
[0052] Q ref =Q0+K q (E0-V bus )
[0053] Where Q0 is the reactive power setting value, V bus is the bus voltage obtained in step S3.1, E0 is the voltage setting value, K q is the droop coefficient;
[0054] Step S3.3: Set the reference value of reactive power Q ref The actual value of reactive power after filtering By comparison, the duty cycle of the switching signal of the switching tube in the inverter is controlled through a proportional integrator to change the voltage value of the output port, thereby ensuring the stability of the common point voltage and compensating for the voltage loss on the line.
[0055] The modified damping link added in the present invention enables the active frequency control of the entire system to cope with output power changes without overshoot, and the damping ratio of the closed-loop pole of the system can be freely designed. The voltage reactive single-loop control used changes the control object from the output port voltage to the common point voltage, and improves the voltage quality by compensating for line losses. The two links work together to provide sufficient networking capability and inertial support capability for the energy storage device. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A control block diagram of a distributed energy storage control method based on virtual synchronous machine control provided by an embodiment of the present invention;
[0057] Figure 2 An active frequency control block diagram of a distributed energy storage control method based on virtual synchronous machine control is provided for an embodiment of the present invention;
[0058] Figure 3 A reactive voltage control block diagram of a distributed energy storage control method based on virtual synchronous machine control is provided for an embodiment of the present invention;
[0059] Figure 4 is a structural diagram of an electrical circuit according to an embodiment of the present invention;
[0060] Figure 5 It is an active power response diagram after the active power setting value is changed when the embodiment of the present invention is running in the networking mode;
[0061] Figure 6 A reactive power response diagram after a reactive power setting value is changed when the embodiment of the present invention is operated in a networking mode;
[0062] Figure 7 This is a graph showing changes in active power output caused by grid frequency fluctuations when the embodiment of the present invention operates in a networking mode;
[0063] Figure 8 A diagram showing changes in reactive power output caused by grid voltage fluctuations when the embodiment of the present invention is running in a networking mode;
[0064] Fig. 9 The active power of the embodiment of the present invention when operating in a single-machine island mode;
[0065] Fig.10 It is the reactive power of the embodiment of the present invention when operating in the single-machine island mode;
[0066] Fig.11 The frequency of the embodiment of the present invention when operating in a single-machine island mode;
[0067] Fig.12 The active power of the embodiment of the present invention when operating in the dual-machine island mode;
[0068] Fig.13 It is the reactive power of the embodiment of the present invention when operating in the dual-machine island mode;
[0069] Fig.14 It is the frequency of the embodiment of the present invention running in the single-machine island mode. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0071] See also Figure 1-3 The embodiment of the present invention provides a distributed energy storage control method based on virtual synchronous machine control, which is used to solve the power distribution problem between multiple energy storage devices and their response problems when dealing with small disturbances, and realize the precise and stable operation of multiple energy storage devices in grid-connected and islanded states, while solving the problem of closed-loop pole free design and excessive voltage drop on lines and virtual impedance. The method specifically includes the following steps:
[0072] Step S1: multiple distributed energy storage devices are connected to the busbar through DC / DC converters and inverters, and virtual inductance is used to decouple active and reactive power, so that the active output of the energy storage device is proportional to the frequency deviation, and the reactive output is proportional to the voltage deviation, so as to realize automatic power distribution of the energy storage device;
[0073] Step S2: For the active frequency partial control, the grid-connected inverter adopts the control method of the virtual synchronous motor, adds the modified damping link, and designs the control coefficients in the control system according to the required droop coefficient, inertia coefficient and line parameters to achieve accurate overshoot-free control of the active frequency.
[0074] The step S2 specifically includes:
[0075] Step S2.1: Use the power measurement element to measure the active power and output frequency on the AC side. The active control loop introduces the synchronous motor rotor motion equation and the modified damping link based on the traditional ω-P droop control to realize the control of the virtual synchronous machine.
[0076] The design of the damping link is as follows:
[0077]
[0078] Among them, P d is the damping power, ω mis the inverter output angular velocity, ω0 is the desired angular velocity, ω0=2×π×f0=314rad / s, P out is the output active power, k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integration part.
[0079] The damping link added in the ω-P droop control is related to the deviation of the angular velocity of the inverter output from the expected value, the output power, and the self-integral value of the damping link, which respectively realize the effects of increasing the system damping, limiting the large-scale output of instantaneous faults, and eliminating the deviation of the steady-state power distribution caused by damping. Specifically, the first term in the above formula realizes the damping effect in the synchronous motor and improves the stability of the system. The second term in the above formula can play a limiting role when the output of the synchronous motor suddenly increases, thereby protecting the power electronic equipment. The third term in the formula makes the damping term zero after steady state, which does not affect the power distribution and makes the final result more accurate.
[0080] The active power control of the system can be written as follows:
[0081]
[0082] Among them, ω m is the desired angular velocity, ω0 is the set value of the angular velocity, the same as above, J sf is the inertia coefficient of the system, k p is the droop coefficient, P out is the output power. In the transient process, P d Play a role in suppressing the fluctuation of the system's active output. After steady state, due to P d The self-integral term in P d will be reset to zero, thus not affecting the final steady-state power distribution.
[0083] Step S2.2: The process of designing each control coefficient according to the droop coefficient, inertia coefficient and line parameters required by the system is as follows:
[0084] Design the expected inertia constant per unit value M according to the application * and droop coefficient per unit value Calculate the desired virtual inertia J and droop coefficient k p :
[0085]
[0086] Among them, ω0 is the reference value of the system angular frequency, which is ω0=314rad / s, S base It is the capacity reference value of the energy storage device.
[0087] Set a reasonable virtual inductance value to decouple PQ without excessively affecting its dynamic response speed. The selection of the virtual inductance value follows:
[0088]
[0089] Among them, V base is the rated voltage at the output, L f is the filter inductance value, L ls is the virtual inductance value, S base is the rated capacity of the inverter.
[0090] Set the desired closed-loop pole values:
[0091] λ3=-10ζω n ,
[0092] Among them, ω n is the undamped natural frequency, ζ is the damping ratio, T sf is the time constant of the filter, λ 3,4 As a non-dominant pole, try to stay away from the dominant pole λ 1,2 , when it is more than 10 times the real part of the dominant pole, it is considered to have little effect on the response.
[0093] λ 1,2,3,4 Substitute it into the state equation:
[0094]
[0095] After simplification, it becomes:
[0096]
[0097] The characteristic root of the equation is set to λ = [λ1 λ2 λ3 λ4], and the characteristic root arrangement method is as follows: λ3=-10ζω n , λ4<λ3, substitute it into Solve for K x By changing the values of the coefficients in , the characteristic roots can be freely set.
[0098] The matrices in the state equation are as follows:
[0099]
[0100]
[0101]
[0102]
[0103]
[0104]
[0105]
[0106] K x =[k xω k xp k xi ]
[0107] Among them, J sf is the inertia of the system, k p is the droop coefficient of active power, ω0 is the set value of the system angular velocity, and K is the derivative of active power with respect to angle, which is expressed as T fsf is the time constant of the filter, k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integration part.
[0108] Then use the Ackerman function to solve in MATLAB to get K x The value of , where:
[0109] Detection system parameters K x If there is a negative value, the value of the system inertia J is increased. If the value of J is increased K x If all cannot be positive, reduce the filter time constant T sf The value of K is recalculated until K x All values in are positive.
[0110] The transfer function of the active part for small disturbances is:
[0111]
[0112]
[0113] Among them, J sf is the inertia of the system, k p is the droop coefficient of active power, ω0 is the set value of the system angular velocity, and K is the derivative of active power with respect to angle, which is expressed as T fsf is the time constant of the filter. k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integral part. ΔP outis the change in output power, ΔP0 is the change in the specified value of output power, and Δω is the change in output frequency.
[0114] Analysis shows that reducing the value of J can increase the response speed, but it may cause overshoot; T sf The size of T will affect the position of the zero point of the control system. sf This will bring the zero point close to the origin, causing the system to oscillate.
[0115] Step S3: For reactive voltage control, the voltage of the common node is calculated according to the voltage and current values of the AC side output port and the known cable parameters, and the reference value of reactive power is obtained by comparing it with the voltage reference value. The duty cycle of the inverter switch tube is changed after the proportional-integral controller, thereby changing the voltage value of the output port.
[0116] The step S3 specifically includes:
[0117] Step S3.1: According to the voltage value V of the AC output port out and current value I out And the known cable parameters R line and X line , the voltage of the common node is calculated, and the acquisition method is to collect the output current I after the LCL filter inductor out , dq0 is decomposed to obtain the direct axis current I d and the quadrature axis current I q , calculate the voltage drop caused by the reactance and virtual inductance on the line, and then subtract the voltage drop from the output voltage to obtain the voltage V at the common point bus , which is calculated as follows:
[0118] V d =V outd -I d R line +I q (X line +X ls )
[0119] V q =V outq -I q R line -I d (X line +X ls )
[0120]
[0121] Among them, V outd 、V outq is the direct-axis and quadrature-axis voltage of the inverter output voltage after dq0 transformation, I d ,Iq is the output current I out The direct-axis and quadrature-axis currents after dq0 transformation, R line , X line is the resistance and reactance of the line, V bus is the solved bus voltage.
[0122] It can be found that after sampling the voltage of the output port, this method obtains the common point voltage by subtracting the current multiplied by the impedance and virtual reactance on the line. In this way, the control object of multiple inverters is the consistent common point voltage, which overcomes the voltage drop problem caused by the impedance on the line when outputting active and reactive power, and at the same time makes the reactive power distribution based on the bus voltage completely unrelated to the active power.
[0123] Step S3.2: Based on the reactive power setting value Q0 and bus voltage V bus and voltage setting value E0, calculate the reference value Q of reactive power ref :
[0124] Q ref =Q0+K q (E0-V bus )
[0125] Where Q0 is the reactive power setting value, V bus is the bus voltage obtained in step S3.1, E0 is the voltage setting value, K q is the droop coefficient;
[0126] Step S3.3: Set the reference value of reactive power Q ref The actual value of reactive power after filtering In comparison, the duty cycle of the switching signal of the switching tube in the inverter is controlled by the proportional integrator, and the voltage value of the output port is changed, thereby ensuring the stability of the common point voltage and compensating for the voltage loss on the line.
[0127] Figure 4 The figure shows a distributed DC microgrid system with two energy storage systems in parallel. The voltage level of the busbar is 200V, and it contains two energy storage units. The connection method is divergent. The two units have different line parameters. For energy storage device No. 1, the line impedance parameter is: R line =0.25Ω, X line =0.03mH, for energy storage device No. 2, the line impedance parameter is: R line =0.4Ω, X line =0.08mH, the two units have the same droop coefficient. To simplify the design, we believe that the DC / DC converter can be analogized as a constant voltage source with a resistor, which has enough capacity to keep the voltage on the DC side of the inverter stable.
[0128] For the above system, the control goal of the present invention is to accurately distribute the power of the two units in inverse proportion according to the ratio of the droop coefficient while maintaining the quality of the load-side power. After steady state, the load-side voltage amplitude should be about 200V and the frequency should be about 50Hz.
[0129] In the embodiment of the present invention, the control parameters of the active part are as follows: K p =1600,K xω =2000, K xp =1, K xi =30, J sf =0.005, T fsf =0.008; the control parameters of the reactive part are as follows: K q =500, T fq =0.008, the PI parameter of the reactive single loop is K p =0.01, K i =0.25.
[0130] Different working modes have different disturbance quantities. For the interconnected mode, the disturbance quantity is the frequency and voltage on the grid side; for the single-machine island mode, the disturbance quantity is the active power and reactive power required by the load; for the multi-machine parallel mode, the disturbance quantity is also the active power and reactive power required by the load.
[0131] This embodiment was verified in PSCAD. Figure 5 Figure 6 The control effect of the control method of the present invention when changing the specified output power in the networking mode, Figure 7 Figure 8 It is the change of active and reactive power output when disturbance occurs on the grid side. Figure 9-11 The effect of changing the load when the single machine is in island mode. Figure 12-14 The control effect of changing the load when two machines are connected in parallel is analyzed as follows:
[0132] Figure 5 When the active power specified in the networking mode changes, the dynamic response characteristics of the energy storage device show that at t=4s, the expected active power P0 changes from 2kW to 4kW. It can be seen that the actual output active power reaches a new steady state after 0.8s. Figure 6 The dynamic response characteristics of the energy storage device when the specified reactive power changes. At t=6s, the expected reactive power Q0 changes from 0kW to 1kW, and the reactive power reaches a new steady state after 0.4s. This shows that the control strategy mentioned in the embodiment of the present invention can work in the networking mode quickly without overshoot.
[0133] Figure 7The response characteristics of the output active power when the frequency of the grid side changes. At t = 1.2s, the grid frequency changes from 50Hz to 49.95Hz. p =1600. From theoretical analysis, we know that the active power change should be 0.05×2×π×1600=502.65W. It can be observed that the system reaches a new steady state within 0.2s and the output power increases by about 500W, which is consistent with the theory. Figure 8 The output reactive power response characteristics when the voltage amplitude measured by the power grid changes. At t = 2.5s, the phase voltage amplitude of the power grid changes from 200V to 203V, and the droop K q =500 Theoretical analysis shows that the reactive power change should be 3×500=1.5kW. It can be observed that the system reaches a new steady state in 0.2s and the reduced reactive output is 1500W, which is consistent with the theoretical analysis. This shows that the control strategy mentioned in the embodiment of the present invention can follow the grid voltage change.
[0134] Fig. 9 It is the active output change of the energy storage system when it works as a single machine with load. Fig.10 is the reactive output change, Fig.11 is the frequency change of the system. Initially, the load is P out =12.3kW, Q out =6.7kW. At t=2s, the system cuts off R load =5Ω,X load =0.01H load, at t=4s, the system increases R load =10Ω, X load =0.01H load. After two load changes, the system reaches a new steady state within 0.3s and has no overshoot, which indicates that the embodiment of the present invention can quickly and stably operate in the single-machine island mode.
[0135] Fig.12 This is a diagram showing the change in active output caused by load changes when the energy storage system works in parallel with two machines. Fig.13 is the reactive output variation diagram, Fig.14 This is the frequency variation diagram. At t = 2s, the system cuts off R load =5Ω,X load =0.01H load, at t=4s, the system increases R load =10Ω,X load =0.01H, the load changes twice, and the system reaches a steady state within 0.5s without overshoot, indicating that the embodiment of the present invention can respond to load changes stably and quickly when isolated islands are connected in parallel.
[0136] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A distributed energy storage control method based on virtual synchronous machine control, characterized in that: The following steps are involved: Step S1: multiple distributed energy storage devices are connected to the busbar through DC / DC converters and inverters, and virtual inductance is used to decouple active and reactive power, so that the active output of the energy storage device is proportional to the frequency deviation, and the reactive output is proportional to the voltage deviation, so as to realize automatic power distribution of the energy storage device; Step S2: For the active frequency control, the grid-connected inverter adopts the control method of the virtual synchronous motor, adds the modified damping link, and designs the control coefficients in the control system according to the required droop coefficient, inertia coefficient and line parameters to achieve accurate non-overshoot control of the active frequency; Step S3: For reactive voltage control, the voltage of the common node is calculated according to the voltage and current values of the AC output port and the known cable parameters, and the reference value of reactive power is obtained by comparing it with the voltage reference value. The duty cycle of the inverter switch tube is changed through the proportional-integral controller, thereby changing the voltage value of the output port; Step S2 specifically includes: Step S2.1: Use the power measurement element to measure the active power and output frequency on the AC side. The active control loop introduces the synchronous motor rotor motion equation and the modified damping link on the basis of the traditional ω-P droop control to realize the control of the virtual synchronous machine. The design of the damping link is as follows: Among them, P d is the damping power, ω m is the angular velocity expected by the inverter, ω0 is the set value of the angular velocity, ω0=2×π×f0=314rad / s, P out is the output active power, k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integration part; The active power control of the system is written as follows: Step S2.2: Design various control coefficients according to the droop coefficient, inertia coefficient and line parameters required by the system; The step S2.2 specifically includes: Design the expected inertia constant per unit value M according to the application * and droop coefficient per unit value Calculate the desired virtual inertia J and droop coefficient k p : Among them, ω0 is the reference value of the system angular frequency, which is ω0=314rad / s, S base is the capacity reference value of the energy storage device; Set a reasonable virtual inductance value to decouple PQ without excessively affecting its dynamic response speed. The selection of the virtual inductance value follows: Among them, V base is the rated voltage at the output, L f is the filter inductance value, L ls is the virtual inductance value, S base is the rated capacity of the inverter; Set the desired closed-loop pole values: λ3=-10lives n , Among them, ω n is the undamped natural frequency, ζ is the damping ratio, T sf is the time constant of the filter, λ 3,4 As a non-dominant pole, try to stay away from the dominant pole λ 1,2 ; λ 1,2,3,4 Substitute it into the state equation: After simplification, it becomes: The characteristic root of the equation is set to λ = [λ1λ2λ3λ4], and the characteristic root arrangement method is as follows: λ3=-10ζω n , λ4<λ3, substitute it into Solve for K x The values of the coefficients in can realize the free setting of characteristic roots; The matrices in the state equation are as follows: K x =[k xω k xp k xi ] Among them, J sf is the inertia of the system, k p is the droop coefficient of active power, ω0 is the set value of the system angular velocity, and K is the derivative of active power with respect to angle, which is expressed as T fsf is the time constant of the filter, k xw is the coefficient of the angular velocity difference, k xp is the coefficient of the output power part, k xi is the coefficient of the self-integration part; Using the Ackerman function, we can solve K in MATLAB. x The value of , where:
2. The distributed energy storage control method based on virtual synchronous machine control according to claim 1, characterized in that: The active power control adds a low-pass filter LPF to the active power measurement part to suppress low-frequency harmonic disturbances. The time constant of the LPF is set to: where ω n is the undamped natural frequency and ζ is the damping ratio.
3. The distributed energy storage control method based on virtual synchronous machine control according to claim 1 is characterized in that: The step S3 specifically includes: Step S3.1: According to the voltage value V of the AC output port out and current value I out And the known cable parameters R line and X line , calculate the voltage of the common node, the calculation method is as follows: V d =V outd -I d R line +I q (X line +X ls ) V q =V outq -I q R line -I d (X line +X ls ) Among them, V outd 、V outq is the direct-axis and quadrature-axis voltages of the inverter output voltage after dq0 transformation, I d ,I q is the output current I out The direct-axis and quadrature-axis currents after dq0 transformation, R line , X line is the resistance and reactance of the line, V bus is the solved bus voltage; Step S3.2: Based on the reactive power setting value Q0 and bus voltage V bus and voltage setting value E0, calculate the reference value Q of reactive power ref : Q ref =Q0+K q (E0-V bus ) Where Q0 is the reactive power setting value, V bus is the bus voltage obtained in step S3.1, E0 is the voltage setting value, K q is the droop coefficient; Step S3.3: Set the reference value of reactive power Q ref The actual value of reactive power after filtering By comparison, the duty cycle of the switching signal of the switching tube in the inverter is controlled through a proportional integrator to change the voltage value of the output port, thereby ensuring the stability of the common point voltage and compensating for the voltage loss on the line.
