Simulation method and simulator of T-type three-level converter energy storage system

Through the state space method and the harmonic state space method, Fourier transform is used to convert the time domain equation of the T-type three-level converter into the harmonic domain equation, and the simulation of the T-type three-level converter energy storage system is solved. It solves the problem of low efficiency and achieves large simulation step size and efficient simulation, which is suitable for FPGA real-time simulation.

CN118569178APending Publication Date: 2024-08-30STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410584100.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The simulation efficiency of the T-shaped three-level converter energy storage system is low, limited by the large number of components and complex topology. The traditional electromagnetic transient simulation method has an efficiency bottleneck in the simulation step size.

Method used

The state space method and the harmonic state space method are used to construct a time domain model through switching functions. Fourier transform is used to convert the time domain equations into harmonic domain equations. Analytical expressions are used to calculate the waveforms of each state variable to avoid complex interpolation. The calculation process realizes electromagnetic transient simulation with large simulation step size.

Benefits of technology

Without losing calculation accuracy, the simulation efficiency of the T-type three-level converter energy storage system is significantly improved, which is suitable for FPGA real-time simulation and achieves efficient simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569178A
    Figure CN118569178A
Patent Text Reader

Abstract

The invention discloses a simulation method and simulator for an electromagnetic transient state of a T-type three-level converter energy storage system. The method comprises the following steps: establishing a state space model of a T-type three-level converter; converting into a harmonic domain model; a storage battery system model is established, a corresponding parameter matrix is calculated and pre-stored, and simulation initialization work is completed; in a single simulation cycle, the electric quantity and voltage of the storage battery are updated, the direct-current voltage of the T-type three-level converter is calculated, Fourier coefficients of all orders of a switching function are calculated, corresponding matrix elements are updated, and the input quantity of the system is updated; calculating the value of each harmonic component of the system at the next moment; converting the value of each harmonic component of the system into an instantaneous value of a corresponding state quantity, and recording the instantaneous value; returning to finish the current circulation; and storing. And circularly executing until the simulation is finished. According to the method, the simulation step length can be increased on the premise that the calculation precision is not lost, and the overall simulation efficiency of the T-type converter energy storage system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of power system computer simulation, in particular to an electromagnetic transient simulation method for a T-type three-level converter energy storage system. Background Art

[0002] With the large-scale promotion of new energy represented by wind power and solar energy, a large number of power electronic equipment are connected to the power grid. Among them, two-level three-phase converters have become the mainstream grid-connected converters after decades of development. However, with the development of the times and society, the requirements for converter output power density are constantly increasing. The three-level converter has been valued by the industry for its advantages such as strong voltage resistance, low switching loss, and smoother output waveform. With the continuous development of related technologies, three-level converters have begun to be used in battery energy storage systems and other occasions with high requirements for output power density.

[0003] The simulation analysis of three-level energy storage system is the basis for designing and verifying its control strategy and fault protection strategy. However, the three-level converter has many components and complex topology, which restricts the improvement of its simulation efficiency.

[0004] Patent document CN112597730A discloses a T-type three-level converter simulation method. When the traditional electromagnetic transient simulation method is applied to multiple parallel T-type three-level converters, the increase in the number of iterative calculations caused by synchronous switching events leads to efficiency problems. A switch state judgment method is proposed to replace the iterative method for solving and improve the simulation efficiency. However, the method proposed in the patent only optimizes the calculation process of the switching events of the T-type three-level converter, and the circuit solution still adopts the form of Norton equivalent circuit, and the simulation efficiency is still restricted by the simulation step size. Summary of the invention

[0005] The purpose of the present invention is to solve the simulation efficiency problem of a T-type three-level converter energy storage system, and propose a simulation method and a simulator for a T-type three-level converter energy storage system. The method has a large simulation step and high simulation efficiency, and is an electromagnetic transient simulation method for a T-type three-level converter energy storage system suitable for FPGA real-time simulation.

[0006] To achieve the above object, the technical solution of the present invention is as follows:

[0007] A method for simulating electromagnetic transient state of a T-type three-level converter energy storage system is characterized in that it comprises the following steps:

