Large power grid cascading failure electromagnetic transient simulation scene construction method and system and medium

By constructing an electromagnetic transient model in the chain fault simulation of large power grids, the lack of electromagnetic transient simulation in the existing technology is solved, and the simulation efficiency and accuracy of new energy, DC and secondary control systems in chain faults are improved.

CN120016442APending Publication Date: 2025-05-16CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510049050.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The existing technology lacks a large power grid chain fault simulation model based on electromagnetic transient simulation, and it is difficult to effectively verify the behavior of new energy, DC and secondary control systems in chain faults.

Method used

A method for constructing an electromagnetic transient simulation scenario of chain faults in large power grids is proposed. By obtaining data from electromechanical transient models, an electromagnetic transient model of the AC power grid is established, and combined with the models of DC, new energy and relay devices, the electromagnetic transient automation modeling of the entire grid is realized.

Benefits of technology

The verification efficiency of electromagnetic transient means in the simulation of chain faults of large power grids has been improved, especially in the modeling and simulation of new energy, DC and secondary control systems, achieving higher accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120016442A_ABST
    Figure CN120016442A_ABST
Patent Text Reader

Abstract

The invention discloses a large power grid cascading failure electromagnetic transient simulation scene construction method, and discloses a system with the large power grid cascading failure electromagnetic transient simulation scene construction method and a medium. According to the large power grid cascading failure electromagnetic transient simulation scene construction method, a cascading failure scene constructed by a cascading failure simulation scene based on automatic modeling and splicing of a primary system and a secondary system of a large power grid is provided, and compared with a cascading failure scene based on power flow data or electromechanical transient simulation data, the cascading failure scene is higher in precision and higher in reliability. And the cascading failure scene modeling requirement of a novel power system containing a large number of power electronic equipment can be met. The efficiency and scale of electromagnetic transient modeling of the whole large power grid are remarkably improved, and an effective simulation means is provided for accurate reproduction of a cascading failure evolution process of the large power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electromagnetic transient modeling of power systems, and in particular to a method and system for constructing electromagnetic transient simulation scenarios of large power grid cascading failures. Background Art

[0002] Power system cascading failures refer to the phenomenon that a series of causal chain reactions are triggered by the failure or failure of certain components in the system, and some equipment is successively out of operation, resulting in large-scale power outages or even collapse of the system. In order to prevent and deal with power system cascading failures, a large number of scholars have conducted cascading failure research and inferred and analyzed the evolution path of cascading failures. Whether these cascading failure paths are correct and consistent with the actual operation of the power grid, it is necessary to first select a certain model, build a cascading failure simulation scenario, and then conduct cascading failure simulation analysis verification.

[0003] The model used for cascading failure simulation is a calculation model based on the power system analysis algorithm, which can be specifically divided into steady-state models, transient models and their hybrids. Steady-state models include steady-state models based on DC power flow and steady-state models based on AC power flow. Transient models include transient models based on electromechanical transient simulation and transient models based on electromagnetic transient simulation. A hybrid of steady-state models and transient models is a cascading failure simulation model based on power flow calculation and electromechanical transient simulation.

[0004] The steady-state model of cascading failure simulation takes into account the power flow characteristics of the power grid, regards cascading failures as discrete state transfer processes, focuses on the power flow changes after the transient process of each level of failure disappears, and ignores the transient process and system stability issues after the failure occurs. The mathematical model of the steady-state model is a set of nonlinear equations, which is widely used in cascading failure analysis due to its fast calculation speed.

[0005] The transient model of cascading failure simulation uses differential algebraic equations. Through time domain simulation, it can effectively simulate the system state, component actions and the mutual influence between control measures during the development of cascading failures, provide accurate system dynamic information, and have high simulation accuracy. It can be used for dynamic simulation of the entire process of cascading failures. However, due to the high complexity of the model, the amount of calculation is much greater than that of the steady-state model. At present, the most commonly used transient model is the cascading failure simulation model based on electromechanical transients. There is a lack of relevant literature on cascading failures based on electromagnetic transient simulation. Summary of the invention

[0006] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method for constructing a large power grid cascading fault electromagnetic transient simulation scenario, which can realize the electromagnetic transient automatic modeling of the primary system and related secondary systems of the large power grid, and improve the efficiency of electromagnetic transient simulation verification of cascading faults, especially when modeling involving new energy, DC, and secondary control systems.

[0007] The present invention also proposes a system and a medium having the above-mentioned large power grid cascading fault electromagnetic transient simulation scene construction method.

[0008] The method for constructing a large power grid cascading fault electromagnetic transient simulation scenario according to the first aspect of the present invention is characterized by comprising the following steps:

[0009] Based on the description of the PSASP electromechanical transient model, an AC power grid ADPSS electromagnetic transient model of the power grid operation mode is established, and AC power grid flow data is obtained from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitude and phase angle;

[0010] According to the DC and new energy related AC bus positions in the PSASP electromechanical transient data, the ADPSS electromagnetic transient model is imported;

[0011] Determine the modeling scope of relay protection and safety and automation devices according to the chain fault accident chain information, and then build and install the electromagnetic transient model of relay protection and safety and automation devices based on the existing user-defined model in the electromechanical transient data by using the basic function box mapping and input-output adaptation method;

[0012] The relay protection and safety devices, DC, and new energy electromagnetic transient models are initialized respectively.

[0013] The method for constructing electromagnetic transient simulation scenarios of chain failures in a large power grid according to an embodiment of the present invention has at least the following beneficial effects: the method for automatically constructing electromagnetic transient simulation scenarios of chain failures in a large power grid proposed by the present invention starts from the power grid operation mode described by a certain electromechanical transient model, and based on the existing chain failure accident chain, for the AC power grid, the method of device model mapping and parameter conversion is used to automatically model the electromagnetic transient of the AC power grid; for photovoltaic new energy stations and DC power transmission systems, the existing model library is used and spliced ​​with the AC power grid model; for the associated equipment on the chain failure accident chain, the existing electromechanical transient relay and safety device custom model and its associated equipment are used to automatically convert them into electromagnetic transient models, and the basic function box is automatically supplemented to realize the conversion of the effective value of the input and output quantity to the instantaneous quantity; for the spliced ​​large power grid full electromagnetic transient model, open-loop iteration, clamped power supply and other technical measures are used to realize the automatic initialization of the electromagnetic transient model of the entire network.

