A control method for grid-connected inverter based on virtual synchronous generator
By setting up a switching control module and multiple model groups in the inverter control circuit, the grid-connection phase difference is calculated in real time, and the grid-connection process between the inverter and the power grid is optimized, which solves the insufficient stability of the grid-connection period in the prior art. The problem has achieved more stable grid operation.
Patent Information
- Application Number
- CN202311555779.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-11-21
AI Technical Summary
In the prior art, the inverter control circuit is affected by environmental factors such as closing time at the time of grid connection, and is prone to small impact currents and long-term amplitude fluctuations, resulting in insufficient stability of the power grid during the grid connection period.
Set up a switching control module in the inverter control circuit, and use VSG control based on the disconnection mode between the synchronous machine and the power grid, and use PQ control for the synchronous machine and the power grid connection mode. The grid-to-grid control model of multiple model groups is constructed. , obtain phase and angular velocity in real time, preset the predicted phase difference threshold, calculate the real-time analog phase difference, perform closing and grid-connected simulation based on the predicted phase difference threshold, obtain the optimal grid-connected phase difference, and track the phase difference to the optimal and The grid-connection switching command is issued at the time point of the network phase difference, and the closing action and control mode switching are implemented.
Through simulation results, the optimal grid-connected phase difference is calculated, which reduces the impact current and amplitude fluctuations after grid connection, improves the stability of the power grid during grid connection period, and matches the phase parameters of the inverter control circuit with the power grid, reducing the Current shock and voltage fluctuations during grid connection.
Smart Images