[0008] 1) Using the switching function to construct a state space model of a T-type three-level converter in the time domain; the state space model includes: the voltage u of each phase filter capacitor cx , grid-side current of each phase i gx , each phase port current i ox, capacitor differential mode voltage u dm , each phase port voltage u ox 、Voltage of filter capacitors of each phase u ox And each phase grid side voltage u gx A total of 10 state variables; each phase bridge arm switch signal s x (t), each phase neutral point switch signal, DC voltage, each phase grid side voltage, a total of 10 input signals; capacitor C1, C2 voltage u c1 、u c2 and current i c1 、i c2 ; Battery current, grid-side current of each phase, a total of 4 output signals;

[0009] The state equation of the T-type three-level converter is:

[0010]

[0011] In the formula, The meaning is n x (t) is the neutral point switch signal of each phase, s x (t) is the switching signal of each phase bridge arm, u c1 、u c2 and i c1 、i c2 are the voltage and current of capacitors C1 and C2 respectively, u dm is the capacitor differential mode voltage, i dm is the capacitor differential mode current; L 1f and L 2f , C f are filter inductor and filter capacitor respectively; u ox 、u cx 、u gx are the port voltage of each phase, the filter capacitor voltage of each phase and the grid side voltage of each phase respectively; i ox 、i gx They are the port current of each phase and the grid-side current of each phase respectively;

[0012] 2) Using the harmonic state space method, according to the state equation of the T-type three-level converter, the harmonic domain equation of the T-type three-level converter is established:

[0013]

[0014] In the formula, signal x h (t), r h They are infinite-dimensional vectors composed of the harmonic components of the state quantity and the system input quantity, and the harmonics are truncated according to the research needs and taken in finite order;

[0015] x h (t)=[…,x-k ,…,x0,…,x k ,…] T (twenty three)

[0016] r h =[…,r -k ,…,r0,…,r k ,…] T (twenty four)

[0017] H=A T -Q, A T It is the Toeplitz matrix obtained by Fourier series decomposition of the system in the state equation, which is used for convolution operation. Its specific form is:

[0018]

[0019] Q is a diagonal matrix of response frequency information, which is as follows:

[0020] Q=diag(…,-jkω1I,…,O,…,jkω1I,…) (26)

[0021] In the formula, I represents the unit matrix, O represents the zero matrix, and ω1 is the fundamental angular frequency of the system;

[0022] The steady-state solution of the system corresponding to the harmonic domain equation is x h (t ∞ )=-H -1 r h If you want to obtain the solution of the equation in an unsteady state, replace x h As a dynamic phasor that changes with time, within a sufficiently small time period, that is, within a simulation step length Δt, H,r h All are regarded as constants, and the corresponding solution of the first-order linear differential equation system (3) is:

[0023]

[0024] In the formula, e H is the matrix exponential function, x h (t0) is x h (t) value at time t0;

[0025] 3) T-type three-level converter system simulation initialization, as follows:

[0026] 3.1) Initialization of T-type three-level converter system:

[0027] Set the maximum harmonic order h for simulation max , System A T The specific form of each sub-matrix in can be obtained by Fourier decomposition of the system matrix in the time domain equation:

[0028]

[0029]

[0030] In the formula, except Except for , the remaining matrix elements are constants and can be pre-stored to improve efficiency;

[0031] System input r h The sub-vectors of are obtained by Fourier decomposition of the system input in the equation, and the specific form of the sub-vectors is:

[0032]

[0033] In the formula, * indicates taking conjugate, and the specific form of the sub-vectors of the remaining components is:

[0034]

[0035] 3.2) Initialization of the battery system:

[0036] The general equivalent circuit model of a battery uses a controllable voltage source V b Add internal resistance R b The model of the controllable voltage source is:

[0037]

[0038] In the formula, the characteristic parameters A, B, K are as follows:

[0039]

[0040] 3.3) Initialization of basic simulation parameters:

[0041] Set the simulation duration to Tmax and the simulation step to Δt;

[0042] 4) System update

[0043] The simulation starts at time T = 0. The system update process includes three parts: the update of battery power and voltage, the update of system modulation, and the update of system input;

[0044] Assume that the simulation has completed the calculation at the i-1th moment, and the value of each harmonic component of the system is x i-1 , the simulation proceeds to the i-th moment;