[0014] According to some embodiments of the present invention, the step of establishing an AC power grid ADPSS electromagnetic transient model of a power grid operation mode based on the PSASP electromechanical transient model description, and obtaining AC power grid flow data from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitudes and phase angles, comprises:

[0015] Reading PSASP electromechanical transient model data and performing rationality checks on equipment model parameters; wherein the equipment includes generators, transformers, AC lines and loads;

[0016] Convert the components in the PSASP electromechanical transient model into the components in the ADPSS electromagnetic transient model based on the preset mapping rules;

[0017] According to the bus name, the bus voltage amplitude and phase angle in the PSASP electromechanical transient data are updated to the bus corresponding to the ADPSS electromagnetic transient data.

[0018] According to some embodiments of the present invention, it is characterized in that the step of importing the ADPSS electromagnetic transient model according to the DC and new energy associated AC bus positions in the PSASP electromechanical transient data comprises:

[0019] According to the name of the electromechanical transient conventional DC system, the AC-side busbar of the AC-DC system converter transformer is determined in the electromechanical transient data, wherein the AC-side busbar of the converter transformer includes a rectifier-side busbar and an inverter-side busbar;

[0020] Determine the bus corresponding to the AC side bus of the converter transformer in the ADPSS electromagnetic transient model of the AC power grid;

[0021] In ADPSS, import the DC electromagnetic transient model project corresponding to the DC name from the DC electromagnetic transient model library by importing the project;

[0022] An external bus is provided at the rectifier-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the rectifier-side bus; an external bus is provided at the inverter-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the inverter-side bus;

[0023] Perform the above steps for each new energy station in the electromechanical transient data to import the corresponding new energy model.

[0024] According to some embodiments of the present invention, it is characterized in that the step of defining the modeling scope of the relay protection and safety automatic device according to the chain fault accident chain information, and then constructing and installing the electromagnetic transient model of the relay protection and safety automatic device based on the existing user-defined model in the electromechanical transient data by using the basic function block mapping and input-output adaptation method includes:

[0025] Establish the mapping relationship and parameter conversion rules from the PSASP electromechanical transient user-defined basic function box to the ADPSS electromagnetic transient user-defined basic function box;

[0026] According to the equipment component information provided by the chain fault accident chain, the relevant relay protection and safety automatic device user-defined model is found from the PSASP electromechanical transient data, and converted into the ADPSS electromagnetic transient user-defined model according to the mapping relationship and parameter conversion rules, and the model input and output installation information is recorded;

[0027] The input and output of the relay protection and safety device models that have been converted into electromagnetic transient models are supplemented and adapted using the ADPSS electromagnetic transient basic function frame;

[0028] Based on the existing model structure description, the basic function boxes of the model are traversed by using the breadth-first search algorithm. The basic function boxes are recorded according to the number of traversed layers and the order, and the coordinates are assigned to obtain the hierarchical traversal record information.

[0029] Based on the application interface provided by ADPSS, the basic function box coordinates are set according to the hierarchical traversal record information in the ADPSS interface environment, the basic function box parameters are set, the model input and output installation information is set, the basic function box and its topological connection are drawn, and the modeling of the relay protection and safety automatic device model is completed.

[0030] According to some embodiments of the present invention, in the steps of respectively initializing the relay protection and safety automatic device, direct current, and new energy electromagnetic transient model, the process of automatically initializing the electromagnetic transient model of the relay protection and safety automatic device includes:

[0031] According to the bus voltage amplitude, phase angle and primary equipment parameters and status of the AC power grid, calculate the instantaneous value, initial phase angle and initial effective value of the three-phase bus voltage ABC at the simulation zero time;

[0032] Calculate the instantaneous value of the primary equipment current according to the instantaneous value of the ABC three-phase and the equipment parameters; calculate the initial value of the output according to the status of the primary equipment;

[0033] Disconnect the output switch of the electromagnetic transient model of the relay protection and safety automatic device, and the model will run in open loop;

[0034] The input remains constant, and the model state quantities are calculated iteratively until the residuals of the two calculated values ​​of all state quantities are less than 0.0001, and the calculated output quantities are consistent with the initial output quantities;

[0035] Set up the model for closed-loop operation and complete automatic initialization of the electromagnetic transient model of the relay protection and safety and automation devices.

[0036] According to some embodiments of the present invention, in the steps of respectively initializing the relay protection and safety device, the DC, and the new energy electromagnetic transient model, the process of automatically initializing the DC electromagnetic transient model includes:

[0037] Before the simulation starts, a clamped voltage source and a three-phase switch element connected to the system are added to the AC / DC boundary bus. The power supply voltage amplitude and phase angle are taken from the AC bus power flow results to isolate the disturbance of the DC to the AC system and provide voltage support for the DC system to start and stabilize.

[0038] According to the electromechanical transient DC power flow results of PSASP, set the tap position of the electromagnetic DC model commutation transformer, the switching amount of the AC filter, and the DC power, DC voltage, and DC current command values;

[0039] Start the simulation calculation, and detect the difference between the DC power simulation result and the command value in each simulation step. When the difference between the two is less than 0.0001, it can be approximately considered that the DC enters a steady state. When the current of the three-phase switching element passes through zero, the clamping power supply is disconnected, and the DC electromagnetic transient model is automatically initialized.

[0040] According to some embodiments of the present invention, in the steps of respectively initializing the relay protection and safety device, the DC, and the new energy electromagnetic transient model, the process of automatically initializing the new energy electromagnetic transient model includes:

[0041] According to the name of the new energy port bus, the voltage amplitude V and voltage phase angle A, active power P0 and reactive power Q0 of the new energy station are obtained from the PSASP electromechanical transient power flow results;

[0042] A grounded three-phase clamped voltage source is added at the disconnected bus of the new energy station, and connected to the new energy port bus through a three-phase switch element that is initially closed. The voltage amplitude of the clamped power source is V, and the phase angle is A.

[0043] Assume that the active power command value Pref = P0 and the reactive power command value Qref = Q0 of the new energy station control system;

[0044] Start the simulation, and use the steady-state automatic adjustment function of the new energy station provided by ADPSS to adjust the active command value Pref, reactive command value Qref and SVG reactive command value Qsvg_ref of the new energy station control system until the active and reactive power of the clamped power supply tend to 0, disconnect the three-phase switch of the clamped power supply, and complete the automatic initialization process of the new energy station.

[0045] A large power grid cascading fault electromagnetic transient simulation scenario construction system according to an embodiment of the second aspect of the present invention is characterized by comprising:

