Electromagnetic transient joint simulation method and device, electronic equipment and storage medium
By building power system models on multiple simulation platforms, using hybrid network division method and load balancing method for network division and load balancing, the problems of electromagnetic transient simulation accuracy and inefficiency in the existing technology are solved, and efficient electromagnetic transient simulation of "double high" power grid is achieved.
Patent Information
- Application Number
- CN202510248145.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-20
AI Technical Summary
The existing single simulation platform cannot guarantee the electromagnetic transient simulation accuracy after large-scale new energy access, and due to inefficient efficiency, it is difficult to achieve real-time simulation.
The electromagnetic transient joint simulation method is adopted, and the system model of the new energy power station and the DC transmission terminal is constructed in the first simulation platform, and the AC system model is constructed in the second simulation platform. The mixed networking method and the load balancing method of dynamic programming are combined to perform networking and load balancing operations to form the target electromagnetic transient initialization section and perform electromagnetic transient simulation.
It realizes efficient electromagnetic transient simulation of the "dual high" power grid, improves simulation accuracy and efficiency, and can simulate the transient process of the power system in real time.
Smart Images

Figure CN120180710A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power system transient simulation, and particularly to an electromagnetic transient joint simulation method, device, electronic device, and storage medium. Background Art
[0002] In recent years, the degree of power electronics in each link has been continuously increasing, and it is gradually evolving into a "dual-high" new power system with a high proportion of new energy and a high proportion of power electronics coexisting. With the rapid increase in the number of power electronic devices, the control complexity of the system and the multi-time scale coupling phenomenon have increased significantly, resulting in a substantial increase in the difficulty of analyzing the transient stability of the system.
[0003] In order to accurately evaluate the fault transient characteristics of the "dual-high" power grid and potential risks such as broadband oscillations that may be caused by the access of new energy, it is urgent to develop an efficient and practical electromagnetic transient simulation analysis tool. However, the existing single simulation platform is limited by hardware. On the one hand, it cannot guarantee the electromagnetic transient simulation accuracy after the large-scale access of new energy; on the other hand, large-scale electromagnetic transient simulations are difficult to achieve real-time simulation due to low efficiency. Summary of the Invention
[0004] In a first aspect, the present invention provides an electromagnetic transient joint simulation method, which includes:
[0005] Construct a first system model for the new energy power station and the DC sending end in a first simulation platform, and construct a second system model for the AC system in a second simulation platform;
[0006] Perform a subnetting operation on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, where the hybrid subnetting method includes: long transmission line subnetting method and compensated short line subnetting method;
[0007] Perform a subnetting operation on the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets;
[0008] Perform a load balancing operation on each of the first subnets and each of the second subnets respectively based on the load balancing method based on dynamic programming;
[0009] Control the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and form a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform;
[0010] Control the first simulation platform and the second simulation platform respectively to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result.
[0011] In an alternative embodiment, the first system model includes a plurality of subsystem models. Performing a subnetting operation on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, including:
[0012] Obtain the electromagnetic wave transmission time of the first system model. Use the subsystem models in the first system model whose simulation step size of electromagnetic transient simulation is greater than or equal to the electromagnetic wave transmission time as the first subsystem models. Perform a subnetting operation on the first subsystem models according to the long transmission line subnetting method to obtain first initial subnets;
[0013] Use the subsystem models in the first system model whose simulation step size of the electromagnetic transient simulation is less than the electromagnetic wave transmission time as the second subsystem models. Perform a subnetting operation on the first subsystem models according to the compensated short circuit line subnetting method to obtain second initial subnets;
[0014] Merge the first initial subnets and the second initial subnets to obtain a plurality of the first subnets.
[0015] In an alternative embodiment, forming the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform includes:
[0016] Based on the first simulation platform, control the first system model to generate a first electromagnetic transient initialization section according to the boundary Thevenin equivalent method and the ideal source excitation method;
[0017] Based on the second simulation platform, control the second system model to form a second electromagnetic transient initialization section according to the phasor diagram method and the historical variable representation method;
[0018] Forming the target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform includes:
[0019] Based on the section splicing method, control the first electromagnetic transient initialization section and the second electromagnetic transient initialization section to form the target electromagnetic transient initialization section.
[0020] In an alternative embodiment, performing a load balancing operation on each of the first subnets and each of the second subnets according to the load balancing method based on dynamic programming includes:
[0021] Obtain the computing loads of each of the first subnets and each of the second subnets respectively;
[0022] Sort each of the first subnets according to the computing loads of each of the first subnets to obtain a first subnet array and a first average load;
[0023] Sort each of the second subnets according to the computing load of each second subnet to obtain a second subnet array and a second average load;
[0024] Allocate each of the first subnets and each of the second subnets to a target computing core according to the first average load and the second average load respectively.
[0025] In an alternative embodiment, the step of allocating each of the first subnets and each of the second subnets to a target computing core according to the first average load and the second average load respectively includes:
[0026] Sequentially determine, according to the sorting, whether the computing load of each of the first subnets in the first subnet array is greater than or equal to the first average load;
[0027] If the computing load of the first subnet is greater than or equal to the first average load, allocate the first subnet alone to a computing core in a first computing core group;
[0028] If the computing load of the first subnet is less than the first average load, allocate the first subnet to a first shared computing core, obtain the load difference of the first subnet, and determine multiple first subnets allocated to the first shared computing core according to the load difference;
[0029] Sequentially determine, according to the sorting, whether the computing load of each of the second subnets in the second subnet array is greater than or equal to the second average load;
[0030] If the computing load of the second subnet is greater than or equal to the second average load, allocate the second subnet alone to a computing core in a second computing core group;
[0031] If the computing load of the second subnet is less than the second average load, allocate the second subnet to a second shared computing core, obtain the load difference of the second subnet, and determine multiple second subnets allocated to the second shared computing core according to the load difference of the second subnet.
[0032] In an alternative embodiment, the method further includes:
[0033] Construct transmission line models on the first simulation platform and the second simulation platform respectively;
[0034] Obtain electrical data of the first simulation platform and the second simulation platform according to the transmission line models respectively.
[0035] In an alternative embodiment, separately controlling the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result includes:
[0036] Separately controlling the first simulation platform and the second simulation platform to transmit the electrical data through a communication interface;
[0037] Obtaining the target electromagnetic transient simulation result according to the electrical data;
[0038] When the electromagnetic transient simulation time reaches a preset simulation time, controlling the first simulation platform and the second simulation platform to stop the electromagnetic transient simulation.
[0039] In a second aspect, the present invention provides an electromagnetic transient joint simulation device, which includes:
[0040] A construction module, configured to construct a first system model for a new energy power station and a DC sending end in a first simulation platform, and construct a second system model for an AC system in a second simulation platform;
[0041] A first subnetting module, configured to perform subnetting operations on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, where the hybrid subnetting method includes: a long transmission line subnetting method and a compensated short circuit line subnetting method;
[0042] A second subnetting module, configured to perform subnetting operations on the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets;
[0043] A processing module, configured to perform load balancing operations on each of the first subnets and each of the second subnets respectively based on the load balancing method of dynamic programming;
[0044] A formation module, configured to control the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and form a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform;
[0045] A simulation module, configured to separately control the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result.
[0046] In a third aspect, the present invention provides a computer device, which includes a processor and a memory, the memory stores a computer program, and the processor is configured to execute the computer program to implement the electromagnetic transient joint simulation method according to any one of the foregoing embodiments.
[0047] Fourthly, the present invention provides a computer storage medium storing a computer program, which when executed on a processor, implements the electromagnetic transient joint simulation method according to any one of the foregoing embodiments.
[0048] The embodiments of the present application have the following beneficial effects:
[0049] The electromagnetic transient joint simulation method, device, electronic device and storage medium provided by the present application described above, wherein the method includes: constructing a first system model for a new energy power station and a DC sending end in a first simulation platform, and constructing a second system model for an AC system in a second simulation platform; performing a network splitting operation on the first system model according to the hybrid network splitting method to obtain a plurality of first subnets, wherein the hybrid network splitting method includes: a long transmission line network splitting method and a compensated short line network splitting method; performing a network splitting operation on the second system model according to the long transmission line network splitting method to obtain a plurality of second subnets; respectively performing a load balancing operation on each of the first subnets and each of the second subnets based on the load balancing method of dynamic programming, controlling the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and forming a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; respectively controlling the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result. The present application constructs a plurality of system models for a power system based on a plurality of simulation platforms, uses the hybrid network splitting method to split the corresponding system models, shortens the simulation time through parallel computing, realizes real-time simulation, and improves the simulation efficiency. Description of the Drawings
[0050] In order to more clearly illustrate the technical solutions of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the protection scope of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0051] Figure 1 Fig. shows a flowchart of the electromagnetic transient joint simulation method provided by an embodiment of the present application;
[0052] Figure 2 Fig. shows a schematic diagram of the electromagnetic transient joint simulation principle provided by an embodiment of the present application;
[0053] Figure 3 Fig. shows a schematic structural diagram of the electromagnetic transient joint simulation device provided by an embodiment of the present application;
[0054] Figure 4 It shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
[0055] Icons: 300 - Electromagnetic Transient Joint Simulation Device, 301 - Construction Module, 302 - First Sub-network Module, 303 - Second Sub-network Module, 304 - Processing Module, 305 - Formation Module, 306 - Simulation Module, 400 - Electronic Device, 401 - Transceiver, 402 - Processor, 403 - Memory. Specific Embodiments
[0056] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
[0057] Generally, the components of the embodiments of the present application described and shown in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.
[0058] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are only intended to represent specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0059] In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0060] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as those defined in a commonly used dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or being overly formal, unless clearly defined in various embodiments of the present application.
[0061] Next, some embodiments of the present application will be described in detail in conjunction with the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0062] Embodiment 1
[0063] An embodiment of the present application provides an electromagnetic transient joint simulation method.
[0064] See Figure 1 , the electromagnetic transient joint simulation method includes:
[0065] S101, construct a first system model for the new energy power station and the DC sending end in the first simulation platform, and construct a second system model for the AC system in the second simulation platform.
[0066] It should be noted that modeling is carried out on two electromagnetic simulation platforms respectively. The first simulation platform constructs the models of the new energy power station and the DC sending end to ensure the accuracy of the models containing power electronic devices, and the second simulation platform models the large-scale AC system to ensure the simulation accuracy of the AC system.
[0067] The power system is a complex non-linear system, and different parts have different characteristics and research focuses. Using a single simulation platform may not be able to take into account the accurate simulation of all aspects. Therefore, choosing to model on two electromagnetic simulation platforms respectively can make full use of the advantages of each platform and perform more accurate simulation for different system characteristics.
[0068] S102, perform a network splitting operation on the first system model according to the hybrid network splitting method to obtain a plurality of first subnets, where the hybrid network splitting method includes: the long transmission line network splitting method and the compensated short line network splitting method.
[0069] It should be noted that the Bergeron model is an important method for analyzing the propagation of electromagnetic waves in transmission lines. Based on the telegraph equation, the transmission line is regarded as a network composed of a series of distributed parameters (resistance, inductance, capacitance, conductance). By taking the voltage and current traveling waves on the transmission line as basic variables and using the characteristic line method to solve the transmission line equation, it can clearly describe the propagation, reflection, and refraction of electromagnetic waves in the transmission line, providing a powerful tool for electromagnetic transient analysis.
[0070] In the embodiment of the present application, the long transmission line network splitting method is the long transmission line decoupling method, and the long transmission line decoupling method is used for the network splitting of AC-DC power grids. According to the Bergeron model, when the electromagnetic wave transmission time of the transmission line is greater than the simulation step of the electromagnetic transient simulation, the two ends of the transmission line can achieve natural decoupling, and the two ends of the transmission line can be divided into two subnets for independent operation.
[0071] The expression of the current at both ends of the transmission line is:
[0072] i kn (t) = Gv k (t) + ihisk (t - τ) = Gv k (t) - Gv m (t - τ) - i mk (t - τ)
[0073] i mk (t) = Gv m (t) + i hiism (t - τ) = Gv m (t) - Gv k (t - τ) - i km (t - τ)
[0074] Among them, G is the characteristic admittance of the line, L and C are the inductance and capacitance per unit length of the line, τ is the electromagnetic wave propagation time, d is the line length, i kn is the input current value at the first end of the transmission line, i mk is the input current value at the second end of the transmission line, v m is the voltage value at the second end of the transmission line, v k is the voltage value at the first end of the transmission line, i hiisk is the current source at the first end of the transmission line, i hism is the current source at the second end of the transmission line.
[0075] The unit connection lines inside new energy power stations such as wind farms are short transmission lines, and after aggregation, they are connected to the step-up substation as aggregation lines. The electromagnetic wave propagation times of the aggregation lines and short transmission lines are generally less than the simulation step size, and the new energy power station cannot be decoupled into subnets. Using the compensated short-circuit line method, that is, using the capacitance of the short transmission line to compensate the parameters of the aggregation line to make its electromagnetic wave propagation time greater than the simulation step size, so as to realize the subnetting of the new energy power station.
[0076] After compensation, the following formula is satisfied:
[0077]
[0078] Among them, L H and C H are the unit inductance and capacitance of the aggregation line, C′ is the unit compensation capacitance, and Δt is the simulation step size.
[0079] In one embodiment, the electromagnetic wave transmission time of the first system model is obtained, and the subsystem models in the first system model with the simulation step size of the electromagnetic transient simulation greater than or equal to the electromagnetic wave transmission time are used as the first subsystem models. The first subsystem models are subnetted according to the long transmission line subnetting method to obtain the first initial subnets. The subsystem models in the first system model with the simulation step size of the electromagnetic transient simulation less than the electromagnetic wave transmission time are used as the second subsystem models. The first subsystem models are subnetted according to the compensated short line subnetting method to obtain the second initial subnets. The first initial subnets and the second initial subnets are combined to obtain a plurality of the first subnets.
[0080] It should be noted that electromagnetic transient simulation aims to simulate the rapidly changing electromagnetic phenomena in a power system, such as the transient processes caused by short-circuit faults, switch operations, etc. During the simulation, the time axis needs to be discretized, and the simulation step size is the time interval between two adjacent discrete time points. A smaller simulation step size can capture the detailed changes in the electromagnetic transient process more accurately, but it will increase the computational amount and computational time. While a larger simulation step size can improve the computational efficiency, it may lose some rapidly changing information.
[0081] In electromagnetic transient simulation, when the electromagnetic wave transmission time of a transmission line is greater than the simulation step size, it means that within one simulation step, the electromagnetic wave cannot propagate from one end of the transmission line to the other end. The calculation method based on the Bergeron model can utilize this decoupling characteristic to calculate the voltage and current at both ends of the transmission line separately, simplify the calculation process, improve the simulation efficiency, and at the same time ensure a certain calculation accuracy. Within each simulation step, only the electrical characteristics of one end of the transmission line itself and the influence of other components connected to that end need to be considered, without considering the immediate influence of the other end of the transmission line.
[0082] S103, subnet the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets.
[0083] S104, perform load balancing operations on each of the first subnets and each of the second subnets respectively based on the load balancing method of dynamic programming.
[0084] In one embodiment, the calculation loads of each of the first subnets and each of the second subnets are obtained respectively; each of the first subnets is sorted according to the calculation load of each of the first subnets to obtain a first subnet array and a first average load; each of the second subnets is sorted according to the calculation load of each of the second subnets to obtain a second subnet array and a second average load; each of the first subnets and each of the second subnets are allocated to the target computing cores respectively according to the first average load and the second average load.
[0085] In one embodiment, it is sequentially determined whether the computing load of each of the first subnets in the first subnet array is greater than or equal to the first average load; if the computing load of the first subnet is greater than or equal to the first average load, the first subnet is separately allocated to a computing core in the first computing core group; if the computing load of the first subnet is less than the first average load, the first subnet is allocated to the first shared computing core, and the load difference of the first subnet is obtained, and a plurality of first subnets allocated to the first shared computing core are determined according to the load difference; it is sequentially determined whether the computing load of each of the second subnets in the second subnet array is greater than or equal to the second average load; if the computing load of the second subnet is greater than or equal to the second average load, the second subnet is separately allocated to a computing core in the second computing core group; if the computing load of the second subnet is less than the second average load, the second subnet is allocated to the second shared computing core, and the load difference of the second subnet is obtained, and a plurality of second subnets allocated to the second shared computing core are determined according to the load difference of the second subnet.
[0086] It should be noted that in this embodiment, a load balancing method based on dynamic programming is adopted, and reasonable network division is performed for different power stations, that is, after subnet division is performed by a hybrid network division method based on long transmission lines and equivalent short lines, the optimal load balancing of the processor is achieved.
[0087] The specific steps are as follows. Sort the subnets according to the computing load from high to low to generate a subnet array, and calculate the average load value of all subnets. Traverse the subnets in the order of the subnet array: if the computing load of the current subnet is greater than or equal to the average load, the subnet is separately allocated to a computing core, and the subnet is removed from the subnet array, and continue to traverse the next subnet;
[0088] If the computing load of the current subnet is less than the average load, the subnet is allocated to a shared computing core as the first subnet of the shared computing core, and the load difference of the current core is recorded, where the load difference is the difference between the computing load of the current subnet and the average load.
[0089] Select a subnets and b subnets with the computing load closest to the load difference from the subnet array, satisfying that the computing load of the a subnet is greater than the load difference, and the load difference needs to be greater than or equal to the computing load of the b subnet;
[0090] If the difference between the load difference and the computing load of the a subnet is less than the computing load of the b subnet and the load difference, add the b subnet to the shared computing core, update the values of the load difference and the subnet array, and continue to select subnets to add to the shared computing core;
[0091] If the difference between the load differences is less than the difference between the calculated load of subnet a and the load difference, record the difference between the load difference and the calculated load of subnet a, add subnet b to the core, update the values of the load difference and the subnet array, and continue to execute the above process;
[0092] If the difference between the load difference and the calculated load of subnet a is less than the load difference, select subnet a to join the shared computing core, and update the values of the load difference and the subnet array; otherwise, select the subnet with the sum of the calculated loads closest to the average load to join the shared computing core, end the allocation of the current shared computing core, and continue to traverse the next subnet. When all subnets in the subnet array have been allocated to the computing core, the load balancing allocation process of the processor is completed.
[0093] The advantage of the present invention is that by dynamically adjusting the subnet allocation strategy, it ensures that the loads of each computing core are as close as possible to the average load value, thereby optimizing the utilization rate of computing resources, improving the overall performance of the processor, effectively solving the problem of load imbalance, and having high practicality and scalability.
[0094] S105, control the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and form a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform.
[0095] In one embodiment, based on the first simulation platform, control the first system model to generate a first electromagnetic transient initialization section according to the boundary Thevenin equivalent method and the ideal source excitation method; based on the second simulation platform, control the second system model to form a second electromagnetic transient initialization section according to the phasor diagram calculation method and the historical variable representation method; based on the section splicing method, control the first electromagnetic transient initialization section and the second electromagnetic transient initialization section to form the target electromagnetic transient initialization section.
[0096] It should be noted that for the power electronic device models such as new energy power generation units, the first simulation platform adopts the strategy of boundary Thevenin equivalence and ideal source excitation to make it reach the electromagnetic transient initialization section at a given moment. The second simulation platform obtains the phasor form of the corresponding electric quantity based on the obtained power flow database, and adopts the phasor diagram calculation and historical variable representation method to directly obtain the instantaneous values of its various parameters to form an electromagnetic transient initialization section. The two platforms form the electromagnetic transient initialization section of the fully AC-DC hybrid system through the section splicing mechanism, realizing the direct start of the electromagnetic transient simulation of the AC-DC power grid containing a new energy power station from the steady-state initial section.
[0097] Further explanation is that the section splicing mechanism is to organically combine the sections of these two different parts so that the electric quantities (such as voltage, current, etc.) at their boundaries can be mutually matched and connected. Through reasonable splicing, power electronic device models such as new energy power generation units can be integrated with other parts of the entire AC-DC hybrid system to form an electromagnetic transient initialization section of the full AC-DC hybrid system, so as to realize that the electromagnetic transient simulation of the AC-DC power grid containing a new energy power station directly starts from the steady-state initial section, enabling the simulation to more accurately and comprehensively simulate the actual operation of the power system.
[0098] S106, respectively control the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain the target electromagnetic transient simulation result.
[0099] In one embodiment, transmission line models are respectively constructed on the first simulation platform and the second simulation platform; electrical data of the first simulation platform and the second simulation platform are respectively obtained according to the transmission line models.
[0100] In this embodiment, the Bergeron transmission line model is respectively constructed on the first simulation platform and the second simulation platform as the boundary for data interaction. The voltage values or current values of the two-port network calculated by the two platforms are transmitted through high-speed SFP optical fibers, and the transmission uses a high-speed communication protocol based on Xilinx Aurora. It should be noted that Xilinx Aurora is a scalable lightweight link layer protocol for moving data between point-to-point serial links.
[0101] In one embodiment, respectively control the first simulation platform and the second simulation platform to transmit the electrical data through a communication interface; obtain the target electromagnetic transient simulation result according to the electrical data; when the electromagnetic transient simulation time reaches the preset simulation time, control the first simulation platform and the second simulation platform to stop the electromagnetic transient simulation.
[0102] The specific principle of electromagnetic transient joint simulation is as Figure 2 shown. After the steady state initializes, the first simulation platform and the second simulation platform respectively perform electromagnetic transient simulation and conduct data interaction through a communication interface. When the simulation time reaches the preset simulation time, the electromagnetic transient simulation result can be viewed on the upper computer.
[0103] It should be noted that the electromagnetic transient simulation of the AC-DC power grid containing a new energy power station can directly start running on this basis, improving the efficiency and accuracy of the simulation, being able to more effectively simulate the electromagnetic transient process of the actual power system under various working conditions, and providing a more reliable basis for the analysis, design, and operation of the power system.
[0104] The electromagnetic transient joint simulation method provided in this embodiment includes: constructing a first system model for a new energy power station and a DC sending end in a first simulation platform, and constructing a second system model for an AC system in a second simulation platform; performing a subnetting operation on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, where the hybrid subnetting method includes: a long transmission line subnetting method and a compensated short line subnetting method; performing a subnetting operation on the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets; respectively performing a load balancing operation on each of the first subnets and each of the second subnets based on the load balancing method of dynamic programming, controlling the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and forming a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; respectively controlling the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result. This application constructs a plurality of system models for a power system based on a plurality of simulation platforms, uses the hybrid subnetting method to subnet the corresponding system models, shortens the simulation time through parallel computing, realizes real-time simulation, and improves the simulation efficiency.
[0105] Embodiment 2
[0106] In addition, an embodiment of this application provides an electromagnetic transient joint simulation device.
[0107] As Figure 3 shown, the electromagnetic transient joint simulation device 300 includes:
[0108] A construction module 301, configured to construct a first system model for a new energy power station and a DC sending end in a first simulation platform, and construct a second system model for an AC system in a second simulation platform.
[0109] A first subnetting module 302, configured to perform a subnetting operation on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, where the hybrid subnetting method includes: a long transmission line subnetting method and a compensated short line subnetting method.
[0110] A second subnetting module 303, configured to perform a subnetting operation on the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets.
[0111] A processing module 304, configured to respectively perform a load balancing operation on each of the first subnets and each of the second subnets based on the load balancing method of dynamic programming.
[0112] A formation module 305 is configured to control the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and form a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform.
[0113] A simulation module 306 is configured to separately control the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section, so as to obtain a target electromagnetic transient simulation result.
[0114] The electromagnetic transient joint simulation device 300 provided in this embodiment can implement the electromagnetic transient joint simulation method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.
[0115] The electromagnetic transient joint simulation device provided in this embodiment is applied to the electromagnetic transient joint simulation method. The method includes: constructing a first system model for a new energy power station and a DC sending end in a first simulation platform, and constructing a second system model for an AC system in a second simulation platform; performing a subnetting operation on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, where the hybrid subnetting method includes: a long transmission line subnetting method and a compensated short line subnetting method; performing a subnetting operation on the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets; respectively performing a load balancing operation on each of the first subnets and each of the second subnets based on a load balancing method based on dynamic programming, controlling the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and forming a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; separately controlling the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result. This application constructs a plurality of system models for a power system based on a plurality of simulation platforms, uses the hybrid subnetting method to subnet the corresponding system models, shortens the simulation time through parallel computing, realizes real-time simulation, and improves the simulation efficiency.
[0116] Embodiment 3
[0117] In addition, an electronic device is provided in an embodiment of the present application, including a memory and a processor. The memory stores a computer program, and when the computer program runs on the processor, it executes the electromagnetic transient joint simulation method provided in Embodiment 1.
[0118] Specifically, refer to Figure 4, the electronic device 400 includes: a transceiver 401, a bus interface, and a processor 402. The processor 402 is configured to: construct a first system model for a new energy power station and a DC sending end in a first simulation platform, and construct a second system model for an AC system in a second simulation platform; perform a network splitting operation on the first system model according to the hybrid network splitting method to obtain a plurality of first subnets, where the hybrid network splitting method includes: a long transmission line network splitting method and a compensated short circuit network splitting method; perform a network splitting operation on the second system model according to the long transmission line network splitting method to obtain a plurality of second subnets; perform a load balancing operation on each of the first subnets and each of the second subnets respectively based on the load balancing method of dynamic programming, control the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and form a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; respectively control the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result.
[0119] In one embodiment, the processor 402 is further configured to: obtain the electromagnetic wave transmission time of the first system model, use the subsystem model in the first system model whose simulation step length of the electromagnetic transient simulation is greater than or equal to the electromagnetic wave transmission time as the first subsystem model, and perform a network splitting operation on the first subsystem model according to the long transmission line network splitting method to obtain a first initial subnet; use the subsystem model in the first system model whose simulation step length of the electromagnetic transient simulation is less than the electromagnetic wave transmission time as the second subsystem model, and perform a network splitting operation on the first subsystem model according to the compensated short circuit network splitting method to obtain a second initial subnet; merge the first initial subnet and the second initial subnet to obtain a plurality of the first subnets.
[0120] In one embodiment, the processor 402 is further configured to: control the first system model to generate a first electromagnetic transient initialization section based on the first simulation platform according to the boundary Thevenin equivalent method and the ideal source excitation method; control the second system model to form a second electromagnetic transient initialization section based on the second simulation platform according to the phasor diagram method and the historical variable representation method; control the first electromagnetic transient initialization section and the second electromagnetic transient initialization section to form the target electromagnetic transient initialization section based on the section splicing method.
[0121] In one embodiment, the processor 402 is further configured to: respectively obtain the computing loads of each of the first subnets and each of the second subnets; sort each of the first subnets according to the computing loads of each of the first subnets to obtain a first subnet array and a first average load; sort each of the second subnets according to the computing loads of each of the second subnets to obtain a second subnet array and a second average load; and allocate each of the first subnets and each of the second subnets to target computing cores respectively according to the first average load and the second average load.
[0122] In one embodiment, the processor 402 is further configured to: sequentially determine, according to the sorting, whether the computing load of each of the first subnets in the first subnet array is greater than or equal to the first average load; if the computing load of the first subnet is greater than or equal to the first average load, allocate the first subnet separately to a computing core in a first computing core group; if the computing load of the first subnet is less than the first average load, allocate the first subnet to a first shared computing core, obtain a load difference of the first subnet, and determine multiple first subnets allocated to the first shared computing core according to the load difference; sequentially determine, according to the sorting, whether the computing load of each of the second subnets in the second subnet array is greater than or equal to the second average load; if the computing load of the second subnet is greater than or equal to the second average load, allocate the second subnet separately to a computing core in a second computing core group; if the computing load of the second subnet is less than the second average load, allocate the second subnet to a second shared computing core, obtain a load difference of the second subnet, and determine multiple second subnets allocated to the second shared computing core according to the load difference of the second subnet.
[0123] In one embodiment, the processor 402 is further configured to: respectively construct transmission line models on the first simulation platform and the second simulation platform; and respectively obtain electrical data of the first simulation platform and the second simulation platform according to the transmission line models.
[0124] In one embodiment, the processor 402 is further configured to: respectively control the first simulation platform and the second simulation platform to transmit the electrical data through a communication interface; obtain a target electromagnetic transient simulation result according to the electrical data; and when the electromagnetic transient simulation time reaches a preset simulation time, control the first simulation platform and the second simulation platform to stop the electromagnetic transient simulation.
[0125] In the embodiment of the present application, the electronic device 400 further includes: a memory 403. In Figure 4Among them, the bus architecture may include any number of interconnected buses and bridges, specifically connecting various circuits of one or more processors represented by the processor 402 and the memory represented by the memory 403 together. The bus architecture may also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits together, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 401 may be multiple components, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on the transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 may store data used by the processor 402 when performing operations.
[0126] The electronic device 400 provided in the embodiment of the present application can execute the steps of the electromagnetic transient joint simulation method provided in the above method embodiment 1. To avoid repetition, it will not be elaborated herein.
[0127] The electronic device provided in this embodiment is applied to the electromagnetic transient joint simulation method, and the method includes: constructing a first system model for the new energy power station and the DC sending end in a first simulation platform, and constructing a second system model for the AC system in a second simulation platform; performing a subnetting operation on the first system model according to the hybrid subnetting method to obtain a plurality of first subnets, where the hybrid subnetting method includes: the long transmission line subnetting method and the compensated short circuit line subnetting method; performing a subnetting operation on the second system model according to the long transmission line subnetting method to obtain a plurality of second subnets; respectively performing a load balancing operation on each of the first subnets and each of the second subnets based on the load balancing method based on dynamic programming, controlling the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and forming a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; respectively controlling the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result. The present application constructs a plurality of system models for the power system based on a plurality of simulation platforms, uses the hybrid subnetting method to subnet the corresponding system models, shortens the simulation time through parallel computing, realizes real-time simulation, and improves the simulation efficiency.
[0128] Embodiment 4
[0129] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the electromagnetic transient joint simulation method provided in Embodiment 1.
[0130] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, an optical disc, or the like.
[0131] The computer-readable storage medium provided in this embodiment can implement the electromagnetic transient joint simulation method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.
[0132] It should be noted that in this article, the terms "including", "comprising", or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal including a series of elements includes not only those elements but also other elements not explicitly listed, or further includes elements inherent to such process, method, article, or terminal. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article, or terminal including that element.
[0133] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
[0134] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the purpose of the present application and the scope protected by the claims, can also make many forms, all of which fall within the protection scope of the present application.
Claims
1. An electromagnetic transient joint simulation method, characterized in that: The method comprises: Constructing a first system model for a new energy power station and a DC transmission end in a first simulation platform, and constructing a second system model for an AC system in a second simulation platform; Performing a network division operation on the first system model according to a hybrid network division method to obtain a plurality of first subnets, wherein the hybrid network division method includes: a long transmission line network division method and a compensated short line network division method; Performing a network division operation on the second system model according to the long transmission line network division method to obtain a plurality of second subnets; Performing load balancing operations on each of the first subnets and each of the second subnets respectively based on a load balancing method of dynamic programming; Controlling the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and forming a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; The first simulation platform and the second simulation platform are respectively controlled to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result.
2. The electromagnetic transient joint simulation method according to claim 1, characterized in that: The first system model includes a plurality of subsystem models, and the performing a network partitioning operation on the first system model according to the hybrid network partitioning method to obtain a plurality of first subnets includes: Acquire the electromagnetic wave transmission time of the first system model, take the subsystem model whose simulation step length of the electromagnetic transient simulation in the first system model is greater than or equal to the electromagnetic wave transmission time as the first subsystem model, and perform a network division operation on the first subsystem model according to the long transmission line network division method to obtain a first initial subnet; Taking the subsystem model in the first system model whose simulation step length of the electromagnetic transient simulation is smaller than the electromagnetic wave transmission time as the second subsystem model, performing a network division operation on the first subsystem model according to the compensated short-circuit network division method to obtain a second initial subnet; The first initial subnet and the second initial subnet are merged to obtain a plurality of the first subnets.
3. The electromagnetic transient joint simulation method according to claim 1, characterized in that: The forming of the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform comprises: Based on the first simulation platform, the first system model is controlled according to the boundary Thevenin equivalent method and the ideal source excitation method to generate a first electromagnetic transient initialization section; Based on the second simulation platform, the second system model is controlled according to the phasor diagram method and the historical variable representation method to form a second electromagnetic transient initialization section; The forming of a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform comprises: Based on the section splicing method, the first electromagnetic transient initialization section and the second electromagnetic transient initialization section are controlled to form the target electromagnetic transient initialization section.
4. The electromagnetic transient joint simulation method according to claim 1, characterized in that: The performing load balancing operations on each of the first subnets and each of the second subnets respectively according to the load balancing method based on dynamic programming includes: Obtaining computing loads of each of the first subnets and each of the second subnets respectively; Sort the first subnets according to the calculated load of the first subnets to obtain a first subnet array and a first average load; Sort the second subnets according to the calculated load of the second subnets to obtain a second subnet array and a second average load; The first subnets and the second subnets are respectively allocated to a target computing core according to the first average load and the second average load.
5. The electromagnetic transient joint simulation method according to claim 4, characterized in that: The allocating each of the first subnets and each of the second subnets to a target computing core according to the first average load and the second average load respectively includes: Determining in order according to the sort whether the calculation load of each of the first subnets in the first subnet array is greater than or equal to the first average load; If the computing load of the first subnet is greater than or equal to the first average load, the first subnet is individually allocated to a computing core in the first computing core group; If the computing load of the first subnet is less than the first average load, the first subnet is allocated to a first shared computing core, and a load difference of the first subnet is obtained, and a plurality of first subnets allocated to the first shared computing core are determined according to the load difference; Determining in order according to the sort whether the calculation load of each of the second subnets in the second subnet array is greater than or equal to the second average load; If the computing load of the second subnet is greater than or equal to the second average load, the second subnet is individually allocated to a computing core in the second computing core group; If the computing load of the second subnet is less than the second average load, the second subnet is allocated to the second shared computing core, and the load difference of the second subnet is obtained, and multiple second subnets allocated to the second shared computing core are determined according to the load difference of the second subnet.
6. The electromagnetic transient joint simulation method according to claim 1, characterized in that: The method further comprises: constructing a transmission line model on the first simulation platform and the second simulation platform respectively; The electrical data of the first simulation platform and the second simulation platform are respectively acquired according to the transmission line model.
7. The electromagnetic transient joint simulation method according to claim 6, characterized in that: The respectively controlling the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result includes: Respectively controlling the first simulation platform and the second simulation platform to transmit the electrical data through a communication interface; Acquire the target electromagnetic transient simulation result according to the electrical data; When the electromagnetic transient simulation time reaches a preset simulation time, the first simulation platform and the second simulation platform are controlled to stop the electromagnetic transient simulation.
8. An electromagnetic transient joint simulation device, characterized in that: The device comprises: A construction module, used to construct a first system model for a new energy power station and a DC sending end in a first simulation platform, and to construct a second system model for an AC system in a second simulation platform; A first network division module, configured to perform a network division operation on the first system model according to a hybrid network division method to obtain a plurality of first subnets, wherein the hybrid network division method includes: a long transmission line network division method and a compensated short line network division method; A second network division module, used for performing a network division operation on the second system model according to the long transmission line network division method to obtain a plurality of second subnets; A processing module, configured to perform load balancing operations on each of the first subnets and each of the second subnets respectively based on a load balancing method of dynamic programming; A forming module, used for controlling the first simulation platform and the second simulation platform to form an electromagnetic transient initialization section, and forming a target electromagnetic transient initialization section according to the electromagnetic transient initialization section of the first simulation platform and the electromagnetic transient initialization section of the second simulation platform; The simulation module is used to respectively control the first simulation platform and the second simulation platform to perform electromagnetic transient simulation based on the target electromagnetic transient initialization section to obtain a target electromagnetic transient simulation result.
9. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the electromagnetic transient joint simulation method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: It stores a computer program, which, when executed on a processor, implements the electromagnetic transient joint simulation method according to any one of claims 1-7.