WO2021031262A1 - 适用于现场可编程逻辑阵列的改进电磁暂态仿真方法 - Google Patents
适用于现场可编程逻辑阵列的改进电磁暂态仿真方法 Download PDFInfo
- Publication number
- WO2021031262A1 WO2021031262A1 PCT/CN2019/106094 CN2019106094W WO2021031262A1 WO 2021031262 A1 WO2021031262 A1 WO 2021031262A1 CN 2019106094 W CN2019106094 W CN 2019106094W WO 2021031262 A1 WO2021031262 A1 WO 2021031262A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- branch
- current source
- simulation
- vector
- matrix
- Prior art date
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 94
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000001052 transient effect Effects 0.000 title claims abstract description 29
- 239000011159 matrix material Substances 0.000 claims abstract description 52
- 230000014509 gene expression Effects 0.000 claims description 10
- 238000003491 array Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 3
- 238000004422 calculation algorithm Methods 0.000 description 11
- 238000004364 calculation method Methods 0.000 description 4
- 230000009977 dual effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 101100499229 Mus musculus Dhrsx gene Proteins 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
Definitions
- the invention relates to a power system, in particular to an improved electromagnetic transient simulation method suitable for a field programmable logic array.
- Electromagnetic transient simulation is an important tool for power system safety analysis and control research. Electromagnetic transient simulation is divided into offline simulation and real-time simulation. At present, electromagnetic transient offline simulation software such as Matlab/Simulink, PSCAD/EMTDC, etc. generally have problems such as slow simulation speed, long time-consuming, and no support for real-time interaction with external hardware. Meet higher experimental requirements such as Hardware-in-Loop (HiL). At this time, electromagnetic transient real-time simulation stands out due to its high computational efficiency, good accuracy, and strong interactivity, and has gradually attracted widespread attention.
- electromagnetic transient offline simulation software such as Matlab/Simulink, PSCAD/EMTDC, etc.
- HiL Hardware-in-Loop
- electromagnetic transient real-time simulation platforms such as RTDS, RT-LAB, etc. have been widely used in the research of power systems. They all use Field Programmable Gate Array (FPGA) architecture to implement power electronics containing power electronics. Real-time simulation of system electromagnetic transient. Unlike serial hardware such as CPUs, FPGAs have the advantages of strong computing power and high-parallel architecture to ensure computing speed and truly realize real-time simulation of electromagnetic transients with small steps.
- FPGA Field Programmable Gate Array
- the traditional EMTP algorithm is designed based on the CPU architecture. There are a large number of serial structures in the algorithm flow. Direct compilation and running on FPGA will consume a lot of FPGA hardware resources and reduce the efficiency and real-time performance of real-time simulation.
- the invention compresses the simulation cycle flow in the FPGA by integrating the topology parameters, and greatly improves the efficiency of electromagnetic transient real-time simulation.
- the purpose of the present invention is to provide a method suitable for field programmable logic array (FPGA), which avoids complicated initialization operations in the field programmable logic array (FPGA) At the same time, the process of the main part of the simulation loop in the FPGA is compressed to the greatest extent, and the efficiency of the electromagnetic transient simulation based on the FPGA is greatly improved.
- FPGA field programmable logic array
- An improved electromagnetic transient simulation method suitable for field programmable logic arrays is characterized in that the method includes the following steps, wherein steps 1) to 5) are the initialization phase, and step 6) is the main part of the simulation cycle:
- Step 1) Number the branches and nodes in the circuit to be simulated in sequence, and the number of the ground node is 0;
- Step 2 Form the incidence matrix M of the circuit to be simulated according to the following rules:
- Step 3 Form the branch equivalent admittance vector Y eq , node admittance matrix Y n , voltage coefficient matrix ⁇ and current coefficient matrix ⁇ of the historical current source expression of the circuit to be simulated according to the following sub-steps:
- each resistance branch, inductance branch, capacitance branch and switch branch with its accompanying circuit model.
- Each accompanying circuit contains an equivalent admittance and a parallel historical current source (for resistance, The expressions of the equivalent admittance and historical current source of the inductance and capacitance branches can be found in the electromagnetic transient simulation textbook, while the equivalent admittance of the switching branch and the expression of the historical current source can be found in the small step size of the power electronic switch Model related literature);
- Each Norton equivalent circuit includes an equivalent admittance and a parallel equivalent current source
- the equivalent admittances of all branches are formed into a branch equivalent admittance column vector Y eq according to the branch numbers, and the historical current sources of all branches are formed into a branch historical current source column vector I his according to the branch numbers,
- the equivalent current sources of all branches are grouped into a branch equivalent current source column vector I src according to the branch numbers.
- I src For resistance, inductance, capacitance, and switching branches, the element at the corresponding position in I src is zero.
- the elements at corresponding positions in I his are zero;
- the node admittance matrix Y n of the circuit to be simulated can be calculated (the specific method can refer to the electromagnetic transient simulation textbook);
- Step 4 According to the incidence matrix M, branch equivalent admittance vector Y eq and node admittance matrix Y n of the circuit to be simulated, form the node voltage/branch current coefficient matrix P and historical current directly used in the main body of the simulation cycle Source coefficient matrix Q:
- M T is the transpose operation on the correlation matrix
- I is N brn * N brn unit matrix
- Step 5 Convert the initial historical current source vector Set to zero, the current simulation time n is set to 1, the initialization phase is completed, the above steps are completed in the host computer;
- Step 6 The main part of the simulation loop, the algorithm is compiled in the field programmable logic array (FPGA), which mainly completes the following functions:
- the equivalent current source vector It is automatically updated with the size of the independent voltage source and independent current source.
- the diagonal elements corresponding to the switch branches in the diagonal matrix ⁇ and ⁇ change with the switch state, while other elements are fixed.
- step 6) Repeat step 6) until the specified simulation time or receive an early termination instruction, the simulation ends.
- the present invention is initialized in the host computer, the simulation topology parameters are integrated into two matrices, and the loop simulation is performed in the field programmable logic array (FPGA). Only simple matrix calculations are required to obtain the electrical The parameters avoid complicated initialization operations in FPGA, and at the same time compress the flow of the main part of the simulation loop in FPGA to the greatest extent.
- FPGA field programmable logic array
- the electromagnetic transient simulation using the method of the present invention has a higher resource utilization rate than the traditional electromagnetic transient simulation method, and greatly improves the efficiency of the FPGA-based electromagnetic transient simulation.
- electromagnetic transient simulation it is necessary to improve its calculation efficiency while ensuring its accuracy.
- the traditional EMTP algorithm is based on the CPU architecture. There are a large number of serial structures in the algorithm. Directly running in the FPGA will consume a lot of resources, affect the efficiency of the simulation, and reduce the simulation. Real-time.
- the complicated initialization operation is carried out in the host computer, and only the main part of the simulation cycle is performed in the FPGA. Simultaneously, the simulation process is compressed to the greatest extent in algorithm, which saves FPGA hardware resources and improves the simulation speed.
- Figure 1 is a comparison of the voltage and current waveforms of the transformer under the method of the present invention and offline simulation, where a is the offline simulation result of the power electronics simulation software PLECS, and b is the real-time simulation result of the method of the present invention;
- FIG. 2 is a dual active bridge (Dual Active Bridge, DAB) circuit diagram
- Fig. 3 is a flowchart of an improved electromagnetic transient simulation method suitable for a field programmable logic array according to the present invention.
- DAB Dual Active Bridge
- the hardware is mainly the PXIe chassis of National Instruments (NI), and the PXIe-8135 is the PXIe controller, which is mainly responsible for the simulation of the DAB control system. It is performed through Ethernet and the host computer. Communication, display real-time simulation waveform on the host computer; PXIe-7975R is an FPGA module, which is mainly responsible for the simulation of the DAB circuit part, and is connected to the external controller and oscilloscope through the I/O port for hardware-in-the-loop simulation. Real-time communication between the two through PXIe bus to complete real-time simulation.
- NI National Instruments
- the host computer program, the PXIe controller program and the FPGA module program for real-time simulation carried out by the method of the present invention are all realized by programming through the Labview development environment of National Instruments (NI).
- NI National Instruments
- the host computer can communicate with the PXIe controller and display simulation waveforms at the same time; the PXIe controller can communicate with the host computer, read and write data from the FPGA module, and simulate the DAB control system.
- the above program does not belong to the protection scope of the present invention, and there are related program examples on the official website of National Instruments (NI), so it will not be described in detail.
- the present invention is programmed by Labview and implemented by FPGA module.
- Fig. 3 is a flowchart of an improved electromagnetic transient simulation method suitable for field programmable logic array.
- Step 1) Number the branches and nodes in the circuit to be simulated respectively in turn, where the number of the ground node is 0, as shown in Figure 2;
- Step 2 Form the incidence matrix M of the circuit to be simulated:
- Step 3 According to the following sub-steps, form the branch equivalent admittance vector Y eq , node admittance matrix Y n , voltage coefficient matrix ⁇ and current coefficient matrix ⁇ of the historical current source expression of the circuit to be simulated:
- the equivalent admittances of all branches are formed into a branch equivalent admittance column vector Y eq according to the branch numbers, and the historical current sources of all branches are formed into a branch historical current source column vector I his according to the branch numbers,
- the equivalent current sources of all branches are grouped into a branch equivalent current source column vector I src according to the branch numbers.
- the element at the corresponding position in I src is zero.
- the elements at the corresponding positions in I his are zero (the specific values of I his and I src in the calculation are detailed in step 6);
- the node admittance matrix Y n of the circuit to be simulated can be calculated (the specific method can refer to the electromagnetic transient simulation textbook);
- Step 4 According to the incidence matrix M, branch equivalent admittance vector Y eq and node admittance matrix Y n of the circuit to be simulated, form the node voltage/branch current coefficient matrix P and historical current directly used in the main body of the simulation cycle Source coefficient matrix Q:
- I the inverse matrix of the nodal admittance matrix
- M T is the transposed matrix of the incidence matrix
- I is the identity matrix with dimension N brn *N brn
- N brn the number of circuits to be simulated
- Step 5 Convert the initial historical current source vector Set to zero, the current simulation time n is set to 1, the initialization phase is completed, the above steps are completed in the host computer;
- FPGA field programmable logic array
- the equivalent current source vector It is automatically updated with the size of the independent voltage source and independent current source.
- the diagonal elements corresponding to the switch branches in the diagonal matrix ⁇ and ⁇ change with the switch state, while other elements are fixed.
- step 6) Repeat step 6) until the specified simulation time or receive an early termination instruction, the simulation ends.
- Table 1 is the DAB circuit parameters for real-time simulation under the method of the present invention
- Table 2 is the utilization of hardware resources during the real-time simulation of DAB under the method of the present invention
- Table 3 is the simulation step size for real-time simulation of DAB under the method of the present invention And the running time of each cycle in one step.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Design And Manufacture Of Integrated Circuits (AREA)
Abstract
Description
Claims (1)
- 一种适用于现场可编程逻辑阵列的改进电磁暂态仿真方法,其特征在于该方法包括初始化阶段和仿真循环阶段,具体步骤如下:初始化阶段,在上位机PC中完成:步骤1)将待仿真电路中的支路和节点分别依次进行编号,其中接地节点的编号为0;步骤2)根据以下规则形成待仿真电路的关联矩阵M:2.1)如果支路p和节点q相连,且支路p定义的电流正方向是流出节点q,则M(q,p)=1;2.2)如果支路p和节点q相连,且支路p定义的电流正方向是流入节点q,则M(q,p)=-1;2.3)如果支路p和节点q不相连,则M(q,p)=0;步骤3)按照以下子步骤形成待仿真电路的支路等效导纳向量Y eq、节点导纳矩阵Y n、历史电流源表达式的电压系数矩阵α和电流系数矩阵β:3.1)将各个电阻支路、电感支路、电容支路和开关支路,分别用其伴随电路模型替换,每个伴随电路分别包含一个等效导纳和一个并联的历史电流源;3.2)独立电压源支路和独立电流源支路都用诺顿等效电路表示,每个诺顿等效电路包含一个等效导纳和一个并联的等效电流源;3.3)将所有支路的等效导纳按支路编号组成支路等效导纳列向量Y eq,将所有支路的历史电流源按支路编号组成支路历史电流源列向量I his,将所有支路的等效电流源按支路编号组成支路等效电流源列向量I src,对于电阻、电感、电容和开关支路,其在I src中对应位置的元素为零,对于独立电压源和独立电流源支路,其在I his中对应位置的元素为零;3.4)根据各个支路的等效导纳,计算待仿真电路的节点导纳矩阵Y n;3.5)计算历史电流源表达式的电压系数矩阵α和电流系数矩阵β,公式如下:步骤4)根据待仿真电路的关联矩阵M、支路等效导纳向量Y eq和节点导纳矩阵Y n,形成节点电压/支路电流系数矩阵P和历史电流源系数矩阵Q:仿真循环阶段,在现场可编程逻辑阵列FPGA中完成:步骤7)当前仿真时刻n=n+1,返回步骤6),重复运行,直到指定的仿真时 刻或收到提前终止的指令时,仿真结束。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/086,259 US20210049313A1 (en) | 2019-08-16 | 2020-10-30 | Electromagnetic transient simulation method for field programmable logic array |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910756530.1 | 2019-08-16 | ||
CN201910756530.1A CN110472338B (zh) | 2019-08-16 | 2019-08-16 | 适用于现场可编程逻辑阵列的改进电磁暂态仿真方法 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/086,259 Continuation US20210049313A1 (en) | 2019-08-16 | 2020-10-30 | Electromagnetic transient simulation method for field programmable logic array |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021031262A1 true WO2021031262A1 (zh) | 2021-02-25 |
Family
ID=68511786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/106094 WO2021031262A1 (zh) | 2019-08-16 | 2019-09-17 | 适用于现场可编程逻辑阵列的改进电磁暂态仿真方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110472338B (zh) |
WO (1) | WO2021031262A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109614687B (zh) * | 2018-12-07 | 2023-04-28 | 上海交通大学 | 两电平桥式换流器的定导纳建模与实时仿真方法 |
CN112883677B (zh) * | 2021-02-25 | 2022-03-08 | 上海交通大学 | 电力电子换流器实时仿真的电磁暂态仿真方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080022403A (ko) * | 2006-09-06 | 2008-03-11 | 한국전기연구원 | 초전도 전력 케이블의 쉴드층을 고려하는 고장전류 계산법및 해석 알고리즘 |
CN102891483A (zh) * | 2012-09-07 | 2013-01-23 | 中国南方电网有限责任公司电网技术研究中心 | 一种电力系统电磁机电暂态数字化混合实时仿真方法 |
CN106250614A (zh) * | 2016-07-29 | 2016-12-21 | 上海交通大学 | 适用于fpga平台电磁暂态实时仿真的数据处理方法 |
CN106844900A (zh) * | 2016-12-31 | 2017-06-13 | 上海交通大学 | 电磁暂态仿真系统的搭设方法 |
CN109299531A (zh) * | 2018-09-12 | 2019-02-01 | 清华四川能源互联网研究院 | 电磁暂态仿真方法及装置 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382969A (zh) * | 2008-10-31 | 2009-03-11 | 中国电力科学研究院 | 一种多步变步长电磁暂态仿真方法 |
CN102609598B (zh) * | 2012-03-27 | 2014-05-21 | 天津大学 | 一种对大型电力系统进行电磁暂态仿真的方法 |
CN104298822A (zh) * | 2014-10-09 | 2015-01-21 | 天津大学 | 一种考虑非线性的变电站电磁暂态实时仿真方法 |
CN106886616B (zh) * | 2015-12-15 | 2020-06-16 | 中国电力科学研究院 | 一种大规模电磁暂态电网仿真的自动分网方法 |
CN106649927B (zh) * | 2016-09-21 | 2020-03-24 | 国网天津市电力公司 | 一种基于fpga的电力电子元件实时仿真组合建模方法 |
-
2019
- 2019-08-16 CN CN201910756530.1A patent/CN110472338B/zh active Active
- 2019-09-17 WO PCT/CN2019/106094 patent/WO2021031262A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080022403A (ko) * | 2006-09-06 | 2008-03-11 | 한국전기연구원 | 초전도 전력 케이블의 쉴드층을 고려하는 고장전류 계산법및 해석 알고리즘 |
CN102891483A (zh) * | 2012-09-07 | 2013-01-23 | 中国南方电网有限责任公司电网技术研究中心 | 一种电力系统电磁机电暂态数字化混合实时仿真方法 |
CN106250614A (zh) * | 2016-07-29 | 2016-12-21 | 上海交通大学 | 适用于fpga平台电磁暂态实时仿真的数据处理方法 |
CN106844900A (zh) * | 2016-12-31 | 2017-06-13 | 上海交通大学 | 电磁暂态仿真系统的搭设方法 |
CN109299531A (zh) * | 2018-09-12 | 2019-02-01 | 清华四川能源互联网研究院 | 电磁暂态仿真方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN110472338A (zh) | 2019-11-19 |
CN110472338B (zh) | 2021-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210049313A1 (en) | Electromagnetic transient simulation method for field programmable logic array | |
US11476667B2 (en) | Hybrid electromagnetic transient simulation method for microgrid real-time simulation | |
Majstorovic et al. | Ultralow-latency hardware-in-the-loop platform for rapid validation of power electronics designs | |
Matar et al. | FPGA implementation of the power electronic converter model for real-time simulation of electromagnetic transients | |
CN105930903B (zh) | 一种数模混合神经网络芯片体系结构 | |
CN106649927B (zh) | 一种基于fpga的电力电子元件实时仿真组合建模方法 | |
CN107168100A (zh) | 一种基于现场可编程门阵列的模块化多电平换流器实时仿真建模方法 | |
CN106446428A (zh) | 一种开关电路电磁暂态分析方法及分析装置 | |
WO2021031262A1 (zh) | 适用于现场可编程逻辑阵列的改进电磁暂态仿真方法 | |
CN106709243B (zh) | 含小阻抗支路电网的补偿法极坐标牛顿法潮流计算方法 | |
CN109543339A (zh) | 三电平换流器的定导纳建模与实时仿真方法 | |
CN111859835A (zh) | 一种电路互连网络模型的降阶方法、降阶装置及降阶设备 | |
CN107784158B (zh) | 一种基于fpga的有源配电网实时仿真解算器的设计方法 | |
Shen et al. | Design and implementation of real-time Mpsoc-FPGA-based electromagnetic transient emulator of CIGRÉ DC grid for HIL application | |
CN106229988A (zh) | 一种基于Matlab的极坐标牛顿法潮流计算方法 | |
Zheng et al. | An event-driven real-time simulation for power electronics systems based on discrete hybrid time-step algorithm | |
WO2021031263A1 (zh) | 适用于微电网实时仿真的混合电磁暂态仿真方法 | |
CN106844900B (zh) | 电磁暂态仿真系统的搭设方法 | |
CN110414118A (zh) | 一种基于分离式建模的Boost变换器建模方法及应用 | |
CN109614687A (zh) | 两电平桥式换流器的定导纳建模与实时仿真方法 | |
CN112883677B (zh) | 电力电子换流器实时仿真的电磁暂态仿真方法 | |
CN206224475U (zh) | 一种mmc实时仿真建模系统 | |
CN106250983B (zh) | 神经元电路 | |
CN106407616B (zh) | 一种全桥子模块等效仿真方法 | |
Matar et al. | An FPGA-based real-time digital simulator for power electronic systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19942036 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19942036 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19942036 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.05.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19942036 Country of ref document: EP Kind code of ref document: A1 |