Fractional-step simulation method for grid-connected inverter system based on constant admittance switch model
Through the improved EMTP algorithm and small step synthesis calculation, combined with the fractional step size and pre-stored parameter matrix, the problem of virtual power loss and large calculation amount in the constant admittance model in high frequency and large step size simulation is solved, achieving efficient and Accurate electromagnetic transient simulation improves simulation efficiency and accuracy.
Patent Information
- Application Number
- CN202111324797.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-10
AI Technical Summary
The constant admittance model has the problems of virtual power loss and large calculation amount in electromagnetic transient simulation. It is especially difficult to maintain simulation accuracy during high-frequency and large-step simulation, and real-time simulation has high hardware requirements.
The improved EMTP algorithm and small step synthesis (SSS) calculation are used to reduce the transient oscillation and virtual power loss of the switch model through fractional step size and pre-stored parameter matrix, supporting large step size simulation while ensuring simulation accuracy.
It significantly improves the simulation efficiency and accuracy, reduces the amount of calculation and time consumption, reduces the difficulty of realizing real-time simulation, and supports larger simulation scale and performance improvement.
Smart Images

Figure CN114169138B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power system simulation, in particular to a fractional step simulation method of a grid-connected inverter system based on a constant admittance switch model. Background Art
[0002] With the widespread access of power electronic devices such as microgrids, renewable energy generation, and electric vehicles to the power grid, modern power systems tend to be power electronic systems to a certain extent. In this context, electromagnetic transient simulation technology for power electronic systems, represented by grid-connected inverter systems, has become increasingly important and can serve as a powerful supplement to physical experiments. At the same time, real-time simulation has also been widely used in power electronic systems and is an important basis for semi-physical testing and rapid control prototype testing.
[0003] In the electromagnetic transient simulation of the grid-connected inverter system, switch modeling is undoubtedly the key, and generally an average model or a behavioral model can be used. In the behavioral model, R on / R off The binary resistor model is very typical, using a small resistor and a large resistor to simulate the switch in the ON and OFF states respectively. on / R off The model has been widely used due to its accuracy and convenience, especially in simulation tools such as PSCAD / EMTDC. However, with the change of resistance after the switch action, the system admittance matrix needs to be frequently updated in the simulation cycle, which will bring additional calculation burden. The switching frequency is generally in the range of several kHz to several MHz, and the above shortcomings will seriously affect the simulation efficiency. For this reason, in some simulations using R on / R off In offline simulation of the model, interpolation algorithms can be used to accurately locate the switching action moment, so that a larger time step can be used for simulation, which helps to reduce the amount of calculation. However, interpolation algorithms are not very compatible with real-time simulation because it is difficult to keep synchronization with the real world time during the interpolation process.
[0004] With R on / R offDifferent models, the constant admittance model of the power electronic switch uses L / C elements with the same equivalent admittance to represent the switch, thereby avoiding the frequent update of the system admittance matrix after the switch action. Due to the small amount of calculation and high simulation efficiency, the constant admittance model is widely used, especially it has become the mainstream choice of commercial real-time simulators such as RTDS, RT-LAB, ADPSS, etc. However, there are two typical defects in the above constant admittance model. First, when the constant admittance model is used, the transient process of the switch voltage / current after the switch action is very different from that of the ideal switch, which will bring additional virtual power loss and lead to inaccurate simulation results. The virtual power loss of a general switch will increase significantly with the increase of the switching frequency. Affected by this, the constant admittance model can only obtain sufficiently accurate results when the frequency is not higher than 10kHz. Second, the constant admittance model often requires a very small time step (usually less than 2 microseconds) to ensure the simulation accuracy, which undoubtedly increases the amount of calculation per unit time. At present, some technical methods have been proposed to improve the first defect, including setting the optimal L / C model parameters, using the generalized adjoint discrete circuit (G-ADC) model to ensure the optimal damping characteristics of the switch model, or applying initialization techniques to optimize the initial state after the switch action. These methods are helpful to reduce the virtual power loss, but are not suitable for simulations with large time steps. So far, simulation methods suitable for constant admittance models that can support large step sizes (up to tens of microseconds) while maintaining simulation accuracy need further research.
[0005] For the constant admittance model, using a smaller simulation step size can help reduce the virtual power loss and maintain the same on / R off The simulation accuracy of the model is similar to that of the real-time simulation model. However, once a smaller simulation step size is used, the amount of calculation will inevitably increase significantly, and the time required for offline simulation will also be unacceptable; on the other hand, when the constant admittance model is applied in real-time simulation, the use of a smaller time step size will mean that higher requirements will be placed on the simulation hardware equipment to meet real-time requirements. In order to resolve this contradiction, for electromagnetic transient simulation using a constant admittance model, there is an urgent need for a simulation method that can reduce virtual power loss to ensure simulation accuracy while supporting large step size simulation. Summary of the invention
[0006] In order to solve the deficiencies mentioned in the above background technology, the present invention provides a fractional step simulation method (FTSSM) of a grid-connected inverter system based on a constant admittance switch model to improve the simulation efficiency and simulation performance of the grid-connected inverter system. The method is aimed at electromagnetic transient simulation using a constant admittance switch model, based on an improved EMTP algorithm (C-EMTP), and uses small step synthesis (SSS) calculation corresponding to different fractional step sizes for simulation iteration, thereby significantly reducing the transient oscillation and virtual power loss of the switch model, and at the same time, it can also support large step simulation of the system while ensuring the accuracy of the simulation, which is helpful for accelerating offline simulation and improving real-time simulation performance.
[0007] The purpose of the present invention can be achieved through the following technical solutions:
[0008] A fractional step simulation method for a grid-connected inverter system based on a constant admittance switch model is characterized in that the method comprises the following steps:
[0009] 1) Based on the improved electromagnetic transient simulation algorithm, the entire grid-connected inverter system circuit is discretized and modeled. The power electronic switches in the system adopt a constant admittance switch model:
[0010] The constant admittance switch model described above uses a small inductor L sw and a small capacitor C sw To represent the on and off states of the switch, taking the discretization using the backward Euler method as an example, the equivalent admittance of the switch branch in the on and off states is equal, that is:
[0011]
[0012] Where Y sw is the equivalent branch admittance of the switch; L sw , C sw are the equivalent inductance and capacitance when the switch is turned on and off, respectively; Δt is the time step used for discretization;
[0013] At the same time, the virtual power loss of the constant admittance switch model can be approximately expressed as:
[0014]
[0015] In the formula, E loss is the virtual power loss of the switch; V and I are the branch voltage of the switch and the switch current flowing through, respectively;
[0016] For the simulation system using the above constant admittance switch model, the entire system circuit is discretized and modeled based on the following improved electromagnetic transient simulation algorithm framework (given in the form of state space expression):
[0017]
[0018] Where X is the historical current (voltage) source vector; U is the independent power source vector; Y is the vector of observations; the superscripts (k+1) and (k) represent the results of the (k+1) and (k)th simulation steps, respectively; A, B, C, and D are coefficient matrices related to the switch state;
[0019] 2) Based on the small-step synthesis principle and the configuration of the fractional step length, the corresponding parameter matrix is calculated and pre-stored to complete the simulation initialization work:
[0020] The small-step synthesis principle is to combine multiple-step underlying calculations into a single large-step calculation based on the use of small-step system modeling: Consider combining the calculation process in equation (3) above with m steps, and we can get:
[0021]
[0022] In the formula, m is the number of small-step synthesis steps;
[0023] Considering that the time span of small-step synthesis generally lasts only tens of microseconds, it can be approximately assumed that the independent power vector U is a constant between the (k)th to (k+m-1)th simulation steps. At this time, the above formula becomes:
[0024]
[0025] In the formula, A m , B m is the parameter matrix calculated from A and B, which can be calculated as follows:
[0026]
[0027] During the simulation process, a series of small-step synthesis calculations with different fractional step sizes will be performed, and the corresponding number of synthesis steps m will also be different. At this time, the corresponding calculation formula can be uniformly expressed as:
[0028]
[0029] Where i is used to represent a series of different fractional step sizes, i = 0 is the unit simulation step size; Nf is the preset fractional step size order; A f , B f is the parameter matrix calculated by substituting different numbers of small-step synthesis steps (which vary with the fractional step size adopted) according to the above formula (6);
[0030] A f , B fIt is related to the switch state and the synthetic step size used. When the fractional step sequence has been configured (determined by the fractional step order Nf), it can be pre-calculated and pre-stored in the initialization stage, and then directly called to participate in the calculation in the main simulation loop, which helps to reduce the update calculation burden and improve efficiency;
[0031] 3) In a single simulation cycle, all switch states are updated according to the modulation wave signal, and the corresponding operation instructions are obtained in combination with the switch action situation. The switch state vector and interval operation instructions corresponding to each time interval separated by the switch action are recorded to obtain the switch state sequence and interval operation instruction sequence:
[0032] In a single simulation cycle, the traversal is first performed according to the minimum fractional step size. The controller unit generates a modulated wave signal as the simulation time changes, and compares it with the triangular wave carrier signal generated by the signal generator in the comparator to update all switch states. In each step of the traversal, all switch states of the current and previous steps are compared to determine whether there is a switch action. If a switch action occurs, the time length from the last switch action and the current switch state vector are recorded:
[0033] Assuming that n-1 switching actions occur in a single simulation cycle, the unit step is divided into n time intervals. The length of each interval can be calculated using the action interval time ratio coefficient (relative to the unit step Δt u ) is represented by f i , i=1,2,…n; here, f i is a number not greater than 1 in binary representation, which contains 1 integer bit and Nf decimal places (denoted as b0, b1, b2, ... b Nf ), each digit from left to right represents 1, 1 / 2, 1 / 4, ... 1 / 2 Nf (Δt u ), and satisfy:
[0034]
[0035] The switch state vector corresponding to each time interval and the interval operation instruction (i.e., f i The corresponding binary vectors) are stored as vector sequences, i.e., switch state sequences and interval operation instruction sequences, for subsequent further iterative calculations to complete the current simulation cycle;
[0036] 4) Based on the previous step 3), a series of small-step synthesis calculation iterations with different fractional step sizes are performed based on the switch state sequence and interval operation instruction sequence to complete the current cycle:
[0037] In the current simulation cycle, based on the switch state sequence and interval operation instruction sequence obtained in the previous step, the n time intervals separated by the switch actions are updated one by one: for each interval time interval f i (i.e., interval operation instructions represented by binary vectors), and analyze each bit b0, b1, b2, ... b in turn. Nf If the bit is 1, the small step synthesis calculation corresponding to the fractional step length is performed (according to the above formulas (6) and (8), the corresponding parameter matrix A f , B f The value is determined according to the switch state of the current interval and the fractional step length corresponding to the current position, and is added to the calculation result of the previous step. In this way, with the addition of time, the calculation value at the moment of the switch action can be obtained by the corresponding addition calculation, that is, the calculation of this interval is completed. Repeat this process until all intervals are updated, that is, the simulation cycle is completed.
[0038] 5) Return to step 3) and enter the next simulation cycle until the simulation ends.
[0039] The technical effects of the present invention are as follows:
[0040] (1) The fractional step simulation method (FTSSM) provided by the present invention is based on the improved EMTP algorithm (C-EMTP) framework. Compared with the traditional highly serial EMTP process, it can achieve high parallel computing and significantly improve the simulation efficiency. At the same time, the method uses small step synthesis (SSS) calculation for underlying iterative update, which helps to overcome the typical defects of the constant admittance switch model, such as transient oscillation and virtual power loss, and improve the simulation precision and accuracy.
[0041] (2) The fractional step simulation method (FTSSM) provided by the present invention uses a series of fractional steps (relative to the unit step) to cooperate with the small-step synthesis calculation to perform the underlying iterative update, so as to accurately locate the switch action time, so that the system simulation can be carried out at a larger simulation step (up to tens of microseconds), while the simulation accuracy can still be guaranteed. As the supported simulation step increases, on the one hand, the method can significantly reduce the amount of calculation and time spent in offline simulation, and achieve offline simulation acceleration; on the other hand, the method also helps to reduce the difficulty of implementing real-time simulation, making it easier to ensure real-time performance, thereby indirectly supporting a larger simulation scale and achieving improved real-time simulation performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of the algorithm framework of the fractional-step simulation method of the grid-connected inverter system based on the constant admittance switch model;
[0043] Figure 2To obtain the switch state sequence and interval operation instruction sequence flow chart in the simulation main loop;
[0044] Figure 3 It is a schematic diagram of iterative update of small-step synthesis calculation based on a series of fractional step sizes in the simulation main loop;
[0045] Figure 4 This is the topological structure diagram of the grid-connected inverter system;
[0046] Figure 5 The comparison results of switching waveforms using the fractional step simulation method are shown;
[0047] Figure 6 This is a waveform comparison diagram of the simulation results using the fractional step simulation method and PSCAD; DETAILED DESCRIPTION
[0048] The present invention will be further described below in conjunction with the accompanying drawings, but this should not limit the protection scope of the present invention.
[0049] The present invention provides a fractional step simulation method for a grid-connected inverter system based on a constant admittance switch model, and its algorithm framework is as follows: Figure 1 As shown. The figure involves three types of time steps: q Δt is the quantization step size used for discretization of simulation circuits, which is generally in nanoseconds to reduce virtual switching losses. u is the top-level simulation unit step, based on a certain quantization step size Δt q The fractional step size (Δt 1 / 2 ,Δt 1 / 4 ,Δt 1 / 8 ,…), which are 1 / 2, 1 / 4, 1 / 8… of the unit step length respectively, and are used to combine and determine the accurate switching action time. In addition, Nq is defined as the quantization step length order in the figure, 2 Nq That is, it reflects the unit step length Δt u The quantization step length Δt q The number of steps; Nf is defined as the number of fractional steps, Δt u / 2 Nf is the minimum fractional step size, and 2 Nq-Nf That is, it reflects the number of quantization steps contained in the minimum fractional step, and generally Nq≥Nf.
[0050] Depend on Figure 1 The grid-connected inverter system circuit using the constant admittance switch model is discretized based on the improved electromagnetic transient simulation algorithm framework (C-EMTP) and the step size used is the quantized step size Δt q , because Δt qSmall enough to effectively ensure the accuracy of the simulation, but it will also cause the simulation time to be too long. On this basis, the small step synthesis algorithm (SSS) can be applied to support larger simulation steps (such as unit step Δt u ) under simulation, but when Δt u When the time reaches 10μs, it will be difficult to accurately locate the switching action moment, which will affect the simulation accuracy. To this end, the present invention proposes a fractional step simulation method (FTSSM), the core process of which (in the simulation main loop) mainly includes two parts: one is to determine the interval operation instruction sequence represented by a series of fractional steps through pulse signal modulation and comparison to judge the switching action; the other is to complete the iterative update process including a series of small-step synthetic iterative calculations according to the interval operation instruction sequence. It should be pointed out that Figure 1 All parameter matrices can be pre-calculated and pre-stored in the initialization phase before the simulation cycle, which helps improve simulation efficiency.
[0051] The invention discloses a fractional-step simulation method for a grid-connected inverter system based on a constant admittance switch model, which mainly comprises the following steps:
[0052] 1) Based on the improved electromagnetic transient simulation algorithm, the entire grid-connected inverter system circuit is discretized and modeled, and the power electronic switches in the system adopt a constant admittance model:
[0053] The constant admittance switch model described above uses a small inductor L sw and a small capacitor C sw To represent the on and off states of the switch, taking the backward Euler method for discretization as an example, the equivalent admittance of the switch branch in the on and off states is equal, that is,
[0054]
[0055] Where Y sw is the equivalent branch admittance of the switch; L sw , C sw are the equivalent inductance and capacitance when the switch is turned on and off, respectively; Δt is the time step used for discretization;
[0056] At the same time, the virtual power loss of the constant admittance switch model can be approximately expressed as:
[0057]
[0058] In the formula, E loss is the virtual power loss of the switch; V and I are the branch voltage of the switch and the switch current flowing through, respectively;
[0059] The simulation system using the above constant admittance switch model is used to discretize the entire system circuit based on the following improved electromagnetic transient simulation algorithm framework (given in the form of state space expression):
[0060]
[0061] Where X is the historical current (voltage) source vector; U is the independent power source vector; Y is the vector of observations; the superscripts (k+1) and (k) represent the results of the (k+1) and (k)th simulation steps, respectively; A, B, C, and D are coefficient matrices related to the switch state;
[0062] 2) Based on the small-step synthesis principle and the configuration of the fractional step length, the corresponding parameter matrix is calculated and pre-stored to complete the simulation initialization work:
[0063] The small-step synthesis principle is to combine multiple-step underlying calculations into a single large-step calculation based on the use of small-step system modeling. Consider combining the calculation process in equation (3) with m steps, we can get:
[0064]
[0065] In the formula, m is the number of small-step synthesis steps;
[0066] Considering that the time span of small-step synthesis generally lasts only tens of microseconds, it can be approximately assumed that the independent power vector U is a constant between the (k)th to (k+m-1)th simulation steps. At this time, the above formula becomes:
[0067]
[0068] In the formula, A m , B m is the parameter matrix calculated from A and B, which can be calculated as follows:
[0069]
[0070] During the simulation process, a series of small-step synthesis calculations with different fractional step sizes will be performed, and the corresponding number of synthesis steps m will also be different. At this time, the corresponding calculation formula can be uniformly expressed as:
[0071]
[0072] Where i is used to represent a series of different fractional step sizes, i = 0 is the unit simulation step size; Nf is the preset fractional step size order; A f , B f is the parameter matrix calculated by substituting different numbers of small-step synthesis steps (which vary with the fractional step size adopted) according to the above formula (6);
[0073] A f , B f It is related to the switch state and the synthetic step size used. When the fractional step sequence has been configured (determined by the fractional step order Nf), it can be pre-calculated and pre-stored in the initialization stage, and then directly called to participate in the calculation in the main simulation loop, which helps to reduce the update calculation burden and improve efficiency.
[0074] 3) In a single simulation cycle, all switch states are updated according to the modulation wave signal, and the corresponding operation instructions are obtained in combination with the switch action situation. The switch state vector and interval operation instructions corresponding to each time interval separated by the switch action are recorded to obtain the switch state sequence and interval operation instruction sequence:
[0075] The specific process is as follows Figure 2 As shown, in the kth simulation cycle, the switch state sequence L is first initialized S and counter, and then enter the for loop traversal with the minimum fractional step length as the time interval, update the simulation time and count (add 1), the controller unit generates a modulated wave signal as the simulation time changes, and compares it with the triangular wave carrier signal generated by the signal generator in the comparator to update all switch states; in each step of the traversal, all switch states of the current and previous steps are compared to determine whether there is a switch action; if a switch action occurs, the time length from the last switch action (reflected by the count value) and the current switch state vector are recorded;
[0076] Assuming that n switching actions occur in a single simulation cycle, the unit step is divided into several time intervals. The length of each interval can be expressed by the action interval time ratio coefficient (relative to the unit step Δt u ) is represented by f i , i=1,2,…n. Here, f i is a number not greater than 1 in binary representation, which contains 1 integer bit and Nf decimal places (denoted as b0, b1, b2, ... b Nf ), each digit from left to right represents 1, 1 / 2, 1 / 4, ... 1 / 2 Nf (Δt u ), and satisfies
[0077]
[0078] The switch state vector corresponding to this switch action and the interval operation instruction (i.e., f i The corresponding binary vectors) are stored in the vector sequence, and the switch state sequence L is updated. S , interval operation instruction sequence L f, and reinitialize the counter (count cleared); continue traversing and repeat the above process until the traversal time reaches the unit step length Δt u , that is, the for loop traversal ends. It should be noted that the counter is often still counting at this time, so it is necessary to update the interval operation instruction sequence L again. f ; Finally, update the global variables such as system simulation time and switch status register to prepare for the next process, that is, complete the switch state sequence and interval operation instruction sequence acquisition process for further iterative calculations to complete the current simulation cycle;
[0079] 4) Based on the previous step, a series of small-step synthesis calculation iterations with different fractional step sizes are performed based on the switch state sequence and interval operation instruction sequence to complete the current cycle.
[0080] The specific iterative update process is as follows: Figure 3 As shown, in the kth simulation cycle, the time span is [t k ,t k+1 ](t k+1 =t k +Δt u ), assuming that n-1 switching actions are divided into n time intervals, corresponding to the switch state sequence L S There are n groups of switch states, and the time interval length of each interval is proportional to the action interval time coefficient (relative to the unit step length Δt u )f i To represent, also with the interval operation instruction sequence L f The binary vectors in are in one-to-one correspondence.
[0081] In the specific calculation, from the time t k At the beginning, the initial value of the quantity to be calculated is X (k) , for each of the n time intervals separated by the switch action, update the calculation one by one. For each time interval f i (i.e., interval operation instructions represented by binary vectors), and analyze each bit b0, b1, b2, ... b in turn. Nf If the bit is 1, the small step synthesis calculation corresponding to the fractional step length is performed (according to the above formulas (5) and (7), the corresponding parameter matrix A f , B f It is determined according to the switch state of the current interval and the fractional step size corresponding to the current position), and is superimposed on the calculation result of the previous step. In this way, with the superposition of time, the calculated value at the moment of the switch action can be obtained by the corresponding superposition calculation, that is, the calculation of this section of the interval is completed.
[0082] Repeat this process, starting from X (k) Start by calculating the results of each switch action moment Until X (k+1), complete all interval updates, and end the current simulation cycle.
[0083] 5) Return to step 3) and enter the next simulation cycle until the simulation ends.
[0084] The effect of the fractional step simulation method proposed in the present invention is further illustrated by a simulation example. Figure 4 As shown, it includes a DC voltage source, a grid-connected inverter, a filter circuit and an external power grid part. The specific example parameters are shown in Table 1 below.
[0085] Table 1 Simulation example parameters
[0086] System Parameters Numeric <![CDATA[DC voltage source V dc > 800V <![CDATA[Grid voltage V g (L-L, RMS)]]> 380V <![CDATA[System rated frequency f n > 50Hz <![CDATA[Filter circuit inductor L f > 1mH <![CDATA[Filter circuit capacitor C f > 50uF <![CDATA[Line inductance L g > 1mH <![CDATA[Power reference value P ref , Q ref > 4000W,1000Var <![CDATA[PI parameter K p , K i > 1,200
[0087] First, small-step synthesis and fractional step length effects are verified. The experimental results are as follows: Figure 5 As shown, including:
[0088] (1) Unit step length Δt u =0.625μs, Nf=0, using different quantization step sizes Δt q , at this time, no fractional step size is used, and the corresponding switch voltage waveform is as follows Figure 5 As shown in the figure above. For the first case (Nf = 0, Nq = 0, representing traditional simulation), the switch voltage waveform contains an obvious oscillation process, resulting in a larger error than the ideal switch waveform. As the Nq parameter continues to increase, that is, the number of steps of small-step synthesis increases, the oscillation of the switch waveform gradually weakens and becomes closer and closer to the ideal voltage waveform, which means that the use of small-step synthesis can effectively suppress the transient oscillation of the switch and reduce virtual losses.
[0089] (2) Nq = 4, using different unit step sizes Δt u , fractional step order Nf, the corresponding switching voltage waveform is as follows Figure 5 As shown in the figure below. From the results in the figure, if the fractional step size (Nf=0) is not used, when Δt u When the simulation step length Δt is small, the waveform can be guaranteed to be normal and accurate. u When it increases to 10μs, the switching waveform becomes inaccurate because it is difficult to accurately locate the switching action moment. At this time, using a fractional step size (Nf=4, to ensure that the minimum fractional step size is still 0.625μs) can make the switching waveform accurate again. It can be seen that on the basis of small-step synthesis, using a fractional step size to accurately locate the switching action moment is helpful to achieve system simulation under a larger step size, while also ensuring simulation accuracy.
[0090] Then the effectiveness and accuracy of the proposed simulation method are verified. The simulation is performed based on the fractional step simulation method (FTSSM) of the present invention and on PSCAD, and the corresponding simulation results are compared. Here, the inverter adopts the PQ control strategy, and the corresponding control parameters are shown in Table 1 above. The simulation lasts for 0.1s. The FTSSM simulation parameters are: Δt u =10μs, Nq=4, Nf=4, PSCAD simulation step size is 0.625μs. Simulation waveform comparison Figure 6 As shown, it can be seen that the switch voltage waveform, grid-side voltage waveform, grid-side current waveform and output power waveform are basically consistent, which verifies the accuracy of the fractional step simulation method of the present invention when applied to large step size simulation. It also indirectly shows that the simulation method of the present invention can effectively support the accurate simulation of the grid-connected inverter system under large step size, thereby helping to achieve offline simulation acceleration and improve real-time simulation performance.
Claims
1. A fractional-step simulation method for grid-connected inverter system based on constant admittance switch model. It is characterized in that The following steps are involved: 1) Based on the improved electromagnetic transient simulation algorithm, the circuit of the entire grid-connected inverter system is discretized and modeled, and the power electronic switches in the system adopt a constant admittance model; 2) Based on the small-step synthesis principle and the configuration of the fractional step length, the corresponding parameter matrix is calculated and pre-stored to complete the simulation initialization work; 3) In a single simulation cycle, all switch states are updated according to the modulation wave signal, and the corresponding operation instructions are obtained in combination with the switch action situation. The switch state vector and interval operation instructions corresponding to each time interval separated by the switch action are recorded to obtain the switch state sequence and interval operation instruction sequence; 4) Based on step 3), a series of small-step synthesis calculation iterations with different fractional step sizes are performed based on the switch state sequence and the interval operation instruction sequence to complete the current cycle; 5) Return to step 3) and enter the next simulation cycle until the simulation ends; The specific content of the step 1) is: The constant admittance switch model described above uses a small inductor L sw And a small capacitor C sw To represent the on and off states of the switch, taking the discretization using the backward Euler method as an example, the equivalent admittance of the switch branch in the on and off states is equal, that is: Where Y sw is the equivalent branch admittance of the switch; L sw , C sw are the equivalent inductance and capacitance when the switch is turned on and off, respectively; Δt is the time step used for discretization; At the same time, the virtual power loss of the constant admittance switch model is approximately expressed as: In the formula, E loss is the virtual power loss of the switch; V and I are the branch voltage of the switch and the switch current flowing through, respectively; For the simulation system using the above constant admittance switch model, the entire system circuit is discretized and modeled based on the improved electromagnetic transient simulation algorithm framework given in the form of state space expression as follows: Where X is the historical current or voltage source vector; U is the independent power source vector; Y is the vector of observations; the superscripts (k+1) and (k) represent the results of the (k+1) and (k)th simulation steps, respectively; A, B, C, and D are coefficient matrices related to the switch state; The specific content of the step 2) is: The small-step synthesis principle described above combines multiple-step underlying calculations into a single large-step calculation based on the use of small-step lengths for system modeling: Consider combining the calculation process in equation (3) with m steps, and we get: In the formula, m is the number of small-step synthesis steps; Considering that the time span of small-step synthesis generally lasts only tens of microseconds, the independent power vector U is set as a constant between the (k)th to (k+m-1)th simulation steps. At this time, the above formula becomes: In the formula, A m , B m is the parameter matrix calculated from A and B, calculated as follows: During the simulation process, a series of small-step synthesis calculations with different fractional step sizes will be performed, and the corresponding number of synthesis steps m will also be different. At this time, the corresponding calculation formula is uniformly expressed as: Where i is used to represent a series of different fractional step sizes, i = 0 is the unit simulation step size; Nf is the preset fractional step size order; A f , B f is the parameter matrix calculated by substituting different numbers of small-step synthesis steps according to the above formula (6); the number of small-step synthesis steps varies with the adopted fractional step size; A f , B f It is related to the switch state and the synthetic step size adopted. When the fractional step sequence has been configured and is determined by the fractional step order Nf, it is pre-calculated and pre-stored in the initialization stage, and then directly called to participate in the calculation in the main simulation loop, which helps to reduce the update calculation burden and improve efficiency.
2. The fractional step simulation method for a grid-connected inverter system based on a constant admittance switch model according to claim 1, It is characterized in that The specific content of the step 3) is: In a single simulation cycle, the traversal is first performed according to the smallest fractional step size. The controller unit generates a modulated wave signal as the simulation time changes, and compares it with the triangular wave carrier signal generated by the signal generator in the comparator to update all switch states. In each step of the traversal, all switch states of the current and previous steps are compared to determine whether there is a switch action. If a switch action occurs, the time length from the last switch action and the current switch state vector are recorded. Assuming that n-1 switch actions occur in a single simulation cycle, the unit step is divided into n time intervals, and the time length of each interval is proportional to the unit step Δt using the action interval time ratio coefficient. u To represent, defined as f i , i=1,2,…n. Here, f i is a binary number not greater than 1, which contains 1 integer bit and Nf decimal places, denoted by b 0 ,b 1 ,b 2 ,…b Nf , from left to right, each digit represents 1, 1 / 2, 1 / 4, ... 1 / 2 Nf , where the unit is Δt u , and satisfy: The switch state vector corresponding to each time interval and the interval operation instruction f i The corresponding binary vectors are stored as vector sequences, which are switch state sequences and interval operation instruction sequences, for subsequent further iterative calculations to complete the current simulation cycle.
3. The fractional step simulation method for a grid-connected inverter system based on a constant admittance switch model according to claim 1, It is characterized in that The specific content of the step 4) is: In the current simulation cycle, based on the switch state sequence and interval operation instruction sequence obtained in the previous step 3), the n time intervals separated by the switch actions are updated one by one: for each interval time interval f i For interval operation instructions represented by binary vectors, analyze each bit b in turn 0 ,b 1 ,b 2 ,…b Nf If the bit is 1, the small step synthesis calculation corresponding to the fractional step length is performed according to the above formulas (5) and (7). The corresponding parameter matrix A f , B f It is determined according to the switch state of the current interval and the fractional step size corresponding to the current position, and superimposed on the calculation result of the previous step. In this way, with the superposition of time, the corresponding superposition calculation obtains the calculated value at the moment of the switch action, and the calculation of this interval is completed; repeat this process until the update of all intervals is completed and the simulation cycle is completed.