[0045] 4.1) The battery power and voltage are updated as follows:

[0046] Q i =Q i-1 -idci-1 Δt (34)

[0047] QD i =Qd i-1 +idc i-1 Δt (35)

[0048] In the formula, Q i is the battery power at the current moment, Q i -1 is the battery power at the last moment, Qd i Qd is the cumulative discharge capacity of the battery at the current moment. i-1 is the cumulative discharge of the battery at the last moment, idc i-1 is the discharge current of the battery at the previous moment. Then, the characteristic parameter K at the current moment is calculated according to the following formula: i

[0049]

[0050] and battery voltage

[0051]

[0052] Where, Vb i is the battery voltage at the current moment, Vb i-1 is the battery voltage at the previous moment, then the input DC voltage of the T-type three-level converter is: U dci =k dc (Vb i -R b ·idc i-1 ), k dc is the step-up ratio of the DC-DC converter, which is a constant;

[0053] 4.2) Update of system modulation and input quantity:

[0054] The three-level converter control system gives T i-1 to T i The modulation function n(t) of the time period is used to calculate the Fourier coefficients n0, n1, ..., n of each order of the modulation quantity using the Fourier decomposition formula (59). k , and update the sub-matrices A0, A1, ..., A k The value of the corresponding element in the system matrix H at the i-th moment is obtained i .

[0055]

[0056] The three-level converter control system gives T i-1 to T iThe switching function s(t) of the time period, and the Fourier coefficients s0, s1, …, s of each order of the modulation amount are calculated by using the Fourier decomposition formula (60). k Meanwhile, the DC-side voltage U dci , the AC-side voltage u gx1 and the corresponding sub-vectors r0, r1, …, r k are updated, and the system input quantity r hi

[0057]

[0058] 5) Calculation link:

[0059] Based on the step response analytical formula (48) The system steady-state value at the i-th moment is calculated After that, the values of each harmonic component of the system at the i-th moment are calculated according to the following formula

[0060] 6) Data recording link:

[0061] The instantaneous values of each state quantity are calculated and stored, and the formula is as follows:

[0062]

[0063] In the formula, x i is the instantaneous value of each state quantity of the converter, ω1 is the fundamental angular frequency, T is the current simulation time, and Re represents taking the real part;

[0064] 10) When i < Tmax, let i = T + Δt, and return to step 4); when i > Tmax, go to the next step;

[0065] 8) The simulation ends.

[0066] Preferably, the simulator is an offline simulator, developed based on ADPSS, and the kernel of the offline simulator is an Intel processor.

[0067] Preferably, the simulator is a real-time simulator, developed based on LabVIEW, arranged under the NI-PXI system, and the kernel of the real-time simulator uses FPGA.

[0068] Compared with the prior art, the beneficial effects of the present invention are:

[0069] The T-type converter and its filter are taken as a whole, and equivalent modeling is performed using the state space method and the harmonic state space method. Compared with the traditional electromagnetic transient method in the form of Norton equivalent circuit, the present invention avoids the complex interpolation calculation process caused by the switching event, extracts the main harmonic components in the switching signal through Fourier transform, substitutes them into the parameter matrix of the harmonic domain equation, and uses the analytical expression to calculate and solve the waveform of each state variable. Since the analytical expression itself is the exact solution of the established harmonic domain equation, the simulation method of the present invention has the advantage of being able to increase the simulation step size without losing the calculation accuracy, thereby improving the overall simulation efficiency of the T-type converter energy storage system.

[0070] Compared with patent CN112597730A, the present invention performs equivalent modeling on a T-type three-level converter energy storage system instead of a T-type three-level converter topology. In addition to the T-type three-level converter, the system also includes a battery system and an LCL filter. The present invention adopts a state space method to model the T-type three-level converter, represents the switching events of the converter with a switching function, and obtains the harmonic components of the switching function through Fourier transform. The simulation accuracy of the proposed T-type three-level converter harmonic domain analytical model is not restricted by the simulation step size, so that a large step size can be used for simulation, thereby achieving high-efficiency simulation of the T-type three-level converter energy storage system. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is a circuit topology diagram of a T-type three-level converter energy storage system.