[0046] The electromagnetic transient modeling module can establish an ADPSS electromagnetic transient model of the AC power grid in the power grid operation mode based on the PSASP electromechanical transient model description, and obtain AC power grid flow data from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitude and phase angle;

[0047] A data import module, capable of importing the ADPSS electromagnetic transient model according to the DC and new energy related AC bus positions in the PSASP electromechanical transient data;

[0048] The relay protection and safety automatic device modeling module can define the modeling scope of the relay protection and safety automatic device according to the chain fault accident chain information, and then build and install the electromagnetic transient model of the relay protection and safety automatic device based on the existing user-defined model in the electromechanical transient data by using the basic function box mapping and input-output adaptation method;

[0049] The initialization module can initialize the relay protection and safety devices, DC, and new energy electromagnetic transient models respectively.

[0050] According to some embodiments of the present invention, the electromagnetic transient modeling module includes:

[0051] Reading PSASP electromechanical transient model data and performing rationality checks on equipment model parameters; wherein the equipment includes generators, transformers, AC lines and loads;

[0052] Convert the components in the PSASP electromechanical transient model into the components in the ADPSS electromagnetic transient model based on the preset mapping rules;

[0053] According to the bus name, the bus voltage amplitude and phase angle in the PSASP electromechanical transient data are updated to the bus corresponding to the ADPSS electromagnetic transient data.

[0054] According to some embodiments of the present invention, the data import module includes:

[0055] According to the name of the electromechanical transient conventional DC system, the AC-side busbar of the AC-DC system converter transformer is determined in the electromechanical transient data, wherein the AC-side busbar of the converter transformer includes a rectifier-side busbar and an inverter-side busbar;

[0056] Determine the bus corresponding to the AC side bus of the converter transformer in the ADPSS electromagnetic transient model of the AC power grid;

[0057] In ADPSS, import the DC electromagnetic transient model project corresponding to the DC name from the DC electromagnetic transient model library by importing the project;

[0058] An external bus is provided at the rectifier-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the rectifier-side bus; an external bus is provided at the inverter-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the inverter-side bus;

[0059] Perform the above steps for each new energy station in the electromechanical transient data to import the corresponding new energy model.

[0060] According to some embodiments of the present invention, the relay protection and safety device modeling module includes:

[0061] Establish the mapping relationship and parameter conversion rules from the PSASP electromechanical transient user-defined basic function box to the ADPSS electromagnetic transient user-defined basic function box;

[0062] According to the equipment component information provided by the chain fault accident chain, the relevant relay protection and safety automatic device user-defined model is found from the PSASP electromechanical transient data, and converted into the ADPSS electromagnetic transient user-defined model according to the mapping relationship and parameter conversion rules, and the model input and output installation information is recorded;

[0063] The input and output of the relay protection and safety device models that have been converted into electromagnetic transient models are supplemented and adapted using the ADPSS electromagnetic transient basic function frame;

[0064] Based on the existing model structure description, the basic function boxes of the model are traversed by using the breadth-first search algorithm. The basic function boxes are recorded according to the number of traversed layers and the order, and the coordinates are assigned to obtain the hierarchical traversal record information.

[0065] Based on the application interface provided by ADPSS, the basic function box coordinates are set according to the hierarchical traversal record information in the ADPSS interface environment, the basic function box parameters are set, the model input and output installation information is set, the basic function box and its topological connection are drawn, and the modeling of the relay protection and safety automatic device model is completed.

[0066] According to some embodiments of the present invention, in the initialization module, the process of automatically initializing the electromagnetic transient model of the relay protection and safety device includes:

[0067] According to the bus voltage amplitude, phase angle and primary equipment parameters and status of the AC power grid, calculate the instantaneous value, initial phase angle and initial effective value of the three-phase bus voltage ABC at the simulation zero time;

[0068] Calculate the instantaneous value of the primary equipment current according to the instantaneous value of the ABC three-phase and the equipment parameters; calculate the initial value of the output according to the status of the primary equipment;

[0069] Disconnect the output switch of the electromagnetic transient model of the relay protection and safety automatic device, and the model will run in open loop;

[0070] The input remains constant, and the model state quantities are calculated iteratively until the residuals of the two calculated values ​​of all state quantities are less than 0.0001, and the calculated output quantities are consistent with the initial output quantities;

[0071] Set up the model for closed-loop operation and complete automatic initialization of the electromagnetic transient model of the relay protection and safety and automation devices.

[0072] According to some embodiments of the present invention, in the initialization module, the process of automatically initializing the DC electromagnetic transient model includes:

[0073] Before the simulation starts, a clamped voltage source and a three-phase switch element connected to the system are added to the AC / DC boundary bus. The power supply voltage amplitude and phase angle are taken from the AC bus power flow results to isolate the disturbance of the DC to the AC system and provide voltage support for the DC system to start and stabilize.

[0074] According to the electromechanical transient DC power flow results of PSASP, set the tap position of the electromagnetic DC model commutation transformer, the switching amount of the AC filter, and the DC power, DC voltage, and DC current command values;

[0075] Start the simulation calculation, and detect the difference between the DC power simulation result and the command value in each simulation step. When the difference between the two is less than 0.0001, it can be approximately considered that the DC enters a steady state. When the current of the three-phase switching element passes through zero, the clamping power supply is disconnected, and the DC electromagnetic transient model is automatically initialized.

[0076] According to some embodiments of the present invention, the process of automatically initializing the new energy electromagnetic transient model of the initialization module includes:

[0077] According to the name of the new energy port bus, the voltage amplitude V and voltage phase angle A, active power P0 and reactive power Q0 of the new energy station are obtained from the PSASP electromechanical transient power flow results;

[0078] A grounded three-phase clamped voltage source is added at the disconnected bus of the new energy station, and connected to the new energy port bus through a three-phase switch element that is initially closed. The voltage amplitude of the clamped power source is V, and the phase angle is A.

[0079] Assume that the active power command value Pref = P0 and the reactive power command value Qref = Q0 of the new energy station control system;

[0080] Start the simulation, and use the steady-state automatic adjustment function of the new energy station provided by ADPSS to adjust the active command value Pref, reactive command value Qref and SVG reactive command value Qsvg_ref of the new energy station control system until the active and reactive power of the clamped power supply tend to 0, disconnect the three-phase switch of the clamped power supply, and complete the automatic initialization process of the new energy station.

