Power grid electromagnetic electromechanical transient hybrid simulation method and device and medium
By dividing the grid electromagnetic electromechanical transient hybrid simulation system into internal and external systems, and using homomodulation equal value method and dynamic equal value processing, the problems of low flexibility and poor stability in the existing technology are solved, and more efficient and flexible are achieved simulation process.
Patent Information
- Application Number
- CN202411357928.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-07
AI Technical Summary
The prior art has problems of low flexibility and poor stability in the electromagnetic electromechanical transient hybrid simulation of power grids, resulting in oscillation and affecting simulation stability and accuracy.
By dividing the electromechanical and electromagnetic hybrid system into internal systems, external systems and boundary node sets, the homodynamic equivalent method and dynamic equivalent processing are adopted to reduce the impact of the external system equivalent model error on the internal system, enhance stability and improve modeling flexibility sex.
On the premise of ensuring engineering accuracy, reduce equal value difficulty, enhance simulation stability, improve simulation speed, and improve modeling flexibility.
Smart Images

Figure CN119397736A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of electromechanical simulation, and in particular to a method, device and medium for hybrid simulation of electromagnetic and electromechanical transient states of a power grid. Background Art
[0002] At present, various electromechanical-electromagnetic transient simulation technologies are gradually moving from laboratories to engineering practice. Easy modeling and transplantation of models, high calculation stability, fast speed and high credibility of results are necessary conditions for the practical application of this technology in engineering.
[0003] Establishing an accurate UHV AC / DC hybrid simulation model and accurately simulating the AC / DC interaction characteristics of the power grid can help grasp the AC / DC interaction transient characteristics and mutual influence mechanism of the power grid, which will help enhance the power grid operators' ability to control complex large-scale power grid systems.
[0004] The mismatch of electromechanical-electromagnetic transients at the interface in hybrid simulation is the root cause of oscillation, affecting simulation stability and simulation accuracy. The simulation calculation of multiple electromagnetic transient modules will greatly slow down the overall calculation speed of the electromechanical-electromagnetic hybrid simulation platform; and different research angles have different requirements for system simulation models, requiring a flexible combination of electromagnetic transient modules and electromechanical transient modules. Summary of the invention
[0005] The purpose of the present invention is to provide a hybrid simulation method, device and medium for electromagnetic and electromechanical transient of a power grid in order to overcome the defects of low flexibility and poor stability in the above-mentioned prior art.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid comprises the following steps:
[0008] Distinguish between the AC and DC parts of hybrid electromechanical and electromagnetic systems;
[0009] For the AC part, the electromechanical and electromagnetic hybrid system is divided into an internal system and an external system according to the application purpose, and the boundary buffer layer between the internal system and the external system is determined. Based on the boundary buffer layer, the external system is dynamically equivalently processed to obtain the reserved system, and the reserved system is processed into the AC part data;
[0010] For the DC part, modular modeling is performed on the components of the DC part to obtain the DC part data;
[0011] The AC part data and the DC part data are input into the simulation software together to obtain a simulation model.
[0012] Further, determining the boundary buffer layer between the internal system and the external system includes the following steps:
[0013] The nodes that connect both the internal system and the external system are taken as the initial boundary node set;
[0014] Perform three-phase short-circuit calculation on each node in the external system to determine the extended node set whose residual voltage is less than the set value;
[0015] The initial boundary node set and the expanded node set are merged to obtain the boundary buffer layer.
[0016] Furthermore, the external system is dynamically processed based on the boundary buffer layer, including the following steps: merging the boundary buffer layer with the internal system to obtain an extended internal system, dividing the external system into multiple subsystems, and connecting each subsystem to the extended internal system through the boundary buffer layer.
[0017] Furthermore, when the external system is divided into a plurality of subsystems, the type of the equivalent generator model is determined by the type of the core unit.
[0018] Further, the process of processing the reserved system into the communication part data includes the following steps:
[0019] Based on the reserved system, define stable model variables according to the variable comparison table of the simulation software;
[0020] Extract generator nodes, form a node comparison table, and create flow data files and stable data files;
[0021] Read the data in the node comparison table, retrieve the stable data file, and find the generator component type;
[0022] Update the power flow data file according to the generator component type, and retrieve the variable comparison table at the same time and record it as dynamic model data;
[0023] Output the updated power flow data file and dynamic model data as communication part data.
[0024] Furthermore, when the process of processing the reserved system into the communication part of the data is executed by multiple CPUs, the entire network is divided into multiple electromagnetic transient networks and electromechanical transient networks, and the calculations are performed on each CPU respectively. The multiple CPUs are placed in a local area network and exchange data through TCP / IP.
[0025] Furthermore, the simulation software includes electromechanical transient simulation software, electromagnetic transient simulation software and interface software. The interface software divides the system into an electromechanical transient subsystem and an electromagnetic transient subsystem. First, electromagnetic transient calculations are performed in the electromagnetic transient simulation software. After the calculation time reaches a time step, the data is transferred to the electromechanical transient simulation software. Then, after the electromechanical transient simulation software calculates a time step, the obtained data is transferred to the electromagnetic transient simulation software to realize parallel interactive calculations, and finally the electromechanical transient output and electromagnetic transient output of the simulation model are obtained.
[0026] Furthermore, the interface software realizes the connection between the electromechanical transient simulation software and the electromagnetic transient simulation software by mapping IP addresses.
[0027] A second aspect of the present invention is a hybrid simulation device for electromagnetic and electromechanical transient states of a power grid, comprising a memory, a processor, and a program stored in the memory, wherein when the processor executes the program, it implements any of the above hybrid simulation methods for electromagnetic and electromechanical transient states of a power grid.
[0028] A third aspect of the present invention is a storage medium having a program stored thereon, which, when executed, implements any of the above-mentioned hybrid simulation methods for electromagnetic and electromechanical transient states of a power grid.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] 1) The present invention divides the system into three parts: an internal system, an external system and a boundary node set, wherein the internal system is the retained system, the external system is the system to be simplified, and the boundary node set is a set of nodes in the internal system that are connected to the external system. For the determined retained system, a coherent equivalence method is adopted. In the conventional coherent equivalence step, a simplified buffer layer is established and the short-circuit current method is used to calculate the equivalent line and transformer parameters and the core unit. Under the premise of ensuring engineering accuracy, the difficulty of equivalence is reduced and the stability is enhanced.
[0031] 2) By expanding the internal system, while retaining the dynamic characteristics of the external system, the impact of the external system equivalent model error on the internal system is reduced. The buffer layer can weaken the effect of the coupling relationship between the subsystems of the new external system on the internal system, facilitate the decoupling modeling of the external subsystem, and improve the flexibility of modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the process of the present invention.
[0033] Figure 2 A schematic diagram of the system division.
[0034] Figure 3 Schematic diagram of the method for determining the buffer layer.
[0035] Figure 4It is a flow chart of the dynamic equivalent steps of the external system.
[0036] Figure 5 This is the component conversion flow chart.
[0037] Figure 6 This is the flow chart of electromechanical-electromagnetic hybrid simulation.
[0038] Figure 7 It is a single-line diagram of the system structure.
[0039] Figure 8 Schematic diagram of the hybrid system boundary.
[0040] Fig. 9 A network model diagram for the PSCAD repository.
[0041] Fig.10 This is the boundary contour network model diagram of the data results in PSSE in PSCAD.
[0042] Fig.11a Pure electromagnetic simulation and hybrid simulation voltage under three-phase fault.
[0043] Fig.11b It is the arc extinction angle of pure electromagnetic simulation and hybrid simulation under three-phase fault.
[0044] Fig.12a Pure electromagnetic simulation and hybrid simulation voltage under single-phase fault.
[0045] Figure 12b Pure electromagnetic simulation and hybrid arc extinction angle under single-phase fault.
[0046] Fig.13 This is a simulation time comparison chart.
[0047] Fig.14 It is the voltage waveform. DETAILED DESCRIPTION
[0048] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0049] Example 1
[0050] The present invention is a hybrid simulation method, device and medium for electromagnetic and electromechanical transient state of a power grid. Figure 1 As shown, the method comprises the following steps:
[0051] Distinguish between the AC and DC parts of hybrid electromechanical and electromagnetic systems;
[0052] For the AC part, the electromechanical and electromagnetic hybrid system is divided into an internal system and an external system according to the application purpose, and the boundary buffer layer between the internal system and the external system is determined. Based on the boundary buffer layer, the external system is dynamically equivalently processed to obtain the reserved system, and the reserved system is processed into the AC part data;
[0053] For the DC part, modular modeling is performed on the components of the DC part to obtain the DC part data;
[0054] The AC part data and the DC part data are input into the simulation software together to obtain a simulation model.
[0055] like Figure 2 As shown in the figure, according to the needs of the research task, the system is divided into three parts: internal system, external system and boundary node set, among which the internal system is the retained system, the external system is the system to be simplified, and the boundary node set is the node set in the internal system that connects with the external system. For the determined retained system, the practical synchronization equivalent method of power system engineering based on BPA simulation software is adopted. In the conventional synchronization equivalent step, the method of setting up a simplified buffer layer and short-circuit current method to calculate the equivalent line and transformer parameters and core units is adopted to reduce the difficulty of equivalent while ensuring the engineering accuracy.
[0056] In the actual network structure, there are Figure 2 The topological relationship shown in the figure shows that the network is naturally partitioned in structure to form clusters and corresponding subnetworks. For the retained internal system, on the one hand, the influence of the external system decreases as the electrical distance increases, and on the other hand, the connection between each subsystem and the retained system is inversely proportional to the electrical distance. Based on this, the equivalent scheme considers setting up a buffer layer to retain the nodes in the external system that are more affected by the internal system as a boundary buffer layer, such as Figure 2 The new boundary nodes have a significant corresponding connection relationship with the external subsystem. On the one hand, it can retain the dynamic characteristics of the external system to a large extent while reducing the impact of the external system equivalent model error on the internal system; on the other hand, there is a significant corresponding connection relationship between the selected retained boundary points and the external subsystem, such as Figure 2 In addition, the buffer layer can weaken the effect of the coupling relationship between the subsystems of the new external system on the internal system, making it easier to model the decoupling of the external subsystem.
[0057] The degree of mutual influence between nodes can be measured by the electrical distance between them. The electrical distance between each external node and the boundary node is determined by the residual voltage of each node in the external system when the original boundary node has a three-phase short circuit fault, and then the buffer layer nodes and ranges are divided. Figure 3As shown in the figure, when a three-phase short circuit occurs at the original boundary node of the subsystem, the short-circuit current flows in from the power node of the external system, and the branch currents are gathered at the node to form the branch current of the previous level. In the reverse current flow direction, the node residual voltage increases; when the residual voltage is higher than a certain value, a small node voltage difference means a long electrical distance between the nodes.
[0058] The voltage difference between the subsystem connection nodes in the new external system is very small. When the external systems are equal, the external network can be decoupled into several independent subsystems. There is no direct connection between the new boundary nodes, and corresponding access between the external equivalent subsystems and the new boundary nodes can be achieved.
[0059] Determining the boundary buffer layer between the internal system and the external system includes the following steps:
[0060] The nodes that connect both the internal system and the external system are taken as the initial boundary node set;
[0061] Perform three-phase short-circuit calculation on each node in the external system to determine the extended node set whose residual voltage is less than the set value;
[0062] The initial boundary node set and the expanded node set are merged to obtain the boundary buffer layer.
[0063] After considering the boundary buffer layer, the coupling relationship between the external system and the internal system is weakened. In addition, the external system is divided into blocks according to regions and voltage levels. It is possible to consider dividing the external system into several subsystems, and each subsystem is connected to the extended internal system through the extended boundary node. The steps of external system equivalence are as follows: Figure 4 shown.
[0064] For external subsystems, the number of generators in some synchronous clusters is large. When using parameter aggregation methods for calculation, on the one hand, the dynamic characteristics of the cluster may be submerged, resulting in unsatisfactory equivalent results; on the other hand, the computational workload is large. Therefore, this report introduces the concept of core units when calculating equivalent generator parameters, highlighting the significant dynamic characteristics of the cluster while reducing the computational workload. In the synchronous cluster, there are some units with great influence that play a leading role in the cluster, which are called core units. The equivalent generator model is determined according to the model of the core units in the synchronous cluster, and can be divided into one category (core units are all of the same type, and the parameters of other types of units only consider capacity and inertia time parameters) or two categories (the two types of core units have the same proportion, and the dual equivalent machine model is considered at this time, and the parameters are calculated separately).
[0065] Afterwards, MATLAB programming is used to realize the conversion of component models from BPA to PSSE. The program flow is as follows Figure 5As shown in the figure above, the program realizes the universality and scalability of the conversion of component models from BPA to PSSE by creating a variable comparison table. The program is used to realize the conversion of AC and DC dynamic models of power grids. When multiple CPUs are executed, the entire network is divided into multiple electromagnetic transient networks and electromechanical transient networks, which are calculated on their respective CPUs. Multiple CPUs are placed in a local area network and exchange data through TCP / IP.
[0066] Hybrid simulation divides large AC and DC networks into two subsystems: electromagnetic transient system and electromechanical transient system. It can not only solve the problem that pure electromagnetic simulation cannot establish multi-node models or the lack of accuracy due to simplification, but also make up for the shortcoming that pure electromechanical simulation cannot perform accurate simulation.
[0067] The research network is divided into two parts: the electromechanical transient simulation network and the electromagnetic transient simulation network. The electromechanical transient network is modeled using the PSSE program and the electromagnetic transient simulation program. The interface between the two is modeled using the E-Tran Plus program. E-Tran Plus, as the interface software, divides the system into two parts: the electromechanical transient subsystem and the electromagnetic transient subsystem. First, the electromagnetic transient calculation is performed in PSCAD. After the calculation time reaches one time step of PSSE, the data is transferred to PSSE. Then PSSE continues to calculate one time step and the data obtained is transferred to PSCAD. After parallel interactive calculations, the electromechanical transient output and electromagnetic transient output are finally obtained.
[0068] Two user-defined PSSE models are called ETRCOM and INITAD in the E-Tran Plus library. ETRCOM is the core interface model between the PSSE and PSCAD simulation programs, which allows the exchange of power flows between the two programs at each larger time step. The INITAD model is used to map IP addresses and establish a socket connection between PSCAD and PSSE. EINIT is an improved model of INITAD to overcome the icon limitation that user-written models may encounter when dealing with a large number of interface points. In this model, IP addresses are specified as a range to limit the number of icons used by the model.
[0069] According to the hybrid simulation principle based on the E-Tran Plus interface, the process of implementing E-Tran Plus hybrid simulation includes four steps: 1) prepare the materials required for hybrid simulation; 2) use the E-Tran Plus program to generate PSSE and PSCAD hybrid simulation networks; 3) compile PSSE event files (if necessary); 4) execute simulation. The specific process is as follows Figure 6 shown.
[0070] The electromagnetic transient model of the DC system and its converter station AC bus and AC filter will be established in PSCAD; expanding outward from the converter station bus, the electromechanical-electromagnetic transient boundary of the AC power grid will be reasonably selected considering factors such as calculation accuracy and calculation speed. The electromagnetic transient part of the AC power grid will be modeled in PSCAD, and the electromechanical transient part will be modeled in PSSE. When the electromagnetic transient simulation scale of the AC power grid retained in PSCAD is large, the calculation speed will decrease. In order to maintain the simulation speed of the platform, the multi-CPU parallel processing function can be used. When multiple CPUs are executed, the entire network is divided into multiple electromagnetic transient networks and electromechanical transient networks, and calculations are performed on their respective CPUs. Multiple CPUs are placed in a local area network and data is exchanged through TCP / IP.
[0071] In this example, a 23-node AC / DC system is modeled, calculated, and analyzed to verify the feasibility of the hybrid simulation method. Figure 7 As shown, it includes 6 generators, 23 nodes, and 24 AC lines. In addition, there is a single-pole DC line between nodes 3004-152, with a DC rated voltage of 500kV and a rated transmission capacity of 150MW.
[0072] The electromechanical transient model in hybrid simulation is to delete the part of the network retained in the PSCAD electromagnetic transient from the electromechanical model and add an equivalent generator at the boundary. The changing part is as follows Figure 8 As shown in the figure, it can be seen that the parts that need to be modeled in detail in PSCAD have been deleted from the PSSE model.
[0073] PSCAD preserves the network size as Figure 8 The PSCAD preserved network is marked as Fig. 9 As shown, the equivalent network is Fig.10 shown.
[0074] Select several appropriate bus nodes to form a group of buses to form boundaries, divide the original network, and enter the bus end load including DC and a small amount of AC network into the PSCAD end. Fig.10 , forming a hybrid electromechanical-electromagnetic simulation platform. E-TranPlus automatically synchronizes the data in PSSE into each component in PSCAD, and replaces the original DC model with the DC default model in the E-Tran component library. Fig. 9 As shown in the figure, the intuitively visible component models are the electromagnetic simulations retained in the PSCAD part. Fig. 9The nodes 151, 153, 202, 3002, and 3005 with arrows are multi-port boundaries. At the beginning of the simulation, PSSE and PSCAD run internally first (the data exchange time is set to 1s in this simulation). After 1s, the positive-sequence active and reactive power calculated in PSCAD are injected into PSSE through the above ports (the ports are the diagonal matrices formed by the LDU decomposition method), and the voltage and frequency in PSSE are also exchanged with PSCAD through the ports to achieve the hybrid simulation required for the experiment in this paper.
[0075] The simulation results were verified by using the 23-bus AC / DC hybrid system mentioned above, and the PSSE-PSCAD hybrid simulation model and the PSCAD pure electromagnetic transient model were established. The simulation analysis was performed on the symmetrical and asymmetrical (single-phase short circuit) AC busbars on the inverter side.
[0076] Example 1: At 4s, a three-phase permanent ground short circuit occurs on the AC bus 3004 on the DC inverter side. The fault transition resistance is 0.01Ω. The line is tripped at 4.1s, reclosed at 5.1s, and tripped again at 5.2s. The simulation waveform is as follows: Fig.11a The following are the pure electromagnetic simulation and hybrid simulation voltages under three-phase fault conditions: Fig.11b Shown are the arc extinction angles of pure electromagnetic simulation and hybrid simulation under three-phase fault.
[0077] Example 2: A single-phase permanent ground short circuit occurs on the AC bus 3004 on the DC inverter side at 4s. The fault transition resistance is 1Ω. The line is tripped at 4.1s, reclosed at 5.1s, and tripped again at 5.2s. The simulation waveform is as follows: Fig.12a The following are the pure electromagnetic simulation and hybrid simulation voltages under single-phase fault. Figure 12b Shown are the arc extinction angles of pure electromagnetic simulation and hybrid simulation under single-phase fault.
[0078] The simulation uses a single computer. First, the two models are simulated for 5s and 10s in steady state to obtain the actual time. A single-phase fault is set for the model at 4s, and the fault is removed after 0.1s. The timing is continued. Finally, the single-phase fault is changed to a three-phase fault and repeated. The specific working conditions and calculation time are shown in Table 1 and Table 2. Fig.13 shown.
[0079] From Table 1 and Fig.13 It can be seen that, whether it is steady state, single-phase fault or three-phase fault, the hybrid simulation takes significantly less time than the pure electromagnetic simulation, and the simulation speed is nearly doubled, which verifies the fast speed of the hybrid simulation.
[0080] Table 1 Comparison of pure electromagnetic simulation and hybrid simulation speed under different working conditions
[0081]
[0082] From the perspective of the hybrid simulation mechanism, the data transmitted from PSCAD to PSSE is the active and reactive fundamental frequency components injected into the node, and the data transmitted from PSSE to PSCAD is the amplitude, angle and frequency of the equivalent voltage source. In the process of data transmission at the interface, there is information loss. By monitoring the electrical quantity signals at both ends of the interface, the data transmission of the hybrid simulation interface can be verified.
[0083] Example 3: A three-phase ground short circuit occurs in the AC bus 3004 of the 4-second DC inverter station. The fault transition resistance is 0.01Ω and the fault lasts for 0.1s.
[0084] The acquisition interface 3002 collects the active, reactive and voltage waveforms in PSCAD and PSSE. The comparison results are as follows: Fig.14 As shown in the figure. It can be seen that PSSE transmits the voltage amplitude and angle of the boundary node to PSCAD through the interface, and PSCAD transmits the fundamental component of the injected active and reactive power of the boundary node to PSSE through the interface. Since the step size of PSCAD is smaller than that of PSSE, the value of PSSE remains unchanged during the PSCAD simulation. In the transient process, there is an error between the data of PSSE and PSCAD, but the overall trend is consistent, and they can converge to the same steady-state data in the end. Therefore, the electromagnetic-electromechanical interface of E-Tran Plus has good numerical stability.
[0085] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0086] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0087] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid, characterized in that: The following steps are involved: Distinguish between the AC and DC parts of hybrid electromechanical and electromagnetic systems; For the AC part, the electromechanical and electromagnetic hybrid system is divided into an internal system and an external system according to the application purpose, and the boundary buffer layer between the internal system and the external system is determined. Based on the boundary buffer layer, the external system is dynamically equivalently processed to obtain the reserved system, and the reserved system is processed into the AC part data; For the DC part, modular modeling is performed on the components of the DC part to obtain the DC part data; The AC part data and the DC part data are input into the simulation software together to obtain a simulation model.
2. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid according to claim 1, characterized in that: Determining the boundary buffer layer between the internal system and the external system includes the following steps: The nodes that connect both the internal system and the external system are taken as the initial boundary node set; Perform three-phase short-circuit calculation on each node in the external system to determine the extended node set whose residual voltage is less than the set value; The initial boundary node set and the expanded node set are merged to obtain the boundary buffer layer.
3. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid according to claim 2, characterized in that: The dynamic equivalent processing of the external system based on the boundary buffer layer includes the following steps: combining the boundary buffer layer with the internal system to obtain an extended internal system, dividing the external system into multiple subsystems, and connecting each subsystem to the extended internal system through the boundary buffer layer.
4. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid according to claim 1, characterized in that: When the external system is divided into multiple subsystems, the type of the equivalent generator model is determined by the type of the core unit.
5. The method for hybrid simulation of electromagnetic and electromechanical transient states of a power grid according to claim 1, characterized in that: The process of processing the reserved system into the communication part data comprises the following steps: Based on the reserved system, define stable model variables according to the variable comparison table of the simulation software; Extract generator nodes, form a node comparison table, and create flow data files and stable data files; Read the data in the node comparison table, retrieve the stable data file, and find the generator component type; Update the power flow data file according to the generator component type, and retrieve the variable comparison table at the same time and record it as dynamic model data; Output the updated power flow data file and dynamic model data as communication part data.
6. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid according to claim 1, characterized in that: When the process of processing the reserved system into the communication part data is executed by multiple CPUs, the entire network is divided into multiple electromagnetic transient networks and electromechanical transient networks, and calculations are performed on each CPU respectively. Multiple CPUs are placed in a local area network and data is exchanged through TCP / IP.
7. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid according to claim 1, characterized in that: The simulation software includes electromechanical transient simulation software, electromagnetic transient simulation software and interface software. The interface software divides the system into an electromechanical transient subsystem and an electromagnetic transient subsystem. First, electromagnetic transient calculation is performed in the electromagnetic transient simulation software. After the calculation time reaches a time step, the data is transferred to the electromechanical transient simulation software. Then, after the electromechanical transient simulation software calculates a time step, the obtained data is transferred to the electromagnetic transient simulation software to realize parallel interactive calculation, and finally the electromechanical transient output and electromagnetic transient output of the simulation model are obtained.
8. A hybrid simulation method for electromagnetic and electromechanical transient states of a power grid according to claim 7, characterized in that: The interface software realizes the connection between the electromechanical transient simulation software and the electromagnetic transient simulation software by mapping the IP address.
9. A hybrid simulation device for electromagnetic and electromechanical transient states of a power grid, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, a hybrid simulation method for electromagnetic, electromechanical and transient states of a power grid as described in any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, characterized in that: When the program is executed, a hybrid simulation method for electromagnetic, electromechanical and transient states of a power grid as described in any one of claims 1 to 8 is implemented.