CN108628182A - A kind of small step-length emulation mode of electro-magnetic transient and system - Google Patents
A kind of small step-length emulation mode of electro-magnetic transient and system Download PDFInfo
- Publication number
- CN108628182A CN108628182A CN201710181974.8A CN201710181974A CN108628182A CN 108628182 A CN108628182 A CN 108628182A CN 201710181974 A CN201710181974 A CN 201710181974A CN 108628182 A CN108628182 A CN 108628182A
- Authority
- CN
- China
- Prior art keywords
- length
- simulation
- electro
- analogue system
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
本发明涉及一种电磁暂态小步长仿真方法及系统,配合外部服务器端的大步长系统对电网进行分网并行仿真运算,由大步长系统完成电网的分网解耦,本系统完成电磁暂态仿真运算并通过数据交互将仿真结果返还给大步长系统,从而达到对整个电网进行实时仿真、掌握电网运行的动态过程的目的。本发明以FPGA作为仿真平台,利用了FPGA成本较低、计算单元高度并行化、适合高度流水作业的特点,同时对不同的电网元器件进行并行仿真计算,系统整体高度流水化,在保证了仿真精度的情况下提升了系统的工作频率和吞吐率。
The invention relates to an electromagnetic transient small-step simulation method and system, which cooperates with a large-step system on an external server side to carry out parallel simulation calculations for grid sub-networks. The large-step system completes the decoupling of grid sub-networks. Transient simulation operation and return the simulation results to the large-step system through data interaction, so as to achieve the purpose of real-time simulation of the entire power grid and grasp the dynamic process of power grid operation. The present invention uses FPGA as a simulation platform, utilizes the characteristics of low FPGA cost, highly parallelized computing units, and is suitable for highly streamlined operations. Simultaneously, parallel simulation calculations are performed on different power grid components, and the overall system is highly streamlined, ensuring simulation The operating frequency and throughput of the system are improved without compromising the accuracy.
Description
技术领域technical field
本发明涉及一种在电网仿真中进行电磁暂态小步长仿真方法和系统,具体涉及一种电磁暂态小步长仿真方法及系统。The invention relates to a method and system for performing electromagnetic transient small-step simulation in power grid simulation, in particular to an electromagnetic transient small-step simulation method and system.
背景技术Background technique
电网仿真分为离线仿真与实时仿真。电磁暂态仿真程序(Electro-MagneticTransient Program,EMTP)已经广泛应用于电网的离线仿真,而离线仿真软件一般都安装在计算能力较强的服务器或工作站上,其仿真步长在100us量级。而实时仿真能够更加快速准确地掌握电网的实际工作状态,对电网的安全性评估以及故障排除都具有重要的意义。Power grid simulation is divided into offline simulation and real-time simulation. The electromagnetic transient simulation program (Electro-MagneticTransient Program, EMTP) has been widely used in the offline simulation of the power grid, and the offline simulation software is generally installed on a server or workstation with strong computing power, and its simulation step size is on the order of 100us. The real-time simulation can grasp the actual working state of the power grid more quickly and accurately, which is of great significance to the safety assessment and troubleshooting of the power grid.
同时,电网仿真还可以分为机电暂态仿真和电磁暂态仿真。机电暂态过程是指电磁转矩变化而引起的电机转子机械运动的改变的过程。机电暂态仿真一般应用于功角稳定、频率稳定、电压稳定以及短路计算等问题,仿真规模一般较大,仿真步长一般为毫秒级别。由于机电暂态的仿真步长很大,所以仿真软件也能够达到机电暂态仿真的实时性要求。而电磁暂态过程是指电场能量和磁场能量相互作用引起的电压电流变化的过程。电磁暂态仿真一般应用于操作暂态、故障暂态或其他快速动态响应,仿真规模一般较小,仿真步长一般为微秒级别。At the same time, power grid simulation can also be divided into electromechanical transient simulation and electromagnetic transient simulation. The electromechanical transient process refers to the process of changing the mechanical motion of the motor rotor caused by the change of the electromagnetic torque. Electromechanical transient simulation is generally applied to issues such as power angle stability, frequency stability, voltage stability, and short-circuit calculation. The simulation scale is generally large, and the simulation step size is generally at the millisecond level. Since the step size of the electromechanical transient simulation is very large, the simulation software can also meet the real-time requirements of the electromechanical transient simulation. The electromagnetic transient process refers to the process of voltage and current changes caused by the interaction of electric field energy and magnetic field energy. Electromagnetic transient simulation is generally applied to operation transients, fault transients or other fast dynamic responses. The simulation scale is generally small, and the simulation step size is generally at the microsecond level.
由于各种高频器件的出现,电网的实时仿真步长需要从原来的50us-100us下降到1us-5us,仿真运算负担大幅增加。由于仿真步长的大幅度下降,现有的离线仿真软件包已经无法满足电网仿真的实时性要求。而要完成电网的实时仿真,不仅需要在软件层面上进行,还需要硬件设备的配合来达到要求的仿真速度。Due to the emergence of various high-frequency devices, the real-time simulation step size of the power grid needs to be reduced from the original 50us-100us to 1us-5us, and the simulation calculation burden has increased significantly. Due to the sharp decrease of the simulation step size, the existing offline simulation software package has been unable to meet the real-time requirements of power grid simulation. To complete the real-time simulation of the power grid, it not only needs to be carried out on the software level, but also requires the cooperation of hardware devices to achieve the required simulation speed.
目前,针对电网的实时仿真装置有基于并行处理器的实时数字仿真器RTDS、采用计算机集群作为仿真平台的RT-LAB实时仿真装置、基于工作站的全数字仿真系统ARENE等等。但是以上仿真系统均有着各自缺点,如成本高、仿真规模受限等。At present, real-time simulation devices for power grids include the real-time digital simulator RTDS based on parallel processors, the RT-LAB real-time simulation device using computer clusters as the simulation platform, and the full digital simulation system ARENE based on workstations. However, the above simulation systems all have their own shortcomings, such as high cost and limited simulation scale.
由于电磁暂态实时仿真的各种困难,传统的通用处理器系统在如今电网仿真规模扩大并且实时性要求更高的背景下已经无法满足实时仿真需求。Due to various difficulties in real-time simulation of electromagnetic transients, traditional general-purpose processor systems cannot meet the needs of real-time simulation under the background of the expansion of power grid simulation scale and higher real-time requirements.
发明内容Contents of the invention
为解决上述现有技术中的不足,本发明的目的是提供一种电磁暂态小步长仿真方法及系统,本发明配合外部服务器端的大步长系统对电网进行分网并行仿真运算,由大步长系统完成电网的分网解耦,本系统完成电磁暂态仿真运算并通过数据交互将仿真结果返还给大步长系统,从而达到对整个电网进行实时仿真、掌握电网运行的动态过程的目的。本发明在低成本的情况下保证了仿真系统的精度、规模以及可配置性。In order to solve the deficiencies in the above-mentioned prior art, the object of the present invention is to provide a method and system for electromagnetic transient small-step simulation. The present invention cooperates with the large-step system on the external server side to perform parallel simulation calculations on the power grid. The step size system completes the decoupling of the power grid sub-network. This system completes the electromagnetic transient simulation calculation and returns the simulation results to the large step size system through data interaction, so as to achieve real-time simulation of the entire power grid and grasp the dynamic process of power grid operation. . The invention ensures the accuracy, scale and configurability of the simulation system at low cost.
本发明的目的是采用下述技术方案实现的:The object of the present invention is to adopt following technical scheme to realize:
本发明提供一种电磁暂态小步长仿真方法,其改进之处在于,所述方法包括下述步骤:The present invention provides a kind of electromagnetic transient small-step simulation method, and its improvement is that, described method comprises the following steps:
通过大步长仿真系统中电导逆矩阵G2 -1和节点电流向量Ihis的矩阵乘法求解节点电压向量Vs;Solve the node voltage vector V s by the matrix multiplication of the conductance inverse matrix G 2 -1 and the node current vector I his in the large-step simulation system;
若FPGA平台的总仿真时间t<最大仿真时间tfinal,则总仿真时间t加上仿真一个小步长的时间dt,t=t+dt;在大步长仿真系统的元件区完成计算更新等值历史电流值的工作,并对元件区的计算节点电流注入值进行累加,周期性地和大步长仿真系统进行数据交互;直至t>=tfinal,则仿真结束并输出仿真结果。If the total simulation time t of the FPGA platform < the maximum simulation time tfinal, then the total simulation time t plus the simulation time dt of a small step size, t=t+dt; complete the calculation update equivalent in the component area of the large step size simulation system Work on the historical current value, and accumulate the current injection value of the calculation node in the component area, and periodically interact with the large-step simulation system for data; until t>=tfinal, the simulation ends and the simulation result is output.
进一步地,在通过大步长仿真系统中的G2 -1和Ihis的矩阵乘法求解Vs之前,还包括:Further, before solving V s through the matrix multiplication of G 2 -1 and I his in the large-step simulation system, it also includes:
FPGA平台的电磁暂态小步长仿真系统从大步长仿真系统接收初始化数据,并将初始化数据写入FPGA平台的内部数据区;设置小步长总仿真时间t。The electromagnetic transient small step size simulation system of the FPGA platform receives initialization data from the large step size simulation system, and writes the initialization data into the internal data area of the FPGA platform; sets the total simulation time t of the small step size.
进一步地,所述大步长仿真系统是指基于外部服务器端的大步长仿真系统,所述大步长仿真系统用于电网的分网解耦,以及为电磁暂态小步长仿真系统提供仿真所需的初始化数据以及交互数据。Further, the large-step simulation system refers to a large-step simulation system based on an external server, and the large-step simulation system is used for the decoupling of the power grid, and provides simulation for the electromagnetic transient small-step simulation system Required initialization data and interaction data.
进一步地,所述初始化数据包括电磁暂态小步长系统网络电导矩阵及其逆矩阵、元件配置信息、电磁暂态小步长仿真所需的常量和元件;Further, the initialization data includes the electromagnetic transient small-step system network conductance matrix and its inverse matrix, component configuration information, constants and components required for electromagnetic transient small-step simulation;
所述元件包括电容、电感、电阻的常规元件SLA,单相绕阻变压器元件STB,单相交流独立电流源SCI,单相交流独立电压源SCV,受控电流源CIS,受控电压源CVS,开关元件BRK和传输线LC。The components include conventional components SLA of capacitance, inductance and resistance, single-phase winding transformer component STB, single-phase AC independent current source SCI, single-phase AC independent voltage source SCV, controlled current source CIS, controlled voltage source CVS, switching element BRK and transmission line LC.
进一步地,在求解节点电压向量Vs之后,还包括:Further, after solving the node voltage vector V s , it also includes:
根据FPGA平台内部的开关是否动作来决定是否更新G2 -1;Determine whether to update G 2 -1 according to whether the switch inside the FPGA platform is activated;
若开关动作,则根据最新的开关状态更新G2 -1并刷新对应的地址表信息,通过更新后的G2 -1和Ihis的矩阵乘法求解Vs;若开关不动作,则不更新G2 -1。If the switch operates, update G 2 -1 according to the latest switch state and refresh the corresponding address table information, and solve V s through the matrix multiplication of the updated G 2 -1 and I his ; if the switch does not operate, G will not be updated 2-1 .
进一步地,求解节点电压向量Vs的公式如下:Further, the formula for solving the node voltage vector V s is as follows:
G2 -1Ihis=Vs (1)。G 2 −1 I his =V s (1).
进一步地,在所述判断FPGA平台内部的开关是否动作之前,还包括:开关动作状态由大步长系统通过周期性的数据交互方式发送到电磁暂态小步长仿真系统上;Further, before the judgment of whether the switch inside the FPGA platform acts, it also includes: the switch action state is sent to the electromagnetic transient small-step simulation system by the large-step system through periodic data interaction;
若选取新的电导矩阵,则通过新的电导矩阵和节点电流向量的矩阵乘法求解节点电压向量;否则,直接通过G2 -1和Ihis的矩阵乘法求解Vs。If a new conductance matrix is selected, the node voltage vector is obtained by matrix multiplication of the new conductance matrix and the node current vector; otherwise, V s is directly obtained by the matrix multiplication of G 2 -1 and I his .
进一步地,所述周期性地和大步长仿真系统进行数据交互,包括:设电磁暂态小步长系统的仿真步长为T1,大步长仿真系统的仿真步长为T2,N为正整数,则小步长迭代次数KLOOP=N·T2/T1时进行一次大小步长仿真系统的数据交互;Further, the periodic data interaction with the large-step-size simulation system includes: setting the simulation step size of the electromagnetic transient small-step-size system as T 1 , and the simulation step size of the large-step-size simulation system as T 2 , N is a positive integer, then the number of small step iterations KLOOP=N·T 2 /T 1 performs data interaction of the large and small step simulation system;
每次大小步长仿真系统交互由大步长仿真系统发送仿真实时激励信号、新的仿真数据以及大步长仿真系统仿真所需的节点编号,电磁暂态小步长仿真系统将大步长仿真系统发送的数据写入总线,并将新的数据用于下一次小步长开始的仿真运算;同时,电磁暂态小步长仿真系统在每次交互中依据大步长仿真系统发送的节点编号将相应节点的仿真数据返还给大步长仿真系统;所述大步长仿真系统发送的仿真数据包括:元件仿真的新参数和开关动作状态。Each large-step-size simulation system interacts with the large-step-size simulation system to send simulation real-time excitation signals, new simulation data, and node numbers required for large-step-size simulation system simulation, and the electromagnetic transient small-step-size simulation system will simulate large-step The data sent by the system is written into the bus, and the new data is used for the simulation operation starting from the next small step; at the same time, the electromagnetic transient small step simulation system uses the node number sent by the large step simulation system in each interaction returning the simulation data of the corresponding node to the large-step simulation system; the simulation data sent by the large-step simulation system includes: new parameters of component simulation and switch action states.
本发明还提供一种基于FPGA平台的电磁暂态小步长仿真系统,其改进之处在于,所述系统包括元件区、核心计算区、公共存储模块、大小步长接口模块以及顶层控制模块;其中,元件区包括用于完成单个元件内部的计算的计算模块、用于控制单个元件计算时的数据流和计算时序的控制模块和用于累加节点电流注入值的节点电流累加模块;所述核心计算区用于求解节点电压向量;所述公共存储模块用于仿真数据的存储;所述大小步长接口模块用于大步长仿真系统和电磁暂态小步长仿真系统的数据交互;所述顶层控制模块用于产生整体时序逻辑及激励信号。The present invention also provides an electromagnetic transient small-step simulation system based on an FPGA platform. The improvement is that the system includes a component area, a core calculation area, a public storage module, a large and small step size interface module, and a top-level control module; Among them, the component area includes a calculation module for completing the calculation inside a single component, a control module for controlling the data flow and calculation timing of a single component during calculation, and a node current accumulation module for accumulating node current injection values; the core The calculation area is used to solve the node voltage vector; the public storage module is used for the storage of simulation data; the size step size interface module is used for data interaction between the large step size simulation system and the electromagnetic transient small step size simulation system; the The top-level control module is used to generate the overall sequential logic and excitation signals.
进一步地,所述元件区运用到的元件包括电容、电感、电阻的常规元件SLA,单相绕阻变压器元件STB,单相交流独立电流源SCI,单相交流独立电压源SCV,受控电流源CIS,受控电压源CVS,开关元件BRK和传输线LC。Further, the components used in the component area include conventional components SLA of capacitors, inductors and resistors, single-phase winding transformer components STB, single-phase AC independent current source SCI, single-phase AC independent voltage source SCV, controlled current source CIS, controlled voltage source CVS, switching element BRK and transmission line LC.
与最接近的现有技术相比,本发明提供的技术方案具有的优异效果是:Compared with the closest prior art, the excellent effect that the technical solution provided by the present invention has is:
本发明以FPGA作为仿真平台,利用了FPGA成本较低、计算单元高度并行化、适合高度流水作业的特点,相比之下,FPGA拥有高度并行化的计算逻辑单元,适合高度流水化的作业,具有极高的灵活性和可配置性,非常适合在不牺牲通讯延迟和仿真精度的情况下对电磁暂态仿真进行硬件加速。同时对不同的电网元器件进行并行仿真计算,系统整体高度流水化,在保证了仿真精度的情况下提升了系统的工作频率和吞吐率。The present invention uses FPGA as a simulation platform, and utilizes the characteristics of FPGA with low cost, highly parallelized computing units, and suitable for highly pipelined operations. In contrast, FPGA has highly parallelized computing logic units, which are suitable for highly pipelined operations. Extremely flexible and configurable, it is ideal for hardware acceleration of electromagnetic transient simulations without sacrificing communication latency and simulation accuracy. At the same time, different power grid components are simulated and calculated in parallel, and the overall system is highly streamlined, which improves the operating frequency and throughput of the system while ensuring the simulation accuracy.
本发明提供的基于FPGA平台的电磁暂态小步长仿真系统成本较低;仿真规模较大,采用双精度浮点数作为基本数据格式,保证了仿真精度。在保证精度的情况下达到了微秒量级的仿真步长,从而满足了电磁暂态仿真的实时性要求,具有一定的灵活性与可配置性。可配合服务器端的大步长仿真系统对电网进行实时的分网并行仿真。The electromagnetic transient small-step simulation system based on the FPGA platform provided by the invention has low cost; the simulation scale is relatively large, and double-precision floating-point numbers are used as the basic data format to ensure simulation accuracy. In the case of ensuring the accuracy, the simulation step size of the microsecond level is achieved, thereby meeting the real-time requirements of the electromagnetic transient simulation, and has certain flexibility and configurability. It can cooperate with the large-step simulation system on the server side to carry out real-time sub-network parallel simulation of the power grid.
附图说明Description of drawings
图1是本发明提供的电磁暂态小步长仿真系统仿真流程示意图;Fig. 1 is the simulation flow diagram of electromagnetic transient small-step simulation system provided by the present invention;
图2是本发明提供的电磁暂态小步长仿真系统结构示意图;Fig. 2 is the structural representation of the electromagnetic transient small-step simulation system provided by the present invention;
图3是本发明提供的电磁暂态小步长仿真系统时序图。Fig. 3 is a timing diagram of the electromagnetic transient small-step simulation system provided by the present invention.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式作进一步的详细说明。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.
以下描述和附图充分地示出本发明的具体实施方案,以使本领域的技术人员能够实践它们。其他实施方案可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的组件和功能是可选的,并且操作的顺序可以变化。一些实施方案的部分和特征可以被包括在或替换其他实施方案的部分和特征。本发明的实施方案的范围包括权利要求书的整个范围,以及权利要求书的所有可获得的等同物。在本文中,本发明的这些实施方案可以被单独地或总地用术语“发明”来表示,这仅仅是为了方便,并且如果事实上公开了超过一个的发明,不是要自动地限制该应用的范围为任何单个发明或发明构思。The following description and drawings illustrate specific embodiments of the invention sufficiently to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely represent possible variations. Individual components and functions are optional unless explicitly required, and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. The scope of embodiments of the present invention includes the full scope of the claims, and all available equivalents of the claims. These embodiments of the present invention may be referred to herein, individually or collectively, by the term "invention", which is for convenience only and is not intended to automatically limit the application if in fact more than one invention is disclosed The scope is any individual invention or inventive concept.
实施例一Embodiment one
本发明解决其技术问题所采用的方案是:一种基于FPGA平台的电磁暂态小步长仿真方法,针对仿真软件无法达到实时性要求的电磁暂态仿真进行硬件加速。电磁暂态仿真步长为微秒量级,仿真软件无法达到实时性要求,因此在本发明的小步长系统上完成。由大步长系统形成电网的拓扑结构、元件参数信息、电导矩阵及其逆矩阵以及仿真所需的常量参数,通过数据交互对小步长系统进行初始化。之后小步长系统独立地对各元件进行并行仿真迭代运算,并对节点电流向量和节点电压向量进行求解。本系统采用双精度浮点数作为基本数据格式,从而保证迭代过程中的仿真精度。设小步长系统的仿真步长为T1,大步长系统的仿真步长为T2,N为正整数,那么小步长迭代次数KLOOP=N·T2/T1时进行一次大小步长仿真系统的数据交互,从而完成对电网的分网并行仿真运算。The solution adopted by the present invention to solve the technical problem is: an electromagnetic transient simulation method based on an FPGA platform with a small step size, and hardware acceleration is performed for the electromagnetic transient simulation that the simulation software cannot meet the real-time requirement. The step size of the electromagnetic transient simulation is on the order of microseconds, and the simulation software cannot meet the real-time requirement, so it is completed on the small step size system of the present invention. The topology of the power grid, component parameter information, conductance matrix and its inverse matrix, and constant parameters required for simulation are formed from the large-step system, and the small-step system is initialized through data interaction. Afterwards, the small step size system independently performs parallel simulation iterative operations on each component, and solves the node current vector and node voltage vector. The system uses double-precision floating-point numbers as the basic data format to ensure the simulation accuracy in the iterative process. Assume that the simulation step size of the small step size system is T1, the simulation step size of the large step size system is T2, and N is a positive integer, then when the number of small step size iterations KLOOP=N·T2/T1, carry out a large step size simulation system Data interaction, so as to complete the parallel simulation operation of the sub-network of the power grid.
本发明利用FPGA仿真平台的特点,以固定系统频率及仿真步长进行电磁暂态仿真运算,对电网中的不同元器件进行独立且并行的仿真运算,并将仿真结果周期性地返还给大步长系统。为了实现该仿真系统,如图1所示,本发明采用以下方法和步骤:The invention utilizes the characteristics of the FPGA simulation platform to perform electromagnetic transient simulation calculations with fixed system frequency and simulation step size, independently and parallel simulation calculations for different components in the power grid, and periodically returns the simulation results to the big step long system. In order to realize the simulation system, as shown in Figure 1, the present invention adopts the following methods and steps:
步骤1,从大步长仿真系统接收初始化数据,FPGA平台的电磁暂态小步长仿真系统将交互数据写入、进行初始化。Step 1: Receive initialization data from the large-step simulation system, and the electromagnetic transient small-step simulation system of the FPGA platform writes and initializes the interactive data.
步骤2,设置总仿真时间t=0,仿真开始。Step 2, set the total simulation time t=0, and start the simulation.
步骤3,通过电导逆矩阵G2 -1和节点电流向量Ihis的矩阵乘法求解节点电压向量Vs;Step 3, solve the node voltage vector V s through the matrix multiplication of the conductance inverse matrix G 2 -1 and the node current vector I his ;
步骤4,根据开关动作状态判断是否选取新的电导矩阵,并完成相应配置。Step 4, judging whether to select a new conductance matrix according to the switch action state, and completing the corresponding configuration.
步骤5,通过电导逆矩阵和节点电流向量的矩阵乘法求解节点电压向量。Step 5, solve the node voltage vector through the matrix multiplication of the conductance inverse matrix and the node current vector.
步骤6,判断总仿真时间t是否大于设置的最大仿真时间tfinal,若总仿真时间t已经达到最大仿真时间tfinal,那么输出最终的仿真结果,并停止仿真系统;否则,进入步骤7。Step 6. Determine whether the total simulation time t is greater than the set maximum simulation time tfinal. If the total simulation time t has reached the maximum simulation time tfinal, then output the final simulation result and stop the simulation system; otherwise, go to step 7.
步骤7,总仿真时间t加上仿真一个小步长的时间dt,t=t+dt。Step 7, the total simulation time t plus the simulation time dt of a small step, t=t+dt.
步骤8,在各个元件区独立且并行地完成计算更新等值历史电流源的工作,并对每种元件对其两端的节点电流注入值进行累加。In step 8, the work of calculating and updating the equivalent historical current source is completed independently and in parallel in each component area, and the node current injection values at both ends of each component are accumulated.
步骤9,将每个节点上不同元件的节点电流注入值进行累加,然后回到步骤4,进行下一次的仿真迭代运算,并周期性地和大步长仿真系统进行数据交互。In step 9, the node current injection values of different components on each node are accumulated, and then return to step 4 for the next simulation iterative operation, and periodically interact with the large-step simulation system for data.
在所述步骤1中,大步长仿真系统是指基于外部服务器端的大步长仿真系统,该系统需要负责电网的分网解耦,以及为电磁暂态小步长仿真系统提供仿真所需的初始化数据以及交互数据。In said step 1, the large-step simulation system refers to a large-step simulation system based on an external server, which needs to be responsible for the decoupling of the grid sub-network and provide the electromagnetic transient small-step simulation system with the required simulation information. Initialization data and interaction data.
在所述步骤1中,初始化数据包含了小步长系统网络电导矩阵及其逆矩阵、元件配置信息、电磁暂态小步长仿真所需的常量和元件变量。其中,电路拓扑结构的描述主要来自不同元件两端的节点编号,以nmax作为电磁暂态小步长仿真系统支持的最大节点数量,将电网节点编号为1至nmax,由元件两端节点的编号就能确定该元件在电网中的位置。In the step 1, the initialization data includes the conductance matrix of the small-step system network and its inverse matrix, component configuration information, constants and component variables required for electromagnetic transient small-step simulation. Among them, the description of the circuit topology mainly comes from the node numbers at both ends of different components. Taking nmax as the maximum number of nodes supported by the electromagnetic transient small-step simulation system, the grid nodes are numbered from 1 to nmax, and the number of nodes at both ends of the components is The position of the element in the grid can be determined.
在所述步骤3中,求解节点电压向量Vs的公式如下:In said step 3, the formula for solving the node voltage vector V s is as follows:
G2 -1Ihis=Vs (1)G 2 -1 I his = V s (1)
其中:G2 -1为电导逆矩阵;Ihis为节点电流向量;Vs为节点电压向量。Among them: G 2 -1 is the conductance inverse matrix; I his is the node current vector; V s is the node voltage vector.
在所述步骤4中,开关动作状态由大步长系统通过周期性的数据交互方式发送到小步长仿真系统上。In step 4, the switching action state is sent from the large-step system to the small-step simulation system through periodic data interaction.
在所述步骤8中,各元件区的等值历史电流源求解依据EMTP算法完成,并且针对电流累加耗时较长的元件,采用多个电流累加模块并行计算的方法来提升系统整体时序。并且元件区计算使用的运算器均利用FPGA设计套件自带的IP生成。In the step 8, the calculation of the equivalent historical current source of each component area is completed according to the EMTP algorithm, and for the components whose current accumulation takes a long time, the method of parallel calculation of multiple current accumulation modules is used to improve the overall timing of the system. And the arithmetic units used in the calculation of the component area are all generated using the IP that comes with the FPGA design kit.
在所述步骤9中,设小步长系统的仿真步长为T1,大步长系统的仿真步长为T2,N为正整数,那么小步长迭代次数KLOOP=N·T2/T1时进行一次大小步长仿真系统的数据交互。每次大小步长仿真系统交互需先由大步长仿真系统发送仿真实时激励信号、新的仿真数据以及大步长仿真系统仿真所需的节点编号,小步长仿真系统将大步长仿真系统发送的数据写入总线,并将新的数据用于下一次小步长开始的仿真运算;同时,小步长仿真系统会在该次交互中依据大步长仿真系统发送的节点编号将相应节点的仿真数据返还给大步长仿真系统。大步长仿真系统发送的仿真数据包括:元件仿真的新参数、开关动作状态等。In said step 9, set the simulation step size of the small step size system as T1, the simulation step size of the large step size system as T2, and N is a positive integer, then carry out when the number of small step size iterations KLOOP=N T2/T1 Data interaction of a large and small step size simulation system. Each interaction between large and small step simulation systems needs to send simulation real-time excitation signals, new simulation data, and node numbers required for large step simulation system simulation by the large step simulation system, and the small step simulation system will send the large step simulation system The sent data is written into the bus, and the new data is used for the next simulation operation with a small step size; at the same time, the small step size simulation system will send the corresponding node number according to the node number sent by the large step size simulation system in this interaction. The simulation data is returned to the large-step simulation system. The simulation data sent by the large-step simulation system includes: new parameters of component simulation, switch action status, etc.
实施例二Embodiment two
基于同样的发明构思,本发明还提供一种基于FPGA平台的电磁暂态小步长仿真系统,系统结构如图2所示,主要包含以下模块:元件区、核心计算区、公共存储模块、大小步长接口模块以及顶层控制模块。其中,元件区包含计算模块、控制模块和节点电流累加模块;核心计算区负责矩阵运算;公共存储模块负责仿真数据的存储;大小步长接口模块负责大步长仿真系统和电磁暂态小步长仿真系统的数据交互;顶层控制模块负责整体时序逻辑及激励信号的产生。外部服务器端的大步长仿真系统通过大小步长接口模块与电磁暂态的小步长仿真系统进行数据交互。Based on the same inventive concept, the present invention also provides an electromagnetic transient small-step simulation system based on FPGA platform. The system structure is shown in Fig. Step size interface module and top-level control module. Among them, the component area includes the calculation module, control module and node current accumulation module; the core calculation area is responsible for matrix operation; the public storage module is responsible for the storage of simulation data; the large and small step interface module is responsible for the large step simulation system and the electromagnetic transient small step The data interaction of the simulation system; the top-level control module is responsible for the overall timing logic and the generation of excitation signals. The large-step-size simulation system on the external server side performs data interaction with the small-step-size simulation system of electromagnetic transient state through the large-scale step-size interface module.
仿真系统包含的元件有:电容、电感、电阻等常规元件SLA,单向绕阻变压器元件STB,单相交流独立电流源SCI,单相交流独立电压源SCV,理想电流源CIS,理想电压源CVS,开关元件BRK等。本系统采用双精度浮点数作为基本数据格式。The components included in the simulation system are: capacitors, inductors, resistors and other conventional components SLA, unidirectional winding transformer components STB, single-phase AC independent current source SCI, single-phase AC independent voltage source SCV, ideal current source CIS, ideal voltage source CVS , switching element BRK etc. The system uses double-precision floating-point numbers as the basic data format.
实施例三Embodiment three
以一次完整的仿真流程作为本系统的实施实例。不妨设大步长为50us,小步长为2us,整体时序如图3所示。Take a complete simulation process as an implementation example of this system. It is advisable to set the large step size as 50us and the small step size as 2us. The overall timing is shown in Figure 3.
步骤1,从大步长仿真系统接收初始化数据,FPGA平台的电磁暂态小步长仿真系统将交互数据写入、进行初始化。初始化数据包括:网络电导矩阵及其逆矩阵、元件配置信息、电磁暂态小步长仿真所需的常量和元件变量。Step 1: Receive initialization data from the large-step simulation system, and the electromagnetic transient small-step simulation system of the FPGA platform writes and initializes the interactive data. The initialization data includes: network conductance matrix and its inverse matrix, component configuration information, constants and component variables required for electromagnetic transient small-step simulation.
步骤2,设置总仿真时间t=0,仿真开始。Step 2, set the total simulation time t=0, and start the simulation.
步骤3,通过电导逆矩阵G2 -1和节点电流向量Ihis的矩阵乘法求解节点电压向量Vs。该操作由核心计算区完成。Step 3, solve the node voltage vector V s through the matrix multiplication of the conductance inverse matrix G 2 -1 and the node current vector I his . This operation is done by the core computing area.
步骤4,根据开关动作状态判断是否选取新的电导矩阵,并完成相应配置。开关动作状态变化由大步长仿真系统通过数据交互的形式发送给小步长仿真系统。Step 4, judging whether to select a new conductance matrix according to the switch action state, and completing the corresponding configuration. The state change of switch action is sent from the large-step simulation system to the small-step simulation system in the form of data interaction.
步骤5,通过电导逆矩阵和节点电流向量的矩阵乘法求解节点电压向量。该操作由核心计算区完成。Step 5, solve the node voltage vector through the matrix multiplication of the conductance inverse matrix and the node current vector. This operation is done by the core computing area.
步骤6,判断总仿真时间t是否大于设置的最大仿真时间tfinal,若t已经达到tfinal,那么输出最终的仿真结果,并停止仿真系统;否则,进入步骤7。Step 6, judge whether the total simulation time t is greater than the set maximum simulation time tfinal, if t has reached tfinal, then output the final simulation result, and stop the simulation system; otherwise, go to step 7.
步骤7,总仿真时间加上仿真一个小步长的时间dt,t=t+dt。依据之前假设,dt=2us。Step 7, the total simulation time plus the simulation time dt of a small step size, t=t+dt. According to the previous assumption, dt=2us.
步骤8,在各个元件区独立且并行地完成计算更新等值历史电流源的工作,并对每种元件对其两端的节点电流注入值进行累加。对于节点电流注入值累加时间过长的元件,采用多个累加模块并行计算的方式优化时序。In step 8, the work of calculating and updating the equivalent historical current source is completed independently and in parallel in each component area, and the node current injection values at both ends of each component are accumulated. For components whose accumulation time of the node current injection value is too long, the time sequence is optimized by using multiple accumulation modules to calculate in parallel.
步骤9,将每个节点上不同元件的节点电流注入值进行累加。然后回到步骤4,进行下一次的仿真迭代运算,并周期性地和大步长仿真系统进行数据交互。依据之前假设,每经过50/2=25次迭代进行一次数据交互。交互过程中,电磁暂态小步长仿真系统接收新的仿真数据,并依据大步长仿真系统的要求返还相应的仿真数据。In step 9, the node current injection values of different components on each node are accumulated. Then go back to step 4, carry out the next simulation iterative operation, and periodically interact with the large-step simulation system for data. According to the previous assumption, data interaction is performed every 50/2=25 iterations. During the interactive process, the electromagnetic transient small-step simulation system receives new simulation data and returns corresponding simulation data according to the requirements of the large-step simulation system.
本发明以FPGA作为仿真平台,利用了FPGA成本较低、计算单元高度并行化、适合高度流水作业的特点,同时对不同的电网元器件进行并行仿真计算,系统整体高度流水化,在保证了仿真精度的情况下提升了系统的工作频率和吞吐率。The present invention uses FPGA as a simulation platform, utilizes the characteristics of low FPGA cost, highly parallelized computing units, and is suitable for highly streamlined operations. Simultaneously, parallel simulation calculations are performed on different power grid components, and the overall system is highly streamlined, ensuring simulation The operating frequency and throughput of the system are improved without compromising the accuracy.
以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员依然可以对本发明的具体实施方式进行修改或者等同替换,这些未脱离本发明精神和范围的任何修改或者等同替换,均在申请待批的本发明的权利要求保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art can still modify or equivalently replace the specific embodiments of the present invention. , any modifications or equivalent replacements that do not deviate from the spirit and scope of the present invention are within the protection scope of the claims of the present invention pending application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710181974.8A CN108628182A (en) | 2017-03-24 | 2017-03-24 | A kind of small step-length emulation mode of electro-magnetic transient and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710181974.8A CN108628182A (en) | 2017-03-24 | 2017-03-24 | A kind of small step-length emulation mode of electro-magnetic transient and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108628182A true CN108628182A (en) | 2018-10-09 |
Family
ID=63707591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710181974.8A Pending CN108628182A (en) | 2017-03-24 | 2017-03-24 | A kind of small step-length emulation mode of electro-magnetic transient and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628182A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109190320A (en) * | 2018-11-02 | 2019-01-11 | 贵州电网有限责任公司 | Parallel Heterogeneous simulation method suitable for ADPSS double-fed blower closed-loop test |
CN109917672A (en) * | 2019-03-29 | 2019-06-21 | 中国人民解放军空军研究院通信与导航研究所 | A kind of semi-matter simulating system and method for navigation and control loop |
CN111460648A (en) * | 2020-03-30 | 2020-07-28 | 国网福建省电力有限公司电力科学研究院 | A real-time simulation data communication method for electromagnetic transients in power systems |
CN113128074A (en) * | 2021-05-13 | 2021-07-16 | 清鸾科技(成都)有限公司 | Electromagnetic transient simulation method and system, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201298233Y (en) * | 2008-10-22 | 2009-08-26 | 西北电网有限公司 | A Distributed Simulation Device of Electromagnetic Transient Process in Power System |
CN103942372A (en) * | 2014-04-04 | 2014-07-23 | 天津大学 | Multi-rate interface method for transient real-time simulation of active power distribution network based on FPGA |
KR101443854B1 (en) * | 2014-02-27 | 2014-09-23 | 연세대학교 산학협력단 | Modeling structure for switching device and method for electromagnetic transients program simulation using it |
CN105005652A (en) * | 2015-07-09 | 2015-10-28 | 中国电力科学研究院 | FPGA based small step real-time simulation system |
CN106250614A (en) * | 2016-07-29 | 2016-12-21 | 上海交通大学 | It is applicable to the data processing method of FPGA platform electro-magnetic transient real-time simulation |
CN106294897A (en) * | 2015-05-22 | 2017-01-04 | 中国电力科学研究院 | A kind of implementation method being applicable to electro-magnetic transient Multiple Time Scales real-time simulation interface |
-
2017
- 2017-03-24 CN CN201710181974.8A patent/CN108628182A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201298233Y (en) * | 2008-10-22 | 2009-08-26 | 西北电网有限公司 | A Distributed Simulation Device of Electromagnetic Transient Process in Power System |
KR101443854B1 (en) * | 2014-02-27 | 2014-09-23 | 연세대학교 산학협력단 | Modeling structure for switching device and method for electromagnetic transients program simulation using it |
CN103942372A (en) * | 2014-04-04 | 2014-07-23 | 天津大学 | Multi-rate interface method for transient real-time simulation of active power distribution network based on FPGA |
CN106294897A (en) * | 2015-05-22 | 2017-01-04 | 中国电力科学研究院 | A kind of implementation method being applicable to electro-magnetic transient Multiple Time Scales real-time simulation interface |
CN105005652A (en) * | 2015-07-09 | 2015-10-28 | 中国电力科学研究院 | FPGA based small step real-time simulation system |
CN106250614A (en) * | 2016-07-29 | 2016-12-21 | 上海交通大学 | It is applicable to the data processing method of FPGA platform electro-magnetic transient real-time simulation |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109190320A (en) * | 2018-11-02 | 2019-01-11 | 贵州电网有限责任公司 | Parallel Heterogeneous simulation method suitable for ADPSS double-fed blower closed-loop test |
CN109917672A (en) * | 2019-03-29 | 2019-06-21 | 中国人民解放军空军研究院通信与导航研究所 | A kind of semi-matter simulating system and method for navigation and control loop |
CN111460648A (en) * | 2020-03-30 | 2020-07-28 | 国网福建省电力有限公司电力科学研究院 | A real-time simulation data communication method for electromagnetic transients in power systems |
CN111460648B (en) * | 2020-03-30 | 2022-06-07 | 国网福建省电力有限公司电力科学研究院 | Electromagnetic transient real-time simulation data communication method for power system |
CN113128074A (en) * | 2021-05-13 | 2021-07-16 | 清鸾科技(成都)有限公司 | Electromagnetic transient simulation method and system, storage medium and electronic equipment |
CN113128074B (en) * | 2021-05-13 | 2023-03-14 | 清鸾科技(成都)有限公司 | Electromagnetic transient simulation method and system, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021254538A1 (en) | Method and system for simulating power network including large-scale power electronic devices | |
CN101719182B (en) | Parallel partition electromagnetic transient digital simulation method of AC and DC power system | |
CN102750416B (en) | Topological subnetting method of electromagnetic transient simulation containing switching characteristic circuit | |
CN104462661B (en) | Electronic power switch interpolation real-time emulation method | |
CN103116665B (en) | A kind of MMC topological transformation device high-efficiency electromagnetic transient emulation method | |
CN103995734A (en) | Electric power system hybrid real-time simulation system and simulation method based on RTDS | |
CN108628182A (en) | A kind of small step-length emulation mode of electro-magnetic transient and system | |
CN105260516B (en) | A kind of electromagnetical transient emulation method of the sub-network containing switching characteristic | |
CN109918733A (en) | A method and device for electromagnetic transient equivalent modeling of doubly-fed wind turbines | |
CN107423476B (en) | Parallel communication method for real-time simulators of active power distribution network based on multiple FPGA | |
CN110445174B (en) | A Transient Stability Evaluation Method of Wind Farm System Considering the Effect of Random Wind Speed | |
CN108448631A (en) | Dynamic phasor modeling method for distribution network with distributed generation access based on model reduction | |
CN102841962B (en) | Electromagnetic-electromechanical transient hybrid real-time simulation interface interaction method based on advanced calculation | |
CN117353288A (en) | Simulation analysis method, system and medium for multi-flow fusion active power distribution network | |
Zheng et al. | An event-driven parallel acceleration real-time simulation for power electronic systems without simulation distortion in circuit partitioning | |
CN108063442A (en) | A kind of electric power system alternating current power grid real-time simulation apparatus and its emulation mode | |
CN106407492A (en) | Micro-grid real-time simulation method for processing multi-break switches of power systems | |
Bai et al. | Automatic modeling and optimization for the digital twin of a regional multi-energy system | |
CN106886617A (en) | A kind of multi tate electro-magnetic transient subnetting method containing many VSC | |
CN204229391U (en) | Hybrid simulation interface and there is the electric system hybrid real-time simulation equipment of this interface | |
CN109508479B (en) | Generalized method of parameter configuration for real-time simulator of active distribution network based on FPGA | |
CN112182815A (en) | Multi-rate real-time simulation method based on Nonton equivalence | |
WO2021031263A1 (en) | Hybrid electromagnetic transient simulation method suitable for real-time simulation of microgrid | |
CN103279626B (en) | A kind of Building of Simulation Model method and system | |
Qingsheng et al. | Multi-rate Real-time Simulation Method for Photovoltaic Power Generation System Based on FPGA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181009 |