[0081] An embodiment of the third aspect of the present invention provides a computer-readable storage medium storing computer-executable instructions for executing the above-mentioned large power grid cascading fault electromagnetic transient simulation scenario construction method.

[0082] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0084] Figure 1 A schematic diagram of the steps of a method for constructing an electromagnetic transient simulation scenario of a large power grid cascading failure according to an embodiment of the present invention;

[0085] Figure 2 A structural block diagram of a system for constructing electromagnetic transient simulation scenarios for large power grid cascading failures provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0086] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0087] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0088] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0089] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.

[0090] The Advanced Digital Power System Simulator (ADPSS) and the Power System Analysis Software Package (PSASP) are commonly used platforms and software in electromagnetic transient modeling.

[0091] The construction of electromagnetic transient simulation scenarios for large power grid lock faults refers to the process of power system simulation analysis, which involves electromagnetic transient modeling of the primary system of the entire grid and the secondary system in the area related to the accident chain based on a certain power grid operation mode and its chain fault accident chain, and electromagnetic transient simulation analysis to verify the effectiveness of the chain fault process and blocking measures. The key to the construction of electromagnetic transient simulation scenarios for chain faults is electromagnetic transient modeling of the primary system and the secondary system in the area related to the accident chain.

[0092] Currently, there is no solution for constructing electromagnetic transient simulation scenarios for large power grid cascading failures. The technology related to the present invention is the parallel simulation method for cascading failures of relay protection and safety automatic devices, which involves the custom modeling of electromechanical transients of the secondary system of the power grid, but does not involve the modeling of the primary system and electromagnetic transients; and the full electromagnetic transient modeling method of the power grid, which involves the automatic modeling of electromagnetic transients of the AC system and DC, but does not involve the automatic modeling of the secondary system, and is not an electromagnetic transient modeling method for cascading failure simulation verification.

[0093] The present invention proposes an automatic construction method and system for electromagnetic transient simulation scenarios of large power grid cascading failures, realizes automatic electromagnetic transient modeling of large power grid primary systems and related secondary systems, and improves the efficiency when electromagnetic transient simulation is used to verify cascading failures, especially when modeling involves new energy, direct current, and secondary control systems.

[0094] Embodiment 1

[0095] The present invention proposes an automatic construction method and system for electromagnetic transient simulation scenarios of large power grid chain failures. Starting from the grid operation mode described by a certain electromechanical transient model, based on the existing chain failure accident chain, for the AC power grid, the electromagnetic transient of the AC power grid is automatically modeled by using the device model mapping and parameter conversion method; for photovoltaic new energy stations and DC transmission systems, the existing model library is used and spliced ​​with the AC power grid model; for the associated equipment in the chain failure accident chain, the existing electromechanical transient relay and safety device custom model and its associated equipment are used to automatically convert them into electromagnetic transient models, and the basic function box is automatically supplemented to realize the conversion of the effective value of the input and output quantity to the instantaneous quantity; for the spliced ​​large power grid full electromagnetic transient model, open-loop iteration, clamped power supply and other technical measures are used to realize the automatic initialization of the electromagnetic transient model of the entire network. Figure 1 As shown, the method provided in the embodiment of the present application includes the following steps:

[0096] Step S100: Based on the description of the PSASP electromechanical transient model, establish an AC power grid AD PSS electromagnetic transient model of the power grid operation mode, and obtain AC power grid flow data from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitude and phase angle. Specifically, this step includes:

[0097] Step S101, read the PSASP electromechanical transient model data, and perform a rationality check on the following equipment model parameters, including generators, transformers, AC lines and loads.

[0098] The specific inspection contents of the main components are as follows:

[0099] Generator: Check the synchronous machine model number in the PSASP electromechanical transient data to see if the turbine and steam turbine model numbers are misplaced; check that there should be reasonable differences between the generator's AC and DC axis reactance, AC and DC axis transient reactance values, and sub-transient reactance values; check the direct relationship between the generator's rated capacity and rated power, and the rated power should be less than the rated capacity; check whether the rated capacities of generators with the same model number and parameter group number are the same, if there are differences, they should be corrected; check whether the tidal current output is greater than the rated capacity, if so, the tidal current mode should be adjusted.

[0100] Transformer: Check the transformer winding connection method. In the absence of real data, for two-winding transformers, set the connection method to D / YG or D / Y. For three-winding transformers, set the low voltage to D connection, and the medium and high voltage to YG or Y connection, and at least one YG on the medium and high voltage sides of each transformer is grounded; check the excitation resistance reactance, which should be greater than 10 per unit; if the transformers are operated in parallel, check whether the connection methods conflict; check the rationality of the winding reactance value. The reactance values ​​of the two windings of the three-winding transformer should not be opposite to each other, and should not lead to the abnormal value of zero of the transformer's external equivalent impedance.

[0101] AC line: Check the rationality of the positive-sequence and zero-sequence parameters of the AC line. For the case where there are positive-sequence parameters but no zero-sequence parameters, the zero-sequence parameter resistance reactance is 3 times that of the positive-sequence, and the conductance is 1 / 3 of the resistance reactance.

[0102] Step S102: According to the preset mapping rules, the PSASP electromechanical transient model is converted to the ADPSS electromagnetic transient model. The mapping rules are shown in Table 1:

[0103] Table 1 Mapping rules for converting PSASP electromechanical transient model to ADPSS electromagnetic transient model

[0104]

[0105]

[0106] Step S103: Update the bus voltage amplitude and phase angle in the PSASP electromechanical transient data to the bus corresponding to the ADPSS electromagnetic transient data according to the bus name.

[0107] Step S200: import the ADPSS electromagnetic transient model according to the DC and new energy related AC bus positions in the PSASP electromechanical transient data. Specifically including:

[0108] Step S201: According to the name of the electromechanical transient conventional DC system, determine the AC-side busbar of the AC-DC system converter transformer in the electromechanical transient data, wherein the AC-side busbar of the converter transformer includes a rectifier-side busbar and an inverter-side busbar.

[0109] Step S202: determining a bus corresponding to the AC side bus of the converter transformer in the AC power grid ADPSS electromagnetic transient model.

[0110] Step S203: Import the DC electromagnetic transient model project corresponding to the DC name from the DC electromagnetic transient model library by importing the project in ADPSS.

[0111] Step S204, setting an external bus at the rectifier-side AC / DC bus of the ADPSS electromagnetic transient model and connecting it to the rectifier-side bus; setting an external bus at the inverter-side AC / DC bus of the ADPSS electromagnetic transient model and connecting it to the inverter-side bus.