[0072] Figure 2 It is the single-phase topology and IGBT switching situation of T-type three-level converter.

[0073] Figure 3 It is the equivalent circuit topology of a T-type three-level converter.

[0074] Figure 4 It is the equivalent circuit model of the battery.

[0075] Figure 5 It is the discharge curve of the battery.

[0076] Figure 6 It is a flow chart of the electromagnetic transient simulation method of the T-type three-level converter energy storage system of the present invention.

[0077] Figure 7 It is a schematic diagram of the electromagnetic transient offline simulation waveform of the T-type three-level converter energy storage system of the present invention, wherein a is the grid-side voltage of phase a, b is the grid-side current of phase a, c is the DC voltage at the energy storage battery port, and d is the active power and reactive power output by the converter.

[0078] Figure 8It is a schematic diagram of the electromagnetic transient real-time simulation waveform of the T-type three-level converter energy storage system of the present invention, wherein a is the three-phase grid-side voltage, b is the three-phase grid-side current, c is the battery voltage and current and the converter DC side voltage, and d is the converter output active power and reactive power.

[0079] Fig. 9 The software / hardware architecture diagram of the real-time simulation platform adopted in the embodiment. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0081] The T-type three-level converter is converted to the harmonic domain space for solution, including the following steps:

[0082] 1) Establish the switching function model of T-type three-level converter

[0083] Consider Figure 1 The circuit topology of the T-type three-level converter energy storage system of the present invention is a typical two-stage structure, namely, a bidirectional DC / DC converter at the front stage and a T-type three-level three-phase converter at the back stage. Its working principle is: when the battery pack is discharged, the DC power in the battery pack is boosted by the DC / DC converter and supplied to the T-type three-level converter, which is then inverted into AC power by the converter and then supplied to the power grid; when the battery pack is charged, the AC power of the power grid is rectified by the T-type three-level converter, converted into DC power and then enters the DC / DC converter, which steps down the DC voltage and charges the battery pack.

[0084] The single-phase topology and IGBT switching of the T-type three-level converter are as follows: Figure 2 As shown. TA1~TA4 are devices, C1 and C2 are intermediate support capacitors. The converter has three working modes in steady state operation, corresponding to the three switching states of P, O, and N. The working state of each phase bridge arm of the T-type three-level converter can be expressed by the following switching function:

[0085]

[0086] In the above formula, x represents any phase among a, b, and c.

[0087] When the battery capacity is large enough, the battery voltage V b It remains relatively stable within the millisecond time scale, so the voltage on the DC side of the converter can be regarded as a constant value U dc, then the equivalent circuit topology of the T-type three-level converter is as follows Figure 3 As shown in the figure, point o is the reference node, and point u c1 、u c2 and i c1 、i c2 are the voltage and current of capacitors C1 and C2 respectively, u dm is the capacitor differential mode voltage, i dm is the capacitor differential mode current; L 1f and L 2f , C f are filter inductor and filter capacitor respectively; u ox 、u cx 、u gx are the port voltage of each phase, the filter capacitor voltage of each phase and the grid side voltage of each phase respectively; i ox 、i gx They are the port current of each phase and the grid-side current of each phase respectively.

[0088] Then the state equation of the T-type three-level converter is:

[0089]

[0090] In the formula, The meaning is n x (t) is the neutral point switch signal of each phase, s x (t) is the switching signal of each phase bridge arm, u c1 、u c2 and i c1 、i c2 are the voltage and current of capacitors C1 and C2 respectively, u dm is the capacitor differential mode voltage, i dm is the capacitor differential mode current; L 1f and L 2f , C f are filter inductor and filter capacitor respectively; u ox 、u cx 、u gx are the port voltage of each phase, the filter capacitor voltage of each phase and the grid side voltage of each phase respectively; i ox 、i gx They are the port current of each phase and the grid-side current of each phase respectively.

[0091] 2) Harmonic domain model of T-type three-level converter

[0092] Since n in the equation x (t), s x (t),u gx(t) is a periodic time variable, which makes the equation difficult to solve. The time domain equation can be transformed into a harmonic domain equation by using the harmonic state space method to normalize the equation parameters. Based on the time domain equation (42), the harmonic domain equation of the T-type three-level converter is established, which is in the form of:

