Hybrid electromagnetic transient simulation method for microgrid real-time simulation
11476667 · 2022-10-18
Assignee
Inventors
- Keyou Wang (Shanghai, CN)
- Jin Xu (Shanghai, CN)
- Guojie Li (Shanghai, CN)
- Zirun Li (Shanghai, CN)
- Pan Wu (Shanghai, CN)
Cpc classification
Y04S40/20
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H02J3/004
ELECTRICITY
H02J2203/20
ELECTRICITY
H02J3/00125
ELECTRICITY
Y02E60/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
H02J3/00
ELECTRICITY
Abstract
A hybrid electromagnetic transient simulation method for microgrid real-time simulation, wherein a traditional node analysis method (NAM) and a highly parallel latency insertion method (LIM) are combined, so that the microgrid is firstly divided from a filter of a distributed power generation system to form one latency insertion method (LIM) network containing a power distribution line and a plurality of node analysis method (NAM) networks containing the distributed power generation system respectively, the NAM network being simulated by traditional node analysis method, the LIM network being simulated by the latency insertion method, in an initialization stage, one correlation matrix and four diagonal matrixes containing line parameters used for LIM network simulation being formed according to line topology and parameters of the microgrid, in a main cycle of the simulation, the LIM network solved simultaneously with multiple NAM networks, a parallelism of a microgrid simulation being improved.
Claims
1. A hybrid electromagnetic transient simulation method for microgrid real-time simulation, comprising an initialization stage of steps (1) to (4) and a simulation cycle stage of steps (5) to (7): (1) performing division of network by dividing a microgrid model from a filter at an outlet of a converter of a distributed power generation system, connecting in series an inductance L in the filter to an equivalent voltage source, wherein the inductance L is close to a power distribution line of the microgrid, and the equivalent voltage source comprises a grounded negative electrode, and forming a latency insertion method network with the power distribution line of the microgrid, connecting remaining capacitance of each filter to an equivalent current source in parallel, of which a positive direction is flowing into the ground, and forming a node analysis method network with a corresponding distributed power generation system; (2) performing model exchange by representing the power distribution line in a latency insertion method network by an equivalent π model, wherein a branch between nodes is represented by inductance and resistance in series connection, and a branch from nodes at both ends to ground is represented by capacitance, representing a voltage source in the latency insertion method network by Norton equivalent form, wherein an equivalent conductance is in parallel connection with an quivalent current source, representing a load in the latency insertion method network by a constant impedance model, wherein resistance, inductance, capacitance, or a combination thereof are in parallel connection, if there are multiple branches between nodes, converting the multiple branches into one single branch and expressing in a form of inductance, resistance, the voltage source, or a combination thereof in series connection to form a common branch in the latency insertion method network, if there are multiple branches from the node to ground, converting the multiple branches into one single branch and expressing in a form of capacitance, conductance, a current source, or a combination thereof in parallel connection to form a node branch in the latency insertion method network, sequentially numbering the common branch and the node branch in the latency insertion method network, respectively, starting with a number of a grounded node being 0; (3) forming a correlation matrix M of the latency insertion method network according to following rules: (i) if common branch p is connected with node branch q, and a positive direction defined by common branch p is flowing out of node branch q, M(q,p)=1; (ii) if common branch p is connected with node branch q and a positive current direction defined by common branch p is flowing into node branch q, M(q,p)=−1; (iii) if common branch p and node branch q are not connected, M(q,p)=0; (4) forming two node voltage coefficient matrixes P+, P− and two branch current coefficient matrixes Q+, Q− of the LIM network according to following rules:
V.sub.nodal.sup.n+1=P.sub.+V.sub.nodal.sup.n−P.sub.−(MI.sub.branch.sup.n−H.sub.nodal.sup.n) V.sub.nodal.sup.n+1 being a node voltage vector of the node branch in the latency insertion method network at time n+1, I.sub.branch.sup.n being a branch current vector of the common branch in the latency insertion method network at time n, and H.sub.nodal.sup.n being an equivalent current source vector of the node branch in the latency insertion method network at time n; carrying out simulation solution of the node analysis method network simultaneously; (6) updating a branch current of the common branch in the latency insertion method network according to following rule to serve as a corresponding parallel equivalent current source of a filter capacitance branch in next node analysis method network simulation solution;
I.sub.branch.sup.n+1=Q.sub.+I.sub.branch.sup.n+Q.sub.−(M.sup.TV.sub.nodal.sup.n+1 +E.sub.branch.sup.n+1+E.sub.equiv.sup.n+1) M.sup.T being a transposition operation of correlation matrix M, E.sub.equiv.sup.n+1 being an equivalent voltage source vector of the common branch in the latency insertion method network at time n+1, which is a non-zero element only at a position corresponding to a filter inductance branch and has a magnitude of a voltage magnitude corresponding to a filter capacitance in the node analysis method network; and (7) judging whether simulation is terminated or not, if not, returning to step (5), entering a next simulation cycle, and terminating the simulation until a specified simulation time or when an instruction for terminating in advance is received.
2. The hybrid electromagnetic transient simulation method of claim 1, wherein the filter is an LC filter or an LCL filter.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF THE INVENTION
(7) The present invention is further explained below with reference to the figures and embodiments.
(8) As shown in
(9) When the hybrid electromagnetic transient simulation method suitable for microgrid real-time simulation is applied to real-time simulation of the microgrid, the hardware part mainly comprises: (1) PXIe controller (product model: PXIe-8135) from National Instruments (NI): being mainly responsible for the simulation of a microgrid control system, being able to communicate with a host computer through an Ethernet, and displaying real-time simulation waveforms on the upper computer; and (2) FPGA module (model: PXIe-7975R, built in a Kintex-7 410T FPGA chip from XILINX) from National Instruments (NI): being mainly responsible for the simulation of the circuit part of the microgrid, and being able to be connected with an external controller and an oscilloscope through an I/O port to carry out hardware-in-loop simulation. They communicate with each other through PXIe bus to complete real-time simulation.
(10) The software part is mainly Labview development environment from the National Instruments Col, Ltd. (NI). The programs in the upper computer, PXIe controller and FPGA module are programmed with Labview. The programs in the upper computer complete the functions of communication with the PXIe controller, simulation waveform display and the like. The programs in the PXIe controller complete the functions of the communication with the upper computer, reading and writing data from the FPGA module, simulating the control system of the converter, etc. The above-described programs do not fall within the protection scope of the present invention, and related program examples are provided on the official website of the National Instruments (NI) and is not described in details here. In addition, the FPGA module is a specific implementation carrier of the present invention, mainly accomplishes the functions of microgrid simulation calculation and the like. More particularly, with reference to
(11) In the embodiment of the present invention, the hybrid electromagnetic transient simulation method suitable for microgrid real-time simulation of the present invention comprises the following steps:
(12) Step (1) dividing a microgrid model from an LC filter or an LCL filter at an outlet of a converter of a distributed power generation system, wherein inductance L close to a power distribution line of the microgrid in the filter is connected in series with one equivalent voltage source with a grounded negative electrode, and then forms one latency insertion method (LIM) network together with the power distribution line of the microgrid; and capacitance C is connected in parallel with one equivalent current source to ground in a positive direction, forming a node analysis method (NAM) network together with a corresponding distributed power generation system.
(13) Step (2), the power distribution line in the LIM network being represented by a PI equivalent model, namely, a branch between nodes being represented by inductance and resistance in series connection, and a branch from nodes at both ends to ground being represented by capacitance; a voltage source in the LIM network being expressed in a Norton equivalent form, i.e., a form of equivalent conductance in parallel connection with equivalent current source; a load in the LIM network being represented by a constant impedance model, i.e. in a form of resistance, inductance and/or capacitance in parallel connection. Finally, if there are multiple branches between nodes, the branches are converted to one single branch and represented in the form of inductance (necessary), resistance (unnecessary) and a voltage source (unnecessary) in series connection, hereinafter referred to as LIM common branch (as shown in
(14) Step (3) forming a correlation matrix M of the LIM network:
(15)
(16) Step (4) forming two node voltage coefficient matrixes P.sub.+, P.sub.− and two branch current coefficient matrixes Q.sub.+, Q.sub.− of the LIM network:
(17)
C and G being diagonal matrixes of N.sub.n×N.sub.n, and diagonal elements being ground capacitance and ground conductance of a LIM node branch with a corresponding number; L and R being diagonal matrixes of N.sub.b×N.sub.b, and diagonal elements being inductance and capacitance of a LIM common branch with a corresponding number; Δt being a simulated time-step; N.sub.n and N.sub.b being a number of LIM node branch(es) and a number of LIM common branch(es) respectively; the above-mentioned content is the initialization process of the simulation, and the main cycle procedure of the simulation is entered below.
(18) Step (5) updating a node voltage of the LIM node branch:
V.sub.nodal.sup.n+1=P.sub.30 V.sub.nodal.sup.n−P.sub.−(MI.sub.branch.sup.n−H.sub.nodal.sup.n)
V.sub.nodal.sup.n=[−7.3687×10.sup.−7 −7.3687×10.sup.−7 . . . −2.1780×10.sup.−7 4.3560×10.sup.−7].sub.54×1.sup.T
I.sub.branch.sup.n=[8.6629×10.sup.−8 8.6629×10.sup.−8 . . . −8.6077×10.sup.−6 1.7215×10.sup.−5].sub.60×1.sup.T
H.sub.nodal.sup.n=[0 0 . . . 0 0].sub.54×1.sup.T
V.sub.nodal.sup.n+1=[−1.9744×10.sup.−6 −1.9744×10.sup.−6 . . . −5.5864×10.sup.−7 1.1173×10.sup.−6].sub.54×1.sup.T
(19) V.sub.nodal.sup.n+1 being a node voltage vector of the LIM node branch at time n+1, I.sub.branch being a branch current vector of the LIM common branch at time n, and H.sub.nodal being an equivalent current source vector of the LIM node branch at time n; at the same time, the simulation solution of NAM network is carried out.
(20) Step (6) updating a branch current of the LIM common branch:
I.sub.branch.sup.n+1=Q.sub.+I.sub.branch.sup.n+Q.sub.−(M.sup.TV.sub.nodal.sup.n+1+E.sub.branch.sup.n+1+E.sub.equiv.sup.n+1)
E.sub.branch.sup.n+1=[0 0 . . . 0 0].sub.60×1.sup.T
E.sub.equiv.sup.n+1=[0 0 . . . −0.0056 0.0112].sub.60×1.sup.T
I.sub.branch.sup.n+1=[1.8467×10.sup.−7 1.8467×10.sup.−7 . . . −1.2310×10.sup.−5 2.4620×10.sup.−5].sub.60×1.sup.T
(21) M.sup.T being a transposition operation of correlation matrix M, E.sub.equiv.sup.n+1 being an equivalent voltage source vector of the LIM common branch at time n+1, which is a non-zero element only at a position corresponding to a filter inductance branch and has a magnitude of a voltage magnitude corresponding to a filter capacitance in the NAM network; an obtained current in the filter inductance branch in I.sub.branch.sup.n serving as a corresponding parallel equivalent current source of a filter capacitance branch in next NAM network simulation solution.
(22) Step (7) returning to the step 5, and entering the next simulation cycle.
V.sub.nodal.sup.n+1=−[−1.9744×10.sup.−6 −1.9744×10.sup.−6 . . . −5.5864×10.sup.−7 1.1173×10.sup.−6].sub.54×1.sup.T
I.sub.branch.sup.n+1=[1.8467×10.sup.−7 1.8467×10.sup.−7 . . . −1.2310×10.sup.−5 2.4620×10.sup.−5].sub.60×1.sup.T
H.sub.nodal.sup.n+1=[0 0 . . . 0 0].sub.54×1.sup.T
V.sub.nodal.sup.n+2=[−4.6126×10.sup.−6 −4.6126×10.sup.−6 . . . −1.2551×10.sup.−6 2.5101×10.sup.−6].sub.54×1.sup.T
E.sub.branch.sup.n+2=[0 0 . . . 0 0].sub.60×1.sup.T
E.sub.equiv.sup.n+2=[0 0 . . . −0.0072 0.0144].sub.60×1.sup.T
I.sub.branch.sup.n+2=[3.5258×10.sup.−7 3.5258×10.sup.−7 . . . −1.7057×10.sup.−5 3.4114×10.sup.−5].sub.60×1.sup.T
(23) The steps (5)-(7) are thus cycled through. The simulation is terminated until a specified simulation time or when an instruction for terminating in advance is received.
(24) The experimental results show that real-time simulation is carried out on one microgrid composed of 3 three-phase inverters, 3 Boost circuits and 21 three-phase lines by using both the present method and the traditional node analysis method on a Kintex-7 410T FPGA chip from XILINX. According to the method of the present invention, the simulation time-step of 380 ns can be adopted at the minimum, and various hardware resources of the FPGA are consumed as follows: look-up table 49.6%, flip-flop 48.8%, RAM block 12.2%, DSP48 multiplier 63.1%. In the traditional method, the simulation time-step of 1970 ns can be adopted at the minimum, and various hardware resources of the FPGA are consumed as follows: look-up table 81.8%, flip-flop 76.7%, RAM block 12.2%, DSP48 multiplier will exceed 100% and the microgrid real-time simulation cannot be completed. Therefore, the method of the present invention can realize smaller simulation time-step and larger simulation scale on the FPGA, so that the microgrid real-time simulation capability based on the FPGA is improved, and the method is very suitable for submicrosecond-level real-time simulation of the microgrid containing a plurality of power electronic converters and a large number of power distribution lines.
(25) The present invention provides a hybrid electromagnetic transient simulation method suitable for microgrid real-time simulation, characterized in that a traditional node analysis method (NAM) and a highly parallel latency insertion method (LIM) are combined, so that the microgrid is firstly divided from a filter of a distributed power generation system to form one latency insertion method (LIM) network containing a power distribution line and a plurality of node analysis method (NAM) networks containing the distributed power generation system respectively, the NAM network being simulated by traditional node analysis method, the LIM network being simulated by the latency insertion method, in an initialization stage, one correlation matrix and four diagonal matrixes containing line parameters used for LIM network simulation being formed according to line topology and parameters of the microgrid, in a main cycle of the simulation, the LIM network being able to be solved simultaneously with multiple NAM networks, a parallelism of a microgrid simulation being improved, in addition, a diagonal matrix multiplication being mainly used to carry out calculation in a solution process of the LIM network simulation, a computational burden of solving large-scale network equations by the node analysis method being avoided, and a simulation efficiency being improved.