[0112] Step S205: For each new energy station in the electromechanical transient data, the corresponding new energy model is imported into the AC power grid electromagnetic transient model using the method of steps S201 to S204.

[0113] Step S300: Determine the modeling scope of relay protection and safety devices according to the chain fault accident chain information, and then build and install the electromagnetic transient model of relay protection and safety devices based on the existing user-defined model in the electromechanical transient data by using the basic function box mapping and input-output adaptation method. Specifically including:

[0114] Step S301: Establish the mapping relationship and parameter conversion rules from the PSASP electromechanical transient user-defined basic function box to the ADPSS electromagnetic transient user-defined basic function box. The rules are shown in Table 2:

[0115] Table 2 Mapping relationship and parameter conversion rules of user-defined basic function boxes

[0116]

[0117]

[0118] Step S302: According to the equipment component information provided by the chain fault accident chain, the relevant relay protection and safety device user-defined model is found from the PSASP electromechanical transient data, converted into the ADPSS electromagnetic transient user-defined model according to the mapping relationship and parameter conversion rules, and the model input and output installation information is recorded.

[0119] Step S303: The input and output of the relay protection and safety device models that have been converted into electromagnetic transient models are supplemented and adapted using the ADPSS electromagnetic transient basic function frame.

[0120] The converted electromagnetic transient model can complete the conversion from the instantaneous value input of the electromagnetic transient model to the effective value input of the electromechanical transient model, establish a complete relay protection and safety device model structure description, and migrate the model input and output installation information to the adapted input and output quantities.

[0121] Step S304: Based on the existing model structure description, a breadth-first search algorithm (DFS) is used to traverse the basic function boxes of the model, and the basic function boxes are recorded according to the number of traversal layers and the order, and the coordinates are assigned to obtain hierarchical traversal record information.

[0122] Step S305: Based on the application programming interface (API) provided by ADPSS, in the ADPSS interface environment, the basic function box coordinates are set according to the hierarchical traversal record information, the basic function box parameters are set, the model input and output installation information is set, the basic function box and its topological connection are drawn, and the modeling of the relay protection and safety automatic device model is completed.

[0123] Step S400: Relay protection and safety devices, DC, and new energy electromagnetic transient models are initialized respectively.

[0124] In step S100, the electromagnetic transient modeling of the AC power grid has been completed for all AC power grids in the power grid operation mode, and the voltage amplitude and phase angle of each AC bus have been set according to the power flow results. Since the AC bus voltage is known, the automatic initialization calculation process of all relay and safety device electromagnetic transient models, DC models and new energy models can be decoupled. The electromagnetic transient models of relays and safety devices installed on the AC equipment can be initialized according to the bus voltage results. Since the structure of DC and new energy electromagnetic transient models is more detailed and complex than that of electromechanical transient models, automatic initialization is completed with the help of clamped power supplies. The automatic initialization of relay and safety device, DC, and new energy electromagnetic transient models can be carried out in parallel. The following numbers are only for distinction and cannot be used as constraints on the order of occurrence. The details are as follows:

[0125] Step S401: Automatically initialize the electromagnetic transient model of the relay protection and safety device.

[0126] According to the bus voltage amplitude and phase angle of the AC power grid and the parameters and status of the primary equipment, the instantaneous value, initial phase angle and initial effective value of the three-phase bus voltage ABC at the zero time of the simulation are calculated; according to the instantaneous value of the three-phase ABC and the equipment parameters, the instantaneous value of the primary equipment current is calculated; according to the status of the primary equipment, the initial value of the output quantity is calculated; the outlet switch of the electromagnetic transient model of the relay protection and safety automatic device is disconnected, and the model runs in an open loop; the input is constant, and the model state quantity is iteratively calculated until the residual of the two calculated values ​​of all state quantities is less than 0.0001, and the calculated output quantity is consistent with the initial output quantity; the model is set to run in a closed loop, and the electromagnetic transient model of the relay protection and safety automatic device is automatically initialized.

[0127] Step S402: The DC electromagnetic transient model is automatically initialized.

[0128] Before the simulation starts, a clamped voltage source and a three-phase switch element connected to the system are added to the AC / DC boundary bus. The power supply voltage amplitude and phase angle are taken from the AC bus flow results to isolate the disturbance of the DC to the AC system and provide voltage support for the DC system to start and stabilize. According to the PSASP electromechanical transient DC flow results, the tap position of the electromagnetic DC model commutator, the switching amount of the AC filter, and the DC power, DC voltage, and DC current command values ​​are set. The simulation calculation is started, and the difference between the DC power simulation result and the command value is detected during each simulation step. When the difference between the two is less than 0.0001, it can be approximately considered that the DC enters a steady state. The clamped power supply is disconnected when the current of the three-phase switch element passes through zero, and the DC electromagnetic transient model is automatically initialized.

[0129] Step S403: Automatically initialize the new energy electromagnetic transient model.

[0130] According to the name of the new energy port bus, the voltage amplitude V and voltage phase angle A, active power P0 and reactive power Q0 of the new energy station are obtained from the electromechanical transient power flow results of PSASP; a grounded three-phase clamped voltage source is added at the disconnection point of the new energy station bus, and connected to the new energy port bus through the three-phase switch element closed in the initial state, the clamped power supply voltage amplitude is V, and the phase angle is A; the active command value Pref of the new energy station control system is set to P0 and the reactive command value Qref is set to Q0; start the simulation, and use the steady-state automatic adjustment function of the new energy station provided by ADPSS to adjust the active command value Pref, reactive command value Qref and SVG reactive command value Qsvg_ref of the new energy station control system until the active and reactive power of the clamped power supply tend to 0, disconnect the three-phase switch of the clamped power supply, and complete the automatic initialization process of the new energy station.

[0131] Embodiment 2

[0132] Another aspect of the present invention provides a system for constructing electromagnetic transient simulation scenarios for large power grid cascading failures, such as Figure 2As shown, the system includes:

[0133] The electromagnetic transient modeling module 201 can establish an AC power grid ADPSS electromagnetic transient model of the power grid operation mode based on the PSASP electromechanical transient model description, and obtain AC power grid power flow data from the PSASP electromechanical transient model, wherein the AC power grid power flow data includes node voltage amplitude and phase angle;

[0134] The data import module 202 can import the ADPSS electromagnetic transient model according to the DC and new energy related AC bus positions in the PSASP electromechanical transient data;