[0093]

[0094] Among them, the signal x h (t), r h They are infinite-dimensional vectors composed of the harmonic components of the state quantity and the system input quantity. In practical applications, the harmonics are truncated according to the research needs and a finite number is taken;

[0095] x h (t)=[…,x -k ,…,x0,…,x k ,…] T (44)

[0096] r h =[…,r -k ,…,r0,…,r k ,…] T (45)

[0097] H=A T -Q, A T It is the Toeplitz matrix obtained by Fourier series decomposition of the system in the state equation, which is used for convolution operation. Its specific form is:

[0098]

[0099] Q is a diagonal matrix of response frequency information, which is as follows:

[0100] Q=diag(…,-jkω1I,…,O,…,jkω1I,…) (47)

[0101] In the formula, I represents the unit matrix, O represents the zero matrix, and ω1 is the fundamental angular frequency of the system;

[0102] The steady-state solution of the system corresponding to the harmonic domain equation is x h (t ∞ )=-H -1 r h If you want to obtain the solution of the equation in an unsteady state, replace x h As a dynamic phasor that changes with time, within a sufficiently small time period, that is, within a simulation step length Δt, H,r h can all be regarded as constants, and the corresponding solutions to the first-order linear differential equations are:

[0103]

[0104] In the formula, e H is the matrix exponential function, x h (t0) is x h (t) value at time t0;

[0105] The harmonic domain model constructed in step 2 is applied to the simulation of the T-type three-level converter energy storage system, including the following steps:

[0106] 3) The system initialization process includes the following steps:

[0107] (1) Initialization of T-type three-level converter system

[0108] Based on the harmonic domain equation (43), the T-type three-level converter system is initialized and the maximum harmonic order h of the simulation is set. max , System A T The specific form of each sub-matrix in can be obtained by Fourier decomposition of the system matrix in the time domain equation (42):

[0109]

[0110]

[0111] In the formula, except Except for , the remaining matrix elements are constants and can be pre-stored to improve efficiency. The calculation method of is shown in formula (59) in step 4).

[0112] System input r h The sub-vector of can be obtained by Fourier decomposition of the system input in the equation. Since the grid-side voltage usually only contains the fundamental component, the specific form of its sub-vector is:

[0113]

[0114] In the formula, * means taking conjugate. The specific form of the sub-vectors of the remaining components is:

[0115]

[0116] (2) Initialization of the battery system:

[0117] Use Figure 4 The general equivalent circuit model of the battery shown uses a controllable voltage source V b Add internal resistance R b The model of the controllable voltage source is:

[0118]

[0119] Its parameter calibration is mainly obtained through experiments. The experiment first obtains Figure 5 The discharge curve is shown in the figure. There are three nominal points in the curve that need to be obtained. The first one is the fully charged voltage V full , the end point of the exponential region (V exp ,Q exp ), rated point (V nom ,Q nom ). The characteristic parameters A, B, and K in the above formula (53) can be obtained through the three points obtained. The specific solution formula is as follows:

[0120]

[0121] (3) Initialization of basic simulation parameters:

[0122] Set the simulation duration to Tmax and the simulation step size to Δt;

[0123] 4) System update

[0124] The simulation starts at time T = 0. The system update process includes three parts: battery power and voltage update, system modulation update, and system input update. Assume that the simulation has completed the calculation at time i-1, and the value of each harmonic component of the system is x i-1 , the simulation proceeds to the i-th moment;

[0125] (1) The battery power and voltage are updated as follows:

[0126] Q i =Q i-1 -idc i-1 Δt (55)

[0127] QD i =Qd i-1 +idc i-1 Δt (56)

[0128] In the formula, Q i is the battery power at the current moment, Q i -1 is the battery power at the last moment, Qd i Qd is the cumulative discharge capacity of the battery at the current moment. i-1 is the cumulative discharge of the battery at the last moment, idc i-1 is the discharge current of the battery at the previous moment. Then, the characteristic parameter K at the current moment is calculated according to the following formula: i

[0129]

[0130] and battery voltage

[0131]