Figure CN117614001B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power electronic smart grid, and in particular to a grid-connected inverter control method based on a virtual synchronous generator. Background Art
[0002] In traditional power systems, synchronous motors are the main source of power generation. When the load of the power grid fluctuates greatly, the frequency fluctuations of the power grid can be suppressed due to the inertia of the synchronous motors. The virtual synchronous generator control is used to give the power grid the inertia and damping characteristics of the synchronous motors, which supports the voltage and frequency of the power grid and improves the anti-interference performance of the inverter circuit. The grid-connected inverter can operate stably in both standalone and grid-connected modes.
[0003] When the virtual synchronous generator is operating alone, the phase and amplitude of the output voltage will have a real-time data difference with the voltage amplitude and phase of the grid voltage after voltage and frequency adjustment. When the real-time data difference is large, the inverter circuit directly switches to the grid-connected mode and is put into grid use, which will cause a large impact current, and may result in switching failure or voltage distortion, affecting the stable operation of the grid and posing a safety hazard.
[0004] To this end, the prior art has a method of setting a phase difference threshold to reduce the impact current generated at the time of grid connection, by subtracting the phase of the inverter circuit from the phase of the grid to obtain a real-time difference, and when the real-time difference is less than the set phase difference threshold, the grid connection operation is performed. Since the grid connection closing requires a certain amount of time, after a period of time, the voltage difference between the grid and the inverter circuit becomes smaller and tends to 0. Therefore, the grid connection can be performed when the voltage of the inverter circuit approaches the grid voltage, reducing the impact current generated by the grid connection when the voltage difference is large. However, in actual application, due to the influence of environmental factors such as the closing time, if it is not properly controlled, a small impact current and a longer amplitude fluctuation will still appear at the time of grid connection, and it cannot be guaranteed that the grid can continue to operate in the optimal stable state at the moment of grid connection, resulting in insufficient stability of the grid during the grid connection period. Summary of the invention
[0005] To this end, the present invention provides a grid-connected inverter control method based on a virtual synchronous generator, which effectively solves the problem that the inverter control circuit in the prior art will still have a small impact current and a longer amplitude fluctuation at the moment of grid connection due to environmental factors such as closing time, resulting in insufficient stability of the power grid during the grid-connected period.
[0006] In order to solve the above technical problems, the present invention specifically provides the following technical solutions: a grid-connected inverter control method based on a virtual synchronous generator, comprising:
[0007] A switching control module is set in the inverter control circuit, and VSG control is adopted based on the disconnection mode of the synchronous machine and the grid, and PQ control is adopted based on the grid connection mode of the synchronous machine and the grid;
[0008] Construct a power grid and inverter equivalent control model containing multiple model groups, sample the inverter control circuit and AC power parameters in the power grid and track them synchronously in the model group;
[0009] Acquire the phase and angular velocity of the simulated power grid and simulated inverter in the model group in real time, preset the predicted phase difference threshold, calculate the real-time simulated phase difference, and perform the closing and grid-connection simulation of different model groups based on the difference between the predicted phase difference threshold and the real-time simulated phase difference;
[0010] Obtain the impact current and amplitude fluctuation of the model group after grid connection, and calculate the optimal grid connection phase difference based on the simulation results;
[0011] Calculate the real-time phase difference between the grid and the inverter in the inverter control circuit, and issue a grid-connected switching instruction at the time point when the real-time phase difference tracks the optimal grid-connected phase difference;
[0012] The closing action and control mode switching are implemented synchronously based on the grid-connected switching instruction.
[0013] Further,
[0014] The structures of the plurality of model groups are identical to each other and are identical to the structure in the inverter control circuit, and the number of the model groups is n+1;
[0015] The structure within the model group tracks the internal circuit operating parameters of the inverter control circuit and the power grid operating parameters.
[0016] Further,
[0017] Real-time acquisition of the phase and angular velocity of the simulated power grid and inverter in the model group, including:
[0018] The simulated phase value and the simulated angular velocity value of the simulated power grid and the simulated inverter in the model group are sampled in real time, or the real-time phase value and the real-time angular velocity value of the output end of the inverter control circuit and the power grid are sampled in real time.
[0019] Further,
[0020] The preset predicted phase difference threshold includes:
[0021] In the model group, the initial time point of the closing action is taken as the starting time point, and the closing time point when the surge current appears is taken as the ending time point to calculate the simulated closing time;
[0022] Calculate the simulated grid closing phase φ1 based on the simulated closing time,
[0023] The simulated inverter closing phase φ2 is calculated based on the simulated closing time.
[0024] Calculate the simulated phase difference φ3, φ3 = |φ1-φ2|;
[0025] (φ3+Δφ) and (φ3-Δφ) are used as predicted phase difference thresholds;
[0026] Among them, ω is the angular velocity difference between the simulated grid and the simulated inverter at the starting time point, t is the simulated closing time, and Δφ≥A / 10, A is the AC amplitude.
[0027] Further,
[0028] The real-time simulated phase difference is calculated, and based on the difference between the predicted phase difference threshold and the real-time simulated phase difference, the switching-on and grid-connected simulation of different model groups is performed with equal difference values;
[0029] Subtract the simulated phase value between the simulated power grid and the simulated inverter to obtain the real-time simulated phase difference;
[0030] Sampling is performed in the range of (φ3-Δφ) to (φ3+Δφ), and phase difference samples Δφ1, Δφ2, ..., Δφ are obtained. n , where, Δφ2-Δφ1=Δφ3-Δφ2=……=Δφ n -Δφ n-1 , Δφ1=φ3-Δφ, Δφ n =φ3+Δφ;
[0031] Let Δφ1, Δφ2,..., Δφ n Assign to each model group in turn;
[0032] In the first model group, when the real-time simulated phase difference reaches Δφ1, the closing action is implemented. In the second model group, when the real-time simulated phase difference reaches Δφ2, the closing action is implemented. ..., in the nth model group, when the real-time simulated phase difference reaches Δφ n When the circuit breaker is in operation, the closing action is implemented.
[0033] Further,
[0034] In the model group, when the closing action is turned on, the control mode is switched on;
[0035] The impact current and amplitude fluctuation after closing the circuit breaker in each model group are collected through the current monitoring element.
[0036] Further,
[0037] The calculating the optimal grid-connected phase difference based on the simulation result includes:
[0038] Obtain the parameter value of the impact current after each model combination is turned on and obtain the current waveform diagram;
[0039] By comparison, the model group with the smallest impact current parameter value and the shortest time for amplitude fluctuation after grid connection in the current waveform diagram is selected, and the phase difference sample value corresponding to the model group is taken as the optimal grid-connected phase difference.
[0040] Further,
[0041] The method of calculating the real-time phase difference between the power grid and the inverter in the inverter control circuit and issuing a grid-connected switching instruction at a time point when the real-time phase difference tracks to the optimal grid-connected phase difference comprises:
[0042] Sampling the real-time phase value and real-time angular velocity value of the inverter control circuit output and the power grid;
[0043] Subtract the real-time phase value between the output end of the inverter control circuit and the power grid to obtain the real-time phase difference;
[0044] When the real-time phase difference reaches the optimal grid-connected phase difference, a grid-connected switching instruction is sent.
[0045] Further,
[0046] Before the real-time phase difference reaches the optimal grid-connected phase difference, the real-time angular velocity value in the inverter control circuit is adjusted so that the real-time phase difference continues to decrease until it reaches the optimal grid-connected phase difference.
[0047] Further,
[0048] The synchronously implementing the closing action and the control mode switching based on the grid-connected switching instruction includes:
[0049] When receiving the grid-connected switching command, the closing action is implemented;
[0050] Start PG control so that PG control and VSG control are carried out simultaneously;
[0051] The current value I1 controlled by VSG and the current value I2 controlled by PG are obtained, and I2 is taken as the final value. The PG control makes I1 gradually change to I2 through current regulation, and then the VSG control is cut off.
[0052] Compared with the prior art, the present invention has the following beneficial effects:
[0053] In the present invention, a predicted phase difference threshold is preset, and a real-time simulated phase difference is calculated. Based on the difference between the predicted phase difference threshold and the real-time simulated phase difference, equal difference values are used to perform closing and grid-connected simulations of different model groups, and the optimal grid-connected phase difference is calculated through the simulation results. The real-time phase difference is tracked to the time point of the optimal grid-connected phase difference to perform grid-connected closing actions and mode switching, so that the inverter control circuit is connected to the grid with the optimal phase parameters, and the parameters with the best grid-connected effect are screened out for grid connection, which effectively reduces the impact current and amplitude fluctuations after grid connection, and improves the stability of the grid during the grid-connected period. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0055] Figure 1 A schematic diagram of the structure of an inverter control circuit and a power grid provided in an embodiment of the present invention;
[0056] Figure 2 is a structural block diagram of a model group and a control terminal in an embodiment of the present invention;
[0057] Figure 3 This is the waveform change diagram of the power grid starting to close at time t1 and connecting to the grid at time t2;
[0058] Figure 4 It is a waveform diagram of the power grid and inverter control circuit;
[0059] Figure 5 This is a waveform change diagram of the simulated power grid in one of the model groups;
[0060] Figure 6 This is a waveform change diagram of the simulated power grid in one of the model groups. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] like Figure 1 As shown, the present invention provides a grid-connected inverter control method based on a virtual synchronous generator, comprising:
[0063] A switching control module is set in the inverter control circuit, and VSG control is adopted based on the disconnection mode of the synchronous machine and the grid, and PQ control is adopted based on the grid connection mode of the synchronous machine and the grid;
[0064] Construct a power grid and inverter equivalent control model containing multiple model groups, sample the inverter control circuit and AC power parameters in the power grid and track them synchronously in the model group;
[0065] Acquire the phase and angular velocity of the simulated power grid and simulated inverter in the model group in real time, preset the predicted phase difference threshold, calculate the real-time simulated phase difference, and perform the closing and grid-connection simulation of different model groups based on the difference between the predicted phase difference threshold and the real-time simulated phase difference;
[0066] Obtain the impact current and amplitude fluctuation of the model group after grid connection, and calculate the optimal grid connection phase difference based on the simulation results;
[0067] Calculate the real-time phase difference between the grid and the inverter in the inverter control circuit, and issue a grid-connected switching instruction at the time point when the real-time phase difference tracks the optimal grid-connected phase difference;
[0068] The closing action and control mode switching are implemented synchronously based on the grid-connected switching instruction.
[0069] Theoretically, when the inverter control circuit voltage and the grid voltage are connected to the grid at the same time, the possibility of impact current is minimal and the grid stability after connection is best. That is to say, at the moment of grid connection, the phase difference between the inverter control circuit and the grid voltage is equal to 0. However, in actual application, there are usually environmental factors. For example, when closing the switch for grid connection, it takes a certain amount of time to close the switch. If the switch is closed when the phase difference between the inverter control circuit and the grid voltage is equal to 0, a period of time has passed between the moment the switch is closed and the start of the closing action. Therefore, at the moment the switch is closed, the condition that the phase difference between the inverter control circuit and the grid voltage is equal to 0 can no longer be met. Accordingly, the grid connection process may not achieve a good stable effect.
[0070] In addition to the closing time, there are additional interference factors, such as changes in other parameters during the closing process, interference from environmental factors, etc., which will cause grid instability at the moment of closing. In addition, due to the influence of these factors, it may not be possible to achieve an optimal grid-connected effect when the phase difference between the inverter control circuit and the grid voltage is equal to 0. Taking the above-mentioned influencing factors into consideration, the present invention directly quotes the design of simulated grid connection, simulates the grid connection situation under different phase difference data, and determines the final grid-connected parameters based on the simulation results.
[0071] In the present invention, a predicted phase difference threshold is preset, and a real-time simulated phase difference is calculated. Based on the difference between the predicted phase difference threshold and the real-time simulated phase difference, equal difference values are used to perform closing and grid-connected simulations of different model groups, and the optimal grid-connected phase difference is calculated through the simulation results. The real-time phase difference is tracked to the time point of the optimal grid-connected phase difference to perform grid-connected closing actions and mode switching, so that the inverter control circuit is connected to the grid with the optimal phase parameters, and the parameters with the best grid-connected effect are screened out for grid connection, which effectively reduces the impact current and amplitude fluctuations after grid connection, and improves the stability of the grid during the grid-connected period.
[0072] The structures of multiple model groups are identical, and are also identical to the structures in the inverter control circuit. The model group is a simulation structure of the inverter control circuit and the power grid. The model group is composed of a simulated power grid and a simulated inverter. The structure within the model group tracks the internal circuit operating parameters of the inverter control circuit and the power grid operating parameters. The overall structural parameters are exactly the same as the parameters of the inverter control circuit and the power grid.
[0073] In the present invention, Figure 2 As shown, the number of model groups is n+1, one of which is used to detect and calculate the simulated closing time, and the remaining n model groups are used to perform simulated actions according to the phase difference samples. The specific process is described in detail below.
[0074] Real-time acquisition of the phase and angular velocity of the simulated power grid and inverter in the model group, including:
[0075] The simulated phase value and the simulated angular velocity value of the simulated power grid and the simulated inverter in the model group are sampled in real time, or the real-time phase value and the real-time angular velocity value of the output end of the inverter control circuit and the power grid are sampled in real time.
[0076] Since the simulated phase value and simulated angular velocity value of the simulated power grid and simulated inverter in the model group track the real-time phase value and real-time angular velocity value of the inverter control circuit output and the power grid in real time, the process of obtaining the phase and angular velocity in real time can be obtained through either the model group or the inverter control circuit. In addition, the process of the above-mentioned model group tracking the inverter control circuit in real time is limited to before closing the switch and connecting to the grid, and the specific parameters after the grid connection are not related.
[0077] The process of presetting the predicted phase difference threshold also needs to be set according to the simulated closing time. The presetting of the predicted phase difference threshold mainly includes:
[0078] In the model group, the initial time point of the closing action is taken as the starting time point, and the closing time point when the surge current appears is taken as the ending time point to calculate the simulated closing time;
[0079] Calculate the simulated grid closing phase φ1 based on the simulated closing time,
[0080] The simulated inverter closing phase φ2 is calculated based on the simulated closing time.
[0081] Calculate the simulated phase difference φ3, φ3 = |φ1-φ2|;
[0082] (φ3+Δφ) and (φ3-Δφ) are used as predicted phase difference thresholds;
[0083] Among them, ω is the angular velocity difference between the simulated grid and the simulated inverter at the starting time point, t is the simulated closing time, and Δφ≥A / 10, A is the AC amplitude.
[0084] like Figure 3 As shown, (with Figure 3 For example), assuming that the initial time point of the closing action is t1, the closing time when the impact current appears is t2, and the simulated closing time (the time used for closing) is the time required from the starting time point to the end time point, that is, t=t2-t1 is the simulated closing time.
[0085] Through the above formula, simulated closing time, real-time angular velocity value and simulated angular velocity value, the simulated grid closing phase φ1 and the simulated inverter closing phase φ2 are calculated, and the simulated phase difference φ3 is calculated. That is to say, when the real-time phase value of the grid is φ1 and the real-time phase value of the output end of the inverter control circuit is φ2, and when the difference between the real-time phase values of the grid and the inverter control circuit is equal to φ3, the closing can begin. If the closing is done at this time point, the moment the gate is just closed is the moment when the real-time phase values of the grid and the inverter control circuit are completely equal.
[0086] The above embodiment uses the difference in phase values corresponding to time points around the time point of starting closing as the predicted phase difference threshold.
[0087] Among them, the limitation of Δφ≥A / 10 is only a reference. Other values can be selected in actual application. However, it is necessary to ensure that the phase difference sample value obtained within the subsequent predicted phase difference threshold range has a certain sampling significance (the impact current is greatly reduced and the power grid tends to be stable).
[0088] like Figure 4 As shown ( Figure 4Taking the example), assuming that the time point corresponding to t4 is the time point when the phase difference between points b and a is just φ3, after the simulated closing time t, it reaches t6. At this time, the real-time phase values of the inverter control circuit and the power grid coincide, and (φ3+Δφ) and (φ3-Δφ) are used as predicted phase difference thresholds, where the phase difference of φ3+Δφ just corresponds to t3, and the phase difference of φ3-Δφ just corresponds to t5. The phase difference between points d and e is φ3+Δφ, and the phase difference between points e and f is φ3-Δφ. In the present invention, sampling is mainly performed between t3 and t5 to obtain phase difference samples.
[0089] Calculate the real-time simulated phase difference, and perform the closing and grid-connection simulation of different model groups based on the difference between the predicted phase difference threshold and the real-time simulated phase difference;
[0090] Subtract the simulated phase value between the simulated power grid and the simulated inverter to obtain the real-time simulated phase difference;
[0091] Sampling is performed in the range of (φ3-Δφ) to (φ3+Δφ), and phase difference samples Δφ1, Δφ2, ..., Δφ are obtained. n , where, Δφ2-Δφ1=Δφ3-Δφ2=……=Δφ n -Δφ n-1 , Δφ1=φ3-Δφ, Δφ n =φ3+Δφ;
[0092] Let Δφ1, Δφ2,..., Δφ n Assign to each model group in turn;
[0093] In the first model group, when the real-time simulated phase difference reaches Δφ1, the closing action is implemented. In the second model group, when the real-time simulated phase difference reaches Δφ2, the closing action is implemented. ..., in the nth model group, when the real-time simulated phase difference reaches Δφ n When the circuit breaker is in operation, the closing action is implemented.
[0094] The phase difference samples are arranged in sequence according to their sizes, and the differences between adjacent phase difference samples are the same, achieving uniform sampling within the range of (φ3-Δφ) to (φ3+Δφ). In addition, sampling with equal time intervals can also be performed within the range of (φ3-Δφ) to (φ3+Δφ). The specific sampling method can be selected at will. In actual application, the more samples are sampled (controlled within a certain range), the more accurate the obtained simulation structure is. Similarly, the more phase difference samples are, the smaller the difference between adjacent phase difference samples becomes.
[0095] by Figure 4For example, the phase difference sample value at the beginning corresponds to the time point t3, and the phase difference sample value at the end corresponds to the time point t5. That is to say, in the first model group, the closing action is implemented at the time point t3, and the corresponding closing time of the gate is before t6. In the nth model group, the closing action is implemented at the time point t5, and the corresponding closing time of the gate is after t6.
[0096] In each model group, when the closing action is started, the control mode is switched on, and the impact current and amplitude fluctuation after closing in each model group are collected through the current monitoring element.
[0097] Calculate the optimal grid-connected phase difference based on the simulation results, including:
[0098] Obtain the parameter value of the impact current after each model combination is turned on and obtain the current waveform diagram;
[0099] By comparison, the model group with the smallest impact current parameter value and the shortest time for amplitude fluctuation after grid connection in the current waveform diagram is selected, and the phase difference sample value corresponding to the model group is taken as the optimal grid-connected phase difference.
[0100] by Figure 5 and Figure 6 For example (taking two phase difference samples as an example, in actual application, at least 5 groups of phase difference samples are taken, and as many phase difference samples as possible are set), Figure 6 The impact current of the Chinese power grid is small and the amplitude fluctuation is small, and it recovers stability in a shorter time. Figure 6 The phase difference sample value corresponding to the model group shown in is taken as the optimal grid-connected phase difference.
[0101] Calculate the real-time phase difference between the grid and the inverter in the inverter control circuit, and issue a grid-connected switching instruction at the time point when the real-time phase difference tracks the optimal grid-connected phase difference, including:
[0102] Sampling the real-time phase value and real-time angular velocity value of the inverter control circuit output and the power grid;
[0103] Subtract the real-time phase value between the output end of the inverter control circuit and the power grid to obtain the real-time phase difference;
[0104] When the real-time phase difference reaches the optimal grid-connected phase difference, a grid-connected switching instruction is sent.
[0105] In the above embodiment, the real-time phase value and real-time angular velocity value of the power grid and the inverter control circuit are mainly obtained through a phase-locked loop. When the real-time phase difference is equal to the optimal grid-connected phase difference, a grid-connected switching instruction is sent to implement the closing and grid-connected action. Before the real-time phase difference reaches the optimal grid-connected phase difference, it is necessary to adjust the real-time angular velocity value in the inverter control circuit so that the real-time phase difference continues to decrease or increase until it reaches the optimal grid-connected phase difference.
[0106] In addition, the closing action and control mode switching are synchronously implemented based on the grid-connected switching instruction, including:
[0107] When receiving the grid-connected switching command, the closing action is implemented;
[0108] Start PG control so that PG control and VSG control are carried out simultaneously;
[0109] The current value I1 controlled by VSG and the current value I2 controlled by PG are obtained, and I2 is taken as the final value. The PG control makes I1 gradually change to I2 through current regulation, and then the VSG control is cut off.
[0110] While implementing the closing action, PG control and VSG control are carried out simultaneously. The current value is smooth during the mode switching process, so that the mode switching in the control circuit can be carried out more smoothly.
[0111] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A grid-connected inverter control method based on a virtual synchronous generator, characterized in that: include: A switching control module is set in the inverter control circuit, and VSG control is adopted based on the disconnection mode of the synchronous machine and the grid, and PQ control is adopted based on the grid connection mode of the synchronous machine and the grid; Construct a power grid and inverter equivalent control model containing multiple model groups, sample the inverter control circuit and AC power parameters in the power grid and track them synchronously in the model group; Acquire the phase and angular velocity of the simulated power grid and simulated inverter in the model group in real time, preset the predicted phase difference threshold, calculate the real-time simulated phase difference, and perform the closing and grid-connection simulation of different model groups based on the difference between the predicted phase difference threshold and the real-time simulated phase difference; Obtain the impact current and amplitude fluctuation of the model group after grid connection, and calculate the optimal grid connection phase difference based on the simulation results; Calculate the real-time phase difference between the grid and the inverter in the inverter control circuit, and issue a grid-connected switching instruction at the time point when the real-time phase difference tracks the optimal grid-connected phase difference; Synchronously implement closing action and control mode switching based on grid-connected switching instructions; The preset predicted phase difference threshold includes: In the model group, the initial time point of the closing action is taken as the starting time point, and the closing time point when the surge current appears is taken as the ending time point to calculate the simulated closing time; Calculate the simulated grid closing phase φ1 based on the simulated closing time, The simulated inverter closing phase φ2 is calculated based on the simulated closing time. Calculate the simulated phase difference φ3, φ3 = |φ1-φ2|; (φ3+Δφ) and (φ3-Δφ) are used as predicted phase difference thresholds; Among them, ω is the angular velocity difference between the simulated grid and the simulated inverter at the starting time point, t is the simulated closing time, and Δφ≥A / 10, A is the AC amplitude.
2. The grid-connected inverter control method based on virtual synchronous generator according to claim 1, characterized in that: The structures of the plurality of model groups are identical to each other and are identical to the structure in the inverter control circuit, and the number of the model groups is n+1; The structure within the model group tracks the internal circuit operating parameters of the inverter control circuit and the power grid operating parameters.
3. The grid-connected inverter control method based on virtual synchronous generator according to claim 2, characterized in that: Real-time acquisition of the phase and angular velocity of the simulated power grid and inverter in the model group, including: The simulated phase value and the simulated angular velocity value of the simulated power grid and the simulated inverter in the model group are sampled in real time, or the real-time phase value and the real-time angular velocity value of the output end of the inverter control circuit and the power grid are sampled in real time.
4. The grid-connected inverter control method based on virtual synchronous generator according to claim 1, characterized in that: The real-time simulated phase difference is calculated, and based on the difference between the predicted phase difference threshold and the real-time simulated phase difference, the switching-on and grid-connected simulation of different model groups is performed with equal difference values; Subtract the simulated phase value between the simulated power grid and the simulated inverter to obtain the real-time simulated phase difference; Sample in the range of (φ3-Δφ)~(φ3+Δφ),get a sample in the range Δφ1、Δφ2、……、Δφ n , where Δφ2-Δφ1=Δφ3-Δφ2=……=Δφ n -Df n-1 ,Δφ1=φ3-Δφ,Δφ n =φ3+Δφ; Let Δφ1, Δφ2,..., Δφ n Assign to each model group in turn; In the first model group, when the real-time simulated phase difference reaches Δφ1, the closing action is implemented. In the second model group, when the real-time simulated phase difference reaches Δφ2, the closing action is implemented. ..., in the nth model group, when the real-time simulated phase difference reaches Δφ n When the circuit breaker is in operation, the closing action is implemented.
5. The grid-connected inverter control method based on virtual synchronous generator according to claim 1, characterized in that: In the model group, when the closing action is turned on, the control mode is switched on; The impact current and amplitude fluctuation after closing the circuit breaker in each model group are collected through the current monitoring element.
6. The grid-connected inverter control method based on virtual synchronous generator according to claim 4, characterized in that: The calculating the optimal grid-connected phase difference based on the simulation result includes: Obtain the parameter value of the impact current after each model combination is turned on and obtain the current waveform diagram; By comparison, the model group with the smallest impact current parameter value and the shortest time for amplitude fluctuation after grid connection in the current waveform diagram is selected, and the phase difference sample value corresponding to the model group is taken as the optimal grid-connected phase difference.
7. The grid-connected inverter control method based on a virtual synchronous generator according to claim 1 or 6, characterized in that: The method of calculating the real-time phase difference between the power grid and the inverter in the inverter control circuit and issuing a grid-connected switching instruction at a time point when the real-time phase difference tracks to the optimal grid-connected phase difference comprises: Sampling the real-time phase value and real-time angular velocity value of the inverter control circuit output and the power grid; Subtract the real-time phase value between the output end of the inverter control circuit and the power grid to obtain the real-time phase difference; When the real-time phase difference reaches the optimal grid-connected phase difference, a grid-connected switching instruction is sent.
8. The grid-connected inverter control method based on virtual synchronous generator according to claim 7, characterized in that: Before the real-time phase difference reaches the optimal grid-connected phase difference, the real-time angular velocity value in the inverter control circuit is adjusted so that the real-time phase difference continues to decrease until it reaches the optimal grid-connected phase difference.
9. The grid-connected inverter control method based on virtual synchronous generator according to claim 1, characterized in that: The synchronously implementing the closing action and the control mode switching based on the grid-connected switching instruction includes: When receiving the grid-connected switching command, the closing action is implemented; Start PG control so that PG control and VSG control are carried out simultaneously; The current value I1 controlled by VSG and the current value I2 controlled by PG are obtained, and I2 is taken as the final value. The PG control makes I1 gradually change to I2 through current regulation, and then the VSG control is cut off.