[0135] The relay protection and safety automatic device modeling module 203 can define the modeling scope of the relay protection and safety automatic device according to the chain fault accident chain information, and then build and install the electromagnetic transient model of the relay protection and safety automatic device based on the existing user-defined model in the electromechanical transient data by using the basic function box mapping and input-output adaptation method;

[0136] The initialization module 204 can respectively initialize the relay protection and safety devices, direct current, and new energy electromagnetic transient models.

[0137] Furthermore, the electromagnetic transient modeling module 201 includes:

[0138] Reading PSASP electromechanical transient model data and performing rationality checks on equipment model parameters; wherein the equipment includes generators, transformers, AC lines and loads;

[0139] Convert the components in the PSASP electromechanical transient model into the components in the ADPSS electromagnetic transient model based on the preset mapping rules;

[0140] According to the bus name, the bus voltage amplitude and phase angle in the PSASP electromechanical transient data are updated to the bus corresponding to the ADPSS electromagnetic transient data.

[0141] Furthermore, the data import module 202 includes:

[0142] According to the name of the electromechanical transient conventional DC system, the AC-side busbar of the AC-DC system converter transformer is determined in the electromechanical transient data, wherein the AC-side busbar of the converter transformer includes a rectifier-side busbar and an inverter-side busbar;

[0143] Determine the bus corresponding to the AC side bus of the converter transformer in the ADPSS electromagnetic transient model of the AC power grid;

[0144] In ADPSS, import the DC electromagnetic transient model project corresponding to the DC name from the DC electromagnetic transient model library by importing the project;

[0145] An external bus is provided at the rectifier-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the rectifier-side bus; an external bus is provided at the inverter-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the inverter-side bus;

[0146] Perform the above steps for each new energy station in the electromechanical transient data to import the corresponding new energy model.

[0147] Furthermore, the relay protection and safety device modeling module 203 includes:

[0148] Establish the mapping relationship and parameter conversion rules from the PSASP electromechanical transient user-defined basic function box to the ADPSS electromagnetic transient user-defined basic function box;

[0149] According to the equipment component information provided by the chain fault accident chain, the relevant relay protection and safety automatic device user-defined model is found from the PSASP electromechanical transient data, and converted into the ADPSS electromagnetic transient user-defined model according to the mapping relationship and parameter conversion rules, and the model input and output installation information is recorded;

[0150] The input and output of the relay protection and safety device models that have been converted into electromagnetic transient models are supplemented and adapted using the ADPSS electromagnetic transient basic function frame;

[0151] Based on the existing model structure description, the basic function boxes of the model are traversed by using the breadth-first search algorithm. The basic function boxes are recorded according to the number of traversed layers and the order, and the coordinates are assigned to obtain the hierarchical traversal record information.

[0152] Based on the application interface provided by ADPSS, the basic function box coordinates are set according to the hierarchical traversal record information in the ADPSS interface environment, the basic function box parameters are set, the model input and output installation information is set, the basic function box and its topological connection are drawn, and the modeling of the relay protection and safety automatic device model is completed.

[0153] Furthermore, in the initialization module 204, the process of automatically initializing the electromagnetic transient model of the relay protection and safety device includes:

[0154] According to the bus voltage amplitude, phase angle and primary equipment parameters and status of the AC power grid, calculate the instantaneous value, initial phase angle and initial effective value of the three-phase bus voltage ABC at the simulation zero time;

[0155] Calculate the instantaneous value of the primary equipment current according to the instantaneous value of the ABC three-phase and the equipment parameters; calculate the initial value of the output according to the status of the primary equipment;

[0156] Disconnect the output switch of the electromagnetic transient model of the relay protection and safety automatic device, and the model will run in open loop;

[0157] The input remains constant, and the model state quantities are calculated iteratively until the residuals of the two calculated values ​​of all state quantities are less than 0.0001, and the calculated output quantities are consistent with the initial output quantities;

[0158] Set up the model for closed-loop operation and complete automatic initialization of the electromagnetic transient model of the relay protection and safety and automation devices.

[0159] Furthermore, in the initialization module 204, the process of automatically initializing the DC electromagnetic transient model includes:

[0160] Before the simulation starts, a clamped voltage source and a three-phase switch element connected to the system are added to the AC / DC boundary bus. The power supply voltage amplitude and phase angle are taken from the AC bus power flow results to isolate the disturbance of the DC to the AC system and provide voltage support for the DC system to start and stabilize.

[0161] According to the electromechanical transient DC power flow results of PSASP, set the tap position of the electromagnetic DC model commutation transformer, the switching amount of the AC filter, and the DC power, DC voltage, and DC current command values;

[0162] Start the simulation calculation, and detect the difference between the DC power simulation result and the command value in each simulation step. When the difference between the two is less than 0.0001, it can be approximately considered that the DC enters a steady state. When the current of the three-phase switching element passes through zero, the clamping power supply is disconnected, and the DC electromagnetic transient model is automatically initialized.

[0163] Furthermore, in the initialization module 204, the process of automatically initializing the new energy electromagnetic transient model includes:

[0164] According to the name of the new energy port bus, the voltage amplitude V and voltage phase angle A, active power P0 and reactive power Q0 of the new energy station are obtained from the PSASP electromechanical transient power flow results;

[0165] A grounded three-phase clamped voltage source is added at the disconnected bus of the new energy station, and connected to the new energy port bus through a three-phase switch element that is initially closed. The voltage amplitude of the clamped power source is V, and the phase angle is A.

[0166] Assume that the active power command value Pref = P0 and the reactive power command value Qref = Q0 of the new energy station control system;

[0167] Start the simulation, and use the steady-state automatic adjustment function of the new energy station provided by ADPSS to adjust the active command value Pref, reactive command value Qref and SVG reactive command value Qsvg_ref of the new energy station control system until the active and reactive power of the clamped power supply tend to 0, disconnect the three-phase switch of the clamped power supply, and complete the automatic initialization process of the new energy station.

[0168] Another aspect of the present application provides a computer-readable storage medium, which stores computer-executable instructions for executing the above-mentioned Figure 1 The method for constructing electromagnetic transient simulation scenario of large power grid cascading failures is shown.