[0132] Where, Vb i is the battery voltage at the current moment, Vb i-1 is the battery voltage at the previous moment, then the input DC voltage of the T-type three-level converter is: U dci =k dc (Vb i -R b ·idc i-1 ), k dc is the step-up ratio of the DC-DC converter and is a constant.

[0133] (2) Update of system modulation and input

[0134] The three-level converter control system gives T i-1 to T i The modulation function n(t) of the time period is used to calculate the Fourier coefficients n0, n1, ..., n of each order of the modulation quantity using the Fourier decomposition formula (59). k , and update the sub-matrices A0, A1, ..., A k The value of the corresponding element in the system matrix H at the i-th moment is obtained i .

[0135]

[0136] The three-level converter control system gives T i-1 to T i The switching function s(t) of the time period is used to calculate the Fourier coefficients s0, s1, ..., s of each order of the modulation quantity using the Fourier decomposition formula (60). k , and update the DC side voltage U dci , AC side voltage u gx1 and the corresponding subvectors r0, r1, ..., r k The value of the system input r at the i-th moment is obtained hi .

[0137]

[0138] 5) Calculation

[0139] Based on the step response analytical formula (48) Calculate the steady-state value of the system at time i Then calculate the value of each harmonic component of the system at time i as follows:

[0140] 6) Data recording:

[0141] The instantaneous value of each state quantity is calculated and stored according to formula (21):

[0142]

[0143] Wherein, x i is the instantaneous value of each state quantity of the converter, ω1 is the fundamental angular frequency, T is the current simulation time, and Re represents taking the real part;

[0144] 11) When i < Tmax, let i = T + Δt, and return to step 4); when i > Tmax, go to the next step;

[0145] 8) The simulation ends.

[0146] Another object of the present invention is to provide an electromagnetic transient simulator for a T-type three-level converter energy storage system with a large simulation step size, improved simulation efficiency, and suitable for FPGA real-time simulation.

[0147] To achieve the above-mentioned another object, the technical solution adopted by the present invention is an electromagnetic transient simulator for a T-type three-level converter energy storage system, which is used to execute the electromagnetic transient simulation method of the T-type three-level converter energy storage system described above.

[0148] Embodiment

[0149] This embodiment realizes a simulator suitable for electromagnetic transient simulation of a T-type three-level converter energy storage system. This embodiment can be applied to the electromagnetic transient off-line simulation and real-time simulation of a T-type three-level converter energy storage system, which can not only increase the simulation step size and improve the simulation efficiency, but also be more suitable for real-time simulation implementation based on FPGA compared with the traditional equivalent modeling method.

[0150] To fully demonstrate the performance of the simulator in this embodiment, the implementation effect of the simulator in this embodiment will be further elaborated below by taking the T-type three-level converter energy storage system with the parameters shown in Table 1 as an example, but the protection scope of the simulator in the embodiment of the present invention should not be limited thereby.

[0151] Table 1 Simulation parameters of T-type three-level converter energy storage system

[0152] Circuit parameters Numeric System frequency f(Hz) 50 Switching frequency of T-type three-level converter (Hz) 5000~50000 <![CDATA[Filter inductance value L f (H)]]> 0.001 <![CDATA[Filter capacitor value C f (uF)]]> 20 Stabilizing capacitor value C(F) 0.01 <![CDATA[The effective value u of the grid-side line voltage g (V)]]> 690

[0153] This embodiment is implemented based on the ADPSS off-line simulator, and the waveforms are compared with the detailed simulation models constructed based on the commercial software PSCAD / EMTDC and MATLAB. The ADPSS off-line simulator uses a 1-millisecond simulation step size, and PSCAD / EMTDC and MATLAB use a 50-microsecond simulation step size. When the output voltage set value rises from 100 kW to 200 kW at 0.6 seconds after the start of the simulation, and the reactive power rises from 0 Var to 50 kVar at 1.2 seconds. The simulation comparison results are as Figure 7As shown, the waveform of the solid line part is the simulation result of PSCAD / EMTDC, the waveform of the dotted line part is the simulation result of MATLAB, and the waveform of the dotted line part is the simulation result of the method of this embodiment. Figure 7 (ad) are: a-phase grid-side voltage, a-phase grid-side current, energy storage battery port DC voltage, converter output active power and reactive power. It can be seen that the simulation waveform using the method of this embodiment is basically consistent with the simulation waveform of the detailed simulation model constructed by PSCAD / EMTDC and MATLAB. The advantage of the present invention is that the value of each state variable of the converter system is calculated by an analytical method, and the simulation step size can be increased to improve the simulation efficiency without affecting the calculation accuracy. The simulation step size used in this embodiment is 1 millisecond, which is much higher than the simulation step size of the detailed model of 50 microseconds.