[0169] The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0171] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A method for constructing electromagnetic transient simulation scenarios for large power grid cascading failures, characterized in that: The following steps are involved: Based on the description of the PSASP electromechanical transient model, an AC power grid ADPSS electromagnetic transient model of the power grid operation mode is established, and AC power grid flow data is obtained from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitude and phase angle; According to the DC and new energy related AC bus positions in the PSASP electromechanical transient data, the ADPSS electromagnetic transient model is imported; Determine the modeling scope of relay protection and safety and automation devices according to the chain fault accident chain information, and then build and install the electromagnetic transient model of relay protection and safety and automation devices based on the existing user-defined model in the electromechanical transient data by using the basic function box mapping and input-output adaptation method; The relay protection and safety devices, DC, and new energy electromagnetic transient models are initialized respectively.

2. The method according to claim 1, characterized in that The step of establishing an AC power grid ADPSS electromagnetic transient model of a power grid operation mode based on the PSASP electromechanical transient model description, and obtaining AC power grid flow data from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitudes and phase angles, comprises: Reading PSASP electromechanical transient model data and performing rationality checks on equipment model parameters; wherein the equipment includes generators, transformers, AC lines and loads; Convert the components in the PSASP electromechanical transient model into the components in the ADPSS electromagnetic transient model based on the preset mapping rules; According to the bus name, the bus voltage amplitude and phase angle in the PSASP electromechanical transient data are updated to the bus corresponding to the ADPSS electromagnetic transient data.

3. The method according to claim 1, characterized in that The step of importing the ADPSS electromagnetic transient model according to the DC and new energy related AC bus positions in the PSASP electromechanical transient data includes: According to the name of the electromechanical transient conventional DC system, the AC-side busbar of the AC-DC system converter transformer is determined in the electromechanical transient data, wherein the AC-side busbar of the converter transformer includes a rectifier-side busbar and an inverter-side busbar; Determine the bus corresponding to the AC side bus of the converter transformer in the ADPSS electromagnetic transient model of the AC power grid; In ADPSS, import the DC electromagnetic transient model project corresponding to the DC name from the DC electromagnetic transient model library by importing the project; An external bus is provided at the rectifier-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the rectifier-side bus; an external bus is provided at the inverter-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the inverter-side bus; Perform the above steps for each new energy station in the electromechanical transient data to import the corresponding new energy model.

4. The method according to claim 1, characterized in that: The steps of defining the modeling scope of the relay protection and safety automatic device according to the chain fault accident chain information, and then constructing and installing the electromagnetic transient model of the relay protection and safety automatic device based on the existing user-defined model in the electromechanical transient data by using the basic function block mapping and input-output adaptation method include: Establish the mapping relationship and parameter conversion rules from the PSASP electromechanical transient user-defined basic function box to the ADPSS electromagnetic transient user-defined basic function box; According to the equipment component information provided by the chain fault accident chain, the relevant relay protection and safety automatic device user-defined model is found from the PSASP electromechanical transient data, and converted into the ADPSS electromagnetic transient user-defined model according to the mapping relationship and parameter conversion rules, and the model input and output installation information is recorded; The input and output of the relay protection and safety device models that have been converted into electromagnetic transient models are supplemented and adapted using the ADPSS electromagnetic transient basic function frame; Based on the existing model structure description, the basic function boxes of the model are traversed by using the breadth-first search algorithm. The basic function boxes are recorded according to the number of traversed layers and the order, and the coordinates are assigned to obtain the hierarchical traversal record information. Based on the application interface provided by ADPSS, the basic function box coordinates are set according to the hierarchical traversal record information in the ADPSS interface environment, the basic function box parameters are set, the model input and output installation information is set, the basic function box and its topological connection are drawn, and the modeling of the relay protection and safety automatic device model is completed.

5. The method according to claim 1, characterized in that In the steps of respectively initializing the relay protection and safety automatic device, direct current, and new energy electromagnetic transient model, the process of automatically initializing the electromagnetic transient model of the relay protection and safety automatic device includes: According to the bus voltage amplitude, phase angle and primary equipment parameters and status of the AC power grid, calculate the instantaneous value, initial phase angle and initial effective value of the three-phase bus voltage ABC at the simulation zero time; Calculate the instantaneous value of the primary equipment current according to the instantaneous value of the ABC three-phase and the equipment parameters; calculate the initial value of the output according to the status of the primary equipment; Disconnect the output switch of the electromagnetic transient model of the relay protection and safety automatic device, and the model will run in open loop; The input remains constant, and the model state quantities are calculated iteratively until the residuals of the two calculated values ​​of all state quantities are less than 0.0001, and the calculated output quantities are consistent with the initial output quantities; Set up the model for closed-loop operation and complete automatic initialization of the electromagnetic transient model of the relay protection and safety and automation devices.

6. The method according to claim 1, characterized in that In the steps of respectively initializing the relay protection and safety automatic device, DC, and new energy electromagnetic transient model, the process of automatically initializing the DC electromagnetic transient model includes: Before the simulation starts, a clamped voltage source and a three-phase switch element connected to the system are added to the AC / DC boundary bus. The power supply voltage amplitude and phase angle are taken from the AC bus power flow results to isolate the disturbance of the DC to the AC system and provide voltage support for the DC system to start and stabilize. According to the electromechanical transient DC power flow results of PSASP, set the tap position of the electromagnetic DC model commutation transformer, the switching amount of the AC filter, and the DC power, DC voltage, and DC current command values; Start the simulation calculation, and detect the difference between the DC power simulation result and the command value in each simulation step. When the difference between the two is less than 0.0001, it can be approximately considered that the DC enters a steady state. When the current of the three-phase switching element passes through zero, the clamping power supply is disconnected, and the DC electromagnetic transient model is automatically initialized.

7. The method according to claim 1, characterized in that In the steps of respectively initializing the relay protection and safety automatic device, DC, and new energy electromagnetic transient model, the process of automatically initializing the new energy electromagnetic transient model includes: According to the name of the new energy port bus, the voltage amplitude V and voltage phase angle A, active power P0 and reactive power Q0 of the new energy station are obtained from the PSASP electromechanical transient power flow results; A grounded three-phase clamped voltage source is added at the disconnected bus of the new energy station, and connected to the new energy port bus through a three-phase switch element that is initially closed. The voltage amplitude of the clamped power source is V, and the phase angle is A. Assume that the active power command value Pref = P0 and the reactive power command value Qref = Q0 of the new energy station control system; Start the simulation, and use the steady-state automatic adjustment function of the new energy station provided by ADPSS to adjust the active command value Pref, reactive command value Qref and SVG reactive command value Qsvg_ref of the new energy station control system until the active and reactive power of the clamped power supply tend to 0, disconnect the three-phase switch of the clamped power supply, and complete the automatic initialization process of the new energy station.

8. A system for constructing electromagnetic transient simulation scenarios for large power grid cascading failures, characterized in that: include: The electromagnetic transient modeling module can establish an ADPSS electromagnetic transient model of the AC power grid in the power grid operation mode based on the PSASP electromechanical transient model description, and obtain AC power grid flow data from the PSASP electromechanical transient model, wherein the AC power grid flow data includes node voltage amplitude and phase angle; A data import module, capable of importing the ADPSS electromagnetic transient model according to the DC and new energy related AC bus positions in the PSASP electromechanical transient data; The relay protection and safety automatic device modeling module can define the modeling scope of the relay protection and safety automatic device according to the chain fault accident chain information, and then build and install the electromagnetic transient model of the relay protection and safety automatic device based on the existing user-defined model in the electromechanical transient data by using the basic function box mapping and input-output adaptation method; The initialization module can initialize the relay protection and safety devices, DC, and new energy electromagnetic transient models respectively.

9. The system according to claim 8, characterized in that The electromagnetic transient modeling module comprises: Reading PSASP electromechanical transient model data and performing rationality checks on equipment model parameters; wherein the equipment includes generators, transformers, AC lines and loads; Convert the components in the PSASP electromechanical transient model into the components in the ADPSS electromagnetic transient model based on the preset mapping rules; According to the bus name, the bus voltage amplitude and phase angle in the PSASP electromechanical transient data are updated to the bus corresponding to the ADPSS electromagnetic transient data.

10. The system according to claim 8, characterized in that The data import module comprises: According to the name of the electromechanical transient conventional DC system, the AC-side busbar of the AC-DC system converter transformer is determined in the electromechanical transient data, wherein the AC-side busbar of the converter transformer includes a rectifier-side busbar and an inverter-side busbar; Determine the bus corresponding to the AC side bus of the converter transformer in the ADPSS electromagnetic transient model of the AC power grid; In ADPSS, import the DC electromagnetic transient model project corresponding to the DC name from the DC electromagnetic transient model library by importing the project; An external bus is provided at the rectifier-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the rectifier-side bus; an external bus is provided at the inverter-side AC / DC bus of the ADPSS electromagnetic transient model, and connected to the inverter-side bus; Perform the above steps for each new energy station in the electromechanical transient data to import the corresponding new energy model.

11. The system according to claim 8, characterized in that The relay protection and safety device modeling module includes: Establish the mapping relationship and parameter conversion rules from the PSASP electromechanical transient user-defined basic function box to the ADPSS electromagnetic transient user-defined basic function box; According to the equipment component information provided by the chain fault accident chain, the relevant relay protection and safety automatic device user-defined model is found from the PSASP electromechanical transient data, and converted into the ADPSS electromagnetic transient user-defined model according to the mapping relationship and parameter conversion rules, and the model input and output installation information is recorded; The input and output of the relay protection and safety device models that have been converted into electromagnetic transient models are supplemented and adapted using the ADPSS electromagnetic transient basic function frame; Based on the existing model structure description, the basic function boxes of the model are traversed by using the breadth-first search algorithm. The basic function boxes are recorded according to the number of traversed layers and the order, and the coordinates are assigned to obtain the hierarchical traversal record information. Based on the application interface provided by ADPSS, the basic function box coordinates are set according to the hierarchical traversal record information in the ADPSS interface environment, the basic function box parameters are set, the model input and output installation information is set, the basic function box and its topological connection are drawn, and the modeling of the relay protection and safety automatic device model is completed.

12. The system according to claim 8, characterized in that In the initialization module, the process of automatically initializing the electromagnetic transient model of the relay protection and safety automatic device includes: According to the bus voltage amplitude, phase angle and primary equipment parameters and status of the AC power grid, calculate the instantaneous value, initial phase angle and initial effective value of the three-phase bus voltage ABC at the simulation zero time; Calculate the instantaneous value of the primary equipment current according to the instantaneous value of the ABC three-phase and the equipment parameters; calculate the initial value of the output according to the status of the primary equipment; Disconnect the output switch of the electromagnetic transient model of the relay protection and safety automatic device, and the model will run in open loop; The input remains constant, and the model state quantities are calculated iteratively until the residuals of the two calculated values ​​of all state quantities are less than 0.0001, and the calculated output quantities are consistent with the initial output quantities; Set up the model for closed-loop operation and complete automatic initialization of the electromagnetic transient model of the relay protection and safety and automation devices.

13. The method according to claim 8, characterized in that In the initialization module, the process of automatically initializing the DC electromagnetic transient model includes: Before the simulation starts, a clamped voltage source and a three-phase switch element connected to the system are added to the AC / DC boundary bus. The power supply voltage amplitude and phase angle are taken from the AC bus power flow results to isolate the disturbance of the DC to the AC system and provide voltage support for the DC system to start and stabilize. According to the electromechanical transient DC power flow results of PSASP, set the tap position of the electromagnetic DC model commutation transformer, the switching amount of the AC filter, and the DC power, DC voltage, and DC current command values; Start the simulation calculation, and detect the difference between the DC power simulation result and the command value in each simulation step. When the difference between the two is less than 0.0001, it can be approximately considered that the DC enters a steady state. When the current of the three-phase switching element passes through zero, the clamping power supply is disconnected, and the DC electromagnetic transient model is automatically initialized.

14. The system according to claim 8, characterized in that The process of automatically initializing the new energy electromagnetic transient model in the initialization module includes: According to the name of the new energy port bus, the voltage amplitude V and voltage phase angle A, active power P0 and reactive power Q0 of the new energy station are obtained from the PSASP electromechanical transient power flow results; A grounded three-phase clamped voltage source is added at the disconnected bus of the new energy station, and connected to the new energy port bus through a three-phase switch element that is initially closed. The voltage amplitude of the clamped power source is V, and the phase angle is A. Assume that the active power command value Pref = P0 and the reactive power command value Qref = Q0 of the new energy station control system; Start the simulation, and use the steady-state automatic adjustment function of the new energy station provided by ADPSS to adjust the active command value Pref, reactive command value Qref and SVG reactive command value Qsvg_ref of the new energy station control system until the active and reactive power of the clamped power supply tend to 0, disconnect the three-phase switch of the clamped power supply, and complete the automatic initialization process of the new energy station.

15. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method according to any one of claims 1 to 7.