[0154] The method of the present invention can also be implemented by an FPGA real-time simulator. Figure 8 (ad) is a schematic diagram of real-time simulation waveforms of a T-type three-level converter energy storage system based on the method of the present invention, wherein a is the three-phase grid-side voltage, b is the three-phase grid-side current, c is the battery voltage and current and the converter DC-side voltage, and d is the converter output active power and reactive power. The real-time simulation platform is built based on the LabVIEW+NI-PXI+FPGA hardware and software architecture, and the FPGA module performs large-step electrical topology simulation based on the analytical algorithm of the present invention, and the simulation step is 1 millisecond.

[0155] Fig. 9 This is the software / hardware architecture diagram of the real-time simulation platform. The hardware mainly includes the host computer, PXI chassis (RT CPU, FPGA), and peripherals such as oscilloscopes and external controllers. The host computer runs LabVIEW to control the interactive interface and manage program operation. In the PXI chassis, the RT CPU is responsible for data processing and control link simulation, while FPGAs are responsible for the main topology simulation work. The oscilloscope is used to output and observe real-time waveforms.

[0156] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by hardware associated with program instructions, and the program may be stored in a computer-readable storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0157] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the principle of the present invention. These improvements and supplements should also be regarded as the scope of protection of the present invention.

Claims

1. A method for simulating electromagnetic transient of a T-type three-level converter energy storage system, characterized in that: Including the following steps: 1) Using the switching function to construct a state space model of a T-type three-level converter in the time domain; the state space model includes: the voltage u of each phase filter capacitor cx , grid-side current of each phase i gx , each phase port current i ox , capacitor differential mode voltage u dm , each phase port voltage u ox 、Voltage of filter capacitors of each phase u ox And each phase grid side voltage u gx A total of 10 state variables; each phase bridge arm switch signal s x (t), each phase neutral point switch signal, DC voltage, each phase grid side voltage, a total of 10 input signals; capacitor C1, C2 voltage u c1 、u c2 and current i c1 、i c2 ; Battery current, grid-side current of each phase, a total of 4 output signals; The state equation of the T-type three-level converter is as follows: In the formula, The meaning is n x (t) is the neutral point switch signal of each phase, s x (t) is the switching signal of each phase bridge arm, u c1 、u c2 and i c1 、i c2 are the voltage and current of capacitors C1 and C2 respectively, u dm is the capacitor differential voltage, i dm is the capacitor differential mode current; L 1f and L 2f , C f are filter inductance and filter capacitance respectively; u ox 、u cx 、u gx are the port voltage of each phase, the filter capacitor voltage of each phase and the grid side voltage of each phase respectively; i ox 、i gx They are the port current of each phase and the grid-side current of each phase respectively; 2) Using the harmonic state space method, according to the state equation of the T-type three-level converter, establish the harmonic domain equation of the T-type three-level converter: In the formula, signal x h (t), r h They are infinite-dimensional vectors composed of the harmonic components of the state quantity and the system input quantity, and the harmonics are truncated according to the research needs and taken in finite order; x h (t)=[…,x -k ,…,x0,…,x k ,…] T (3) r h =[…,r -k ,…,r0,…,r k ,…] T (4) H=A T -Q, A T It is the Toeplitz matrix obtained by Fourier series decomposition of the system in the state equation, which is used for convolution operation. Its specific form is: Q is a diagonal matrix reflecting frequency information, and its form is as follows: Q = diag(…, -jkω1I, …, O, …, jkω1I, …) (6) Wherein, I represents the identity matrix, O represents the zero matrix, and ω1 is the fundamental angular frequency of the system; The steady-state solution of the system corresponding to the harmonic domain equation is x h (t ∞ )=-H -1 r h If you want to obtain the solution of the equation in an unsteady state, replace x h As a dynamic phasor that changes with time, within a sufficiently small time period, that is, within a simulation step length Δt, H,r h All are regarded as constants, and the corresponding solution of the first-order linear differential equation system (3) is: In the formula, e H is the matrix exponential function, x h (t0) is x h (t) value at time t0; 3) Initialize the simulation of the T-type three-level converter system as follows: 3.1) Initialization of the T-type three-level converter system: Set the maximum harmonic order h for simulation max , System A T The specific form of each sub-matrix in can be obtained by Fourier decomposition of the system matrix in the time domain equation: In the formula, except Except for , the remaining matrix elements are constants and can be pre-stored to improve efficiency; System input r h The sub-vectors of are obtained by Fourier decomposition of the system input in the equation, and the specific form of the sub-vectors is: Wherein, * represents taking the conjugate, and the specific form of the sub-vector of the remaining components is: 3.2) Initialization of the battery system: The general equivalent circuit model of a battery uses a controllable voltage source V b Add internal resistance R b The model of the controllable voltage source is: Wherein, the characteristic parameters A, B, K, and the formulas are as follows: 3.3) Initialize the basic simulation parameters: Set the simulation duration to Tmax and the simulation step size to Δt; 4) System update link The simulation starts from the moment T = 0. The system update link includes three parts: the update of the battery power and voltage, the update of the system modulation amount, and the update of the system input amount; Assume that the simulation has completed the calculation at the i-1th moment, and the value of each harmonic component of the system is x i-1 , the simulation proceeds to the i-th moment; 4.1) The update of the battery power and voltage is as follows: Q i =Q i-1 -idc i-1 Δt (14) Qd i =Qd i-1 +idc i-1 Δt (15) In the formula, Q i is the battery power at the current moment, Q i -1 is the battery power at the last moment, Qd i Qd is the cumulative discharge capacity of the battery at the current moment. i-1 is the cumulative discharge of the battery at the last moment, idc i-1 is the discharge current of the battery at the previous moment. Then, the characteristic parameter K at the current moment is calculated according to the following formula: i And the battery voltage Where, Vb i is the battery voltage at the current moment, Vb i-1 is the battery voltage at the previous moment, then the input DC voltage of the T-type three-level converter is: U dci =k dc (Vb i -R b ·idc i-1 ), k dc is the step-up ratio of the DC-DC converter, which is a constant; 4.2) Update of the system modulation amount and input amount: The three-level converter control system gives T i-1 to T i The modulation function n(t) of the time period is used to calculate the Fourier coefficients n0, n1, ..., n of each order of the modulation quantity using the Fourier decomposition formula (59). k , and update the sub-matrices A0, A1, ..., A k The value of the corresponding element in the system matrix H at the i-th moment is obtained i . The three-level converter control system gives T i-1 to T i The switching function s(t) of the time period is used to calculate the Fourier coefficients s0, s1, ..., s of each order of the modulation quantity using the Fourier decomposition formula (60). k , and update the DC side voltage U dci , AC side voltage u gx1 and the corresponding subvectors r0, r1, ..., r k The value of the system input r at the i-th moment is obtained hi 5) Calculation link: Based on the step response analytical formula (48) Calculate the steady-state value of the system at time i Then calculate the value of each harmonic component of the system at time i as follows: 6) Data recording link: Calculate and store the instantaneous values of each state quantity, and the formula is as follows: In the formula, x i is the instantaneous value of each state quantity of the converter, ω1 is the fundamental angular frequency, T is the current simulation time, and Re represents the real part; 7) When i < Tmax, let i = T + Δt, and return to step 4); when i > Tmax, proceed to the next step; 8) The simulation ends.

2. The method for simulating electromagnetic transient of a T-type three-level converter energy storage system according to claim 1, characterized in that: The described simulator is an offline simulator, developed based on ADPSS, and the kernel of the offline simulator is an Intel processor.

3. The method for simulating electromagnetic transient of a T-type three-level converter energy storage system according to claim 1, characterized in that: The described simulator is a real-time simulator, developed based on LabVIEW, arranged under the NI-PXI system, and the kernel of the real-time simulator uses FPGA.