Electric power system electromagnetic transient cross-platform joint simulation interface construction and simulation method
By establishing a cross-platform joint simulation interface in the power system, the limitations of a single platform in terms of modeling accuracy and computational efficiency are solved. This enables accurate simulation of complex electromagnetic transient processes in power grids with a high proportion of new energy sources and power electronic equipment. The use of the Bergeron distributed parameter line model and historical equivalent current source calculations ensures the accuracy and efficiency of the simulation results.
Patent Information
- Application Number
- CN202510759751.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-09
- Publication Date
- 2025-11-04
AI Technical Summary
In the existing technology, single power system electromagnetic transient simulation platforms have limitations in modeling accuracy, computational efficiency and functional coverage, making it difficult to accurately simulate the complex power grid electromagnetic transient processes caused by a high proportion of new energy sources and power electronic equipment.
A cross-platform co-simulation interface for electromagnetic transients in power systems is designed. By establishing communication hardware connections between different simulation platforms, interface circuits for ends A and D are constructed, and parameter tuning calculations are performed to achieve synchronization of simulation steps and information transmission. The Begeron distributed parameter line model and historical equivalent current source calculation method are adopted to reduce communication delay and error.
It achieves high precision, real-time performance, and feasibility of large-scale computation in cross-platform joint simulation, ensuring accurate simulation of electromagnetic transient processes and avoiding the introduction of errors. It is applicable to three-phase AC systems, two-phase DC transmission poles, and single-phase power electronic circuit structures.
Smart Images

Figure CN120893166A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power system electromagnetic transient modeling, and more particularly, to a power system electromagnetic transient cross-platform joint simulation interface construction and simulation method. BACKGROUND
[0002] BACKGROUND
[0003] With the complexity of wideband transient process and large-scale simulation demand brought by high proportion of new energy and power electronic equipment in new power system, the limitations of single platform in modeling accuracy, calculation efficiency or functional coverage are highlighted. Cross-platform joint simulation, by integrating the technical advantages of each platform (such as fine modeling of power electronics in PSCAD, real-time in RTDS, and large-scale computing capacity of domestic platforms), has become an urgent need to realize the collaborative and accurate simulation of complex power grid electromagnetic transient process. Designing a flexible, universal and error-free interface technology is the key foundation for realizing joint simulation of different electromagnetic transient simulation platforms.
[0004] In single power system electromagnetic transient offline and real-time calculation software, Bergeron equivalent circuit is usually used to segment the network. For example, in offline calculation software such as EMTDC and EMTP, Bergeron equivalent calculation circuit of distributed parameter line is used to divide a large admittance matrix into multiple small admittance matrices, so as to improve the calculation speed and reduce the memory occupation; while in real-time simulation software such as RTDS, HYPERSIM and ADPSS, it is used to segment the network to realize parallel computing. This method of using distributed parameter line model to naturally decouple the network for parallel computing is called "long transmission line decoupling network parallel algorithm". According to the line wave equation and Bergeron electromagnetic transient modeling method, when the simulation calculation step dT is not greater than the transmission time τ of the wave on the line, the network at both ends of the long-distance transmission line can be naturally decoupled at each calculation time t(n). Therefore, it can be considered to use the distributed parameter line as the interface element between different electromagnetic transient simulation platforms and design an interface scheme to realize electromagnetic transient joint simulation. SUMMARY
[0005] In view of the deficiencies of the prior art, the present application provides a power system electromagnetic transient cross-platform joint simulation interface construction and simulation method.
[0006] According to one aspect of the present application, a power system electromagnetic transient cross-platform joint simulation interface construction and simulation method is provided, comprising:
[0007] Step one: realize communication hardware connection between different electromagnetic transient simulation platforms to form a joint simulation interface;
[0008] Step two: build the a-side interface circuit and the d-side interface circuit respectively on the simulation platform at both ends of the joint simulation interface;
[0009] Step three: carry out parameter setting calculation of the a-side interface circuit and the d-side interface circuit to obtain the setting parameters of the a-side interface circuit and the d-side interface circuit;
[0010] Step four: according to the initialization stage of the setting parameters, the two simulation platforms at both ends of the joint simulation interface send the local side initialization information to the opposite side, and send a signal to the opposite side simulation platform after the initialization is completed;
[0011] Step five: during the simulation process, the two simulation platforms respectively carry out local side model calculation and solving; after the a-side simulation platform completes the calculation, it immediately sends the local side result information to the d-side simulator, and then blocks the reception of the information returned by the d-side simulation platform; after the d-side simulation platform completes the calculation, it waits until the simulation step time to send the local side result to the a-side simulation platform, and then starts the next step of calculation; after the a-side simulator platform receives the information returned by the d-side, it starts the next step of calculation;
[0012] Step six: in the ending stage, the d-side simulation platform sends a stop signal to the a-side simulation platform; after receiving the stop signal, the a-side simulation platform returns a confirmation signal to the d-side simulation platform, and stops the local side simulator; after receiving the confirmation signal returned by the a-side simulation platform, the d-side simulation platform stops the local side simulation.
[0013] Optionally, the communication hardware connection adopts SFP optical fiber communication, the transmission rate adopts 2.5Gb, 5Gb or 10Gb, the communication protocol adopts Aurora or Ethernet protocol, and the communication delay is measured and recorded as Td.
[0014] Optionally, step 3 specifically includes:
[0015] Step 1: the electromagnetic transient simulation step of the joint simulation is dT, the time constant of the interface circuit is Tao, Tao=N*dT is taken, and N is an integer, Tao d ≤Tao<T d +dT;
[0016] Step 2: the actual power transmission line unit length resistance of the interface circuit is recorded as R, the unit length inductance parameter is L, and the unit length capacitance parameter is C, then the length of the intercepted line is l=Tao / √(L / C);
[0017] Step 3: the resistance Z r =l*R / 2; Z e =√(L / C).
[0018] 4. The method of claim 1, wherein in step 4, the d-side simulation platform is set as the master, and after the d-side simulation platform completes self-initialization and receives an initialization completion signal from the a-side simulation platform, the d-side starts simulation and sends a simulation start signal to the a-side simulation platform.
[0019] Optionally, in step 5, the equivalent current source calculation formula is:
[0020] I d =-u a(t-Tao) / Z r -i a(t-Tao) ;I a =-u d(t-Tao) / Z r -i d(t-Tao)
[0021] wherein i d and i a are the instantaneous values of the currents flowing into the d-side and a-side interfaces, respectively, u d and u a are the instantaneous values of the voltages across the interface circuit Z e , and the current time is denoted as t, and the values before Tao are denoted as i d(t-Tao) , i a(t-Tao) , u d(t-Tao) , and u a(t-Tao) .
[0022] Optionally, in step 5, for each calculation, the d-side simulation platform calculates i a according to the formula I d(t-Tao) =-u r / Z d(t-Tao) -i a and sends it to the a-side, which then amplitudes it to a historical current source in the equivalent circuit; and the a-side simulation platform calculates I d according to the formula I a(t-Tao) =-u r / Z a(t-Tao) -i d and sends it to the d-side, which then amplitudes it to a historical current source in the equivalent circuit.
[0023] According to another aspect of the present application, there is provided an electromagnetic transient cross-platform joint simulation interface construction and simulation device for a power system, comprising:
[0024] Module 1: connecting the communication hardware between different electromagnetic transient simulation platforms to form a joint simulation interface;
[0025] Module 2: constructing an a-side interface circuit and a d-side interface circuit on the simulation platforms at both ends of the joint simulation interface;
[0026] Module three: the parameter setting calculation of the a terminal interface circuit and the d terminal interface circuit is carried out, and the setting parameters of the a terminal interface circuit and the d terminal interface circuit are obtained;
[0027] Module four: according to the initialization stage of the setting parameters, the two simulation platforms at the two ends of the joint simulation interface respectively send the local side initialization information to the opposite side, and send a signal to the opposite side simulation platform after the initialization is completed;
[0028] Module five: in the simulation process, the two simulation platforms respectively carry out local side model calculation and solving; after the a simulation platform is calculated, the local side result information is immediately sent to the d side simulator, and then the d side simulation platform return information is blocked; after the d side simulation platform is calculated, the local side result is sent to the a side simulation platform at the simulation step time, and then the next step calculation is started; after the a side simulator platform receives the d side return information, the next step calculation is started;
[0029] Module six: in the end stage, the d side simulation platform sends a stop signal to the a side simulation platform; after the a side simulation platform receives the stop signal, a confirmation signal is returned to the d side simulation platform, and the local side simulator is stopped; after the d side simulation platform receives the confirmation signal returned by the a side simulation platform, the local side simulation is stopped.
[0030] According to another aspect of the application, a computer readable storage medium is provided, the storage medium storing a computer program, the computer program being used to execute the method according to any one of the preceding aspects of the application.
[0031] According to another aspect of the application, an electronic device is provided, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the method according to any one of the preceding aspects of the application.
[0032] The application has the following beneficial effects:
[0033] 1. The interface circuit adopted in the application is intercepted from the actual power transmission line of the system, a Bergeron distributed parameter line model is used for construction, and the transmission time constant of the actual fluctuation process of the line is used for compensating the communication delay, so that the high precision effect of not introducing new parameters and not introducing delay error is achieved;
[0034] 2. The historical equivalent current source of the interface circuit in the application is calculated by using the local voltage and current instantaneous value signals, the calculation result is sent to the opposite side, the communication information amount is reduced to the minimum, and the communication efficiency is improved;
[0035] 3. The interface circuit in the application is constructed in the form of single phase, can be reused, and can adapt to three-phase alternating current systems, two-phase direct current transmission pole lines and single-phase power electronic circuit structures;
[0036] 4、The interface circuit is simple, parameters are easy to obtain, and no new model demand is proposed for the simulation platform, so that the construction of the electromagnetic transient cross-platform joint simulation interface is convenient and efficient, and easy to implement. BRIEF DESCRIPTION OF DRAWINGS
[0037] The exemplary embodiments of the present application can be more fully understood with reference to the following drawings in which:
[0038] FIG. 1 is a flowchart of the power system electromagnetic transient cross-platform joint simulation interface construction and simulation method provided by an exemplary embodiment of the present application;
[0039] FIG. 2 is a schematic diagram of the joint simulation interface circuit of the d-end simulation platform provided by an exemplary embodiment of the present application;
[0040] FIG. 3 is a schematic diagram of the joint simulation interface circuit of the a-end simulation platform provided by an exemplary embodiment of the present application;
[0041] FIG. 4 and FIG. 5 are respectively a comparison diagram of the voltage and current of the joint simulation through the interface and the single simulation platform simulation provided by an exemplary embodiment of the present application;
[0042] FIG. 6 is a structural diagram of the power system electromagnetic transient cross-platform joint simulation interface construction and simulation device provided by an exemplary embodiment of the present application;
[0043] FIG. 7 is a structure of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0044] Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all embodiments of the present application, and it should be understood that the present application is not limited to the described exemplary embodiments.
[0045] It should be noted that: unless otherwise specified, the relative arrangement, numerical expression and numerical value of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0046] Those skilled in the art can understand that the terms "first", "second", etc. in the embodiments of the present application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they represent the inevitable logical sequence between them.
[0047] It should also be understood that, in the embodiments of the application, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.
[0048] It should also be understood that, for any component, data or structure mentioned in the embodiments of the application, one or more can be generally understood without explicit limitation or in the context of the opposite implication.
[0049] In addition, the term "and / or" in the present application is only to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A alone, A and B together, and B alone. In addition, the character " / " in the present application generally represents an "or" relationship between the front and rear associated objects.
[0050] It should also be understood that the description of the embodiments of the present application emphasizes the differences between the embodiments, and the same or similar parts can be referred to each other, and for the sake of brevity, will not be repeated.
[0051] At the same time, it should be understood that, for the convenience of description, the size of each part shown in the drawings is not drawn according to the actual proportion relationship.
[0052] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application or its application or use.
[0053] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail, but should be considered part of the specification where appropriate.
[0054] It should be noted that: similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0055] Embodiments of the present application can be applied to terminal devices, computer systems, servers and other electronic devices, which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with terminal devices, computer systems, servers and other electronic devices include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems and distributed cloud computing technology environments including any of the above systems, etc.
[0056] Electronic devices such as terminal devices, computer systems, servers, and the like can be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, and the like that perform particular tasks or implement particular abstract data types. Computer systems / server can be practiced in distributed cloud computing environments with other computer systems coupled via communication networks. The program modules can be stored in the local or remote computer system memory devices.
[0057] Exemplary methods
[0058] FIG. 1 is a flowchart of a power system electromagnetic transient cross-platform joint simulation interface construction and simulation method provided by an exemplary embodiment of the present application. The present embodiment can be applied on electronic devices, such as FIG. 1 As shown in the figure, the power system electromagnetic transient cross-platform joint simulation interface construction and simulation method 100 includes the following steps:
[0059] Step 101: Connect the communication hardware between different electromagnetic transient simulation platforms to form a joint simulation interface;
[0060] Step 102: Construct an a-side interface circuit and a d-side interface circuit on the simulation platforms at both ends of the joint simulation interface;
[0061] Step 103: Perform parameter setting calculation of the a-side interface circuit and the d-side interface circuit to obtain the setting parameters of the a-side interface circuit and the d-side interface circuit;
[0062] Step 104: According to the initialization stage of the setting parameters, the two simulation platforms at both ends of the joint simulation interface respectively send the local side initialization information to the opposite side, and send a signal to the opposite simulation platform after the initialization is completed;
[0063] Step 105: In the simulation process, the two simulation platforms respectively perform local side model calculation and solving; after the a-side simulation platform completes the calculation, it immediately sends the local side result information to the d-side simulator, and then blocks the reception of the information returned by the d-side simulation platform; after the d-side simulation platform completes the calculation, it waits until the simulation step time to send the local side result to the a-side simulation platform, and then starts the next step of calculation; after the a-side simulator platform receives the information returned by the d-side, it starts the next step of calculation;
[0064] Step 106: In the end stage, the d-side simulation platform sends a stop signal to the a-side simulation platform; after receiving the signal, the a-side simulation platform returns a confirmation signal to the d-side simulation platform, and stops the local side simulator; after receiving the confirmation signal returned by the a-side simulation platform, the d-side simulation platform stops the local side simulation.
[0065] Specifically, the wide-band complex transient process caused by high proportion of new energy and power electronic equipment in the new power system exceeds the modeling precision and computing capacity boundary of a single simulation platform, and cross-platform joint simulation becomes an inevitable choice for realizing accurate simulation of system electromagnetic transient by integrating the technical advantages of multiple platforms.
[0066] The purpose of the present application is to design an interface technology for electromagnetic transient cross-platform joint simulation, which is flexible, universal and does not introduce errors, as the core link connecting different electromagnetic transient simulation platforms, to ensure the accuracy, real-time performance and large-scale computing feasibility of cross-platform joint simulation, and to break the isolation between different simulation platforms and realize complementary advantages for accurate simulation of complex power system electromagnetic transient, better supporting collaborative accurate simulation of complex power grid electromagnetic transient process.
[0067] The purpose of the present application is to design an interface technology and scheme for electromagnetic transient cross-platform joint simulation, which is the core link connecting different electromagnetic transient simulation platforms, supports the integration of technical advantages of electromagnetic transient simulation multi-platform and accurate simulation of complex power system electromagnetic transient. The present application comprises the following steps and contents:
[0068] Step one: realize communication hardware connection between different electromagnetic transient simulation platforms, adopt SFP optical fiber communication, transmission rate adopts 2.5Gb, 5Gb or 10Gb, communication protocol adopts Aurora or Ethernet protocol, and measure communication delay, denoted as Td.
[0069] Step two: build interface circuits as shown in FIG. 1 、 FIG. 2 on the simulation platforms at both ends of the joint simulation interface (denoted as d-end simulation platform and a-end simulation platform respectively).
[0070] Step three: carry out parameter setting calculation of the interface circuit according to the following method:
[0071] 1. The electromagnetic transient simulation step of joint simulation is dT, and the time constant of the interface circuit is Tao, then Tao=N*dT is taken, and N is an integer and Tao d ≤Tao<T d +dT.
[0072] 2. Denote the actual power transmission line unit length resistance for the interface circuit as R, the unit length inductance parameter as L, and the unit length capacitance parameter as C, then the length of the intercepted line is l=Tao / √(L / C);
[0073] 3、 FIG. 2 、 FIG. 3 Z r = l*R / 2; Z e= sqrt(L / C).
[0074] where FIG. 2 Description: interface circuit wiring diagram of d-side simulation platform for joint simulation. d is the instantaneous value of current flowing into d-side interface, u d is the instantaneous value of voltage across d-side interface circuit, Z e is the instantaneous value of voltage across d-side interface circuit, Z r is half of the resistance of interface line, Z e is characteristic impedance determined by inductance and capacitance per unit length, see previous text for setting method.
[0075] FIG. 3 Description: interface circuit wiring diagram of a-side simulation platform for joint simulation. a is the instantaneous value of current flowing into a-side interface, u a is the instantaneous value of voltage across a-side interface circuit, Z e is the instantaneous value of voltage across a-side interface circuit, Z r is half of the resistance of interface line, Z e is characteristic impedance determined by inductance and capacitance per unit length, see previous text for setting method.
[0076] Step four: initialization stage, two simulation platforms send their own initialization information to the opposite side, and send a signal to the opposite simulation platform after initialization is completed. Set the d-side simulation platform as the master control, and the d-side simulation platform completes its own initialization and receives the initialization completion signal sent by the a-side simulation platform, then the d-side starts simulation and sends a start simulation signal to the a-side simulation platform.
[0077] Step five: during simulation, two simulation platforms respectively perform model calculation and solution; after the a-side simulation platform completes calculation, it immediately sends the local result information to the d-side simulator, and then blocks the return information from the d-side simulation platform; after the d-side simulation platform completes calculation, it waits until the simulation step time and then sends the local result to the a-side simulation platform, and then starts the next step of calculation; after the a-side simulator platform receives the return information from the d-side, it starts the next step of calculation. During calculation, update the historical current source value according to the following method:
[0078] 1, FIG. 1 , FIG. 2 where i d , i a are the instantaneous values of current flowing into d-side and a-side interfaces, u d , u a are the instantaneous values of voltage across d-side and a-side interface circuits, Z e are the instantaneous values of voltage across d-side and a-side interface circuits, Z d(t-Tao) , i a(t-Tao) , u d(t-Tao) , ua(t-Tao) The equivalent current source calculation formula is: I d =-u a(t-Tao) / Z r -i a(t-Tao) ;I a =-u d(t-Tao) / Z r -i d(t-Tao)
[0079] 2. In each step calculation, the d-side simulation platform calculates the i a =-u d(t-Tao) / Z r -i d(t-Tao) according to the formula I a and sends it to the a-side, which is then amplified to the historical current source in the equivalent circuit; the a-side simulation platform calculates the I d =-u a(t-Tao) / Z r -i a(t-Tao) according to the formula I d and sends it to the d-side, which is then amplified to the historical current source in the equivalent circuit.
[0080] Step six: end phase, the d-side simulation platform sends a stop signal to the a-side simulation platform; after receiving the signal, the a-side simulation platform returns a confirmation signal to the d-side simulation platform and stops the simulation platform; after receiving the confirmation signal returned by the a-side simulation platform, the d-side simulation platform stops the simulation platform.
[0081] The application is applied in practice: the d-side simulation platform is selected as a widely used domestic simulation platform with advantages in AC / DC large-scale power grid simulation, and the a-side simulation platform is selected as a widely used foreign simulation platform with advantages in complex power electronic device modeling technology.
[0082] Firstly, the communication hardware connection between the d-side and a-side simulation platforms is constructed, and the communication delay is measured to be about 80us, and a section of line in the actual power grid is selected as the tie branch. The unit length resistance of the line is 0.011301Ω / kM, the unit length inductance is 8.6593620E-04H / KM, and the unit length capacitance is 0.01350038uF / KM. The simulation step is 50us, so the time constant Tao of the interface circuit is taken as 100us.
[0083] The accurate line length of the interface circuit is set as: l=100e-6 / sqrt(8.6593620E-04*0.01350038e-6)=29.2472kM
[0084] The resistance of the interface circuit is set as: Zr=0.011301*29.2472 / 2=0.1653Ω
[0085] Characteristic impedance of the interface circuit: Ze=sqrt(8.6593620E-04 / 0.01350038e-6)=253.262Ω
[0086] FIG. 4 And FIG. 5 The comparison of the calculation results of the joint simulation using the interface circuit and the simulation of all circuits on a single simulation platform respectively shows that the two are completely consistent, and the interface does not introduce numerical errors.
[0087] The present application has the following beneficial effects:
[0088] 1. The interface circuit adopted in the present application is intercepted from the actual power transmission line existing in the system, a Bergeron distributed parameter line model is used for construction, and the transmission time constant of the actual fluctuation process of the line is used for compensating the communication delay, so that the high-precision effect of not introducing new parameters and not introducing delay errors is achieved.
[0089] 2. In the present application, the historical equivalent current source of the interface circuit is calculated using the voltage and current instantaneous value signals on the same side, the calculation results are sent to the opposite side, the communication information amount is reduced to the minimum, and the communication efficiency is improved.
[0090] 3. In the present application, the interface circuit is constructed in the form of single phase, which can be reused, so that it can adapt to three-phase alternating current systems, two-phase direct current transmission pole lines and single-phase power electronic circuit structures.
[0091] 4. In the present application, the interface circuit is simple, the parameters are easy to obtain, and no new model demand is proposed for the simulation platform, so that the construction of the electromagnetic transient cross-platform joint simulation interface is convenient and efficient, and easy to realize.
[0092] Exemplary apparatuses
[0093] FIG. 6 is a structural schematic diagram of the power system electromagnetic transient cross-platform joint simulation interface construction and simulation device provided by an exemplary embodiment of the present application. As shown in FIG. 6 , the device 600 comprises:
[0094] Module one 610: realizing the communication hardware connection between different electromagnetic transient simulation platforms to form a joint simulation interface;
[0095] Module two 620: constructing an a-side interface circuit and a d-side interface circuit on the simulation platforms at both ends of the joint simulation interface respectively;
[0096] Module three 630: carrying out parameter setting calculation of the a-side interface circuit and the d-side interface circuit to obtain the setting parameters of the a-side interface circuit and the d-side interface circuit;
[0097] Module four 640: according to the setting parameter initialization stage, two simulation platforms on both sides of the joint simulation interface send the local side initialization information to the opposite side, and send a signal to the opposite side simulation platform after the initialization is completed;
[0098] Module five 650: during the simulation process, two simulation platforms respectively perform local side model calculation and solving; after the a-side simulation platform completes the calculation, it immediately sends the local side result information to the d-side simulator, and then blocks the reception of the d-side simulation platform return information; after the d-side simulation platform completes the calculation, it waits until the simulation step time to send the local side result to the a-side simulation platform, and then starts the next step calculation; after the a-side simulator platform receives the d-side return information, it starts the next step calculation;
[0099] Module six 660: in the end stage, the d-side simulation platform sends a stop signal to the a-side simulation platform; after receiving the signal, the a-side simulation platform returns a confirmation signal to the d-side simulation platform, and stops the local side simulator; after receiving the confirmation signal returned by the a-side simulation platform, the d-side simulation platform stops the local side simulation.
[0100] Optionally, the communication hardware connection adopts SFP optical fiber communication, the transmission rate adopts 2.5Gb, 5Gb or 10Gb, the communication protocol adopts Aurora or Ethernet protocol, and the communication delay is measured and recorded as Td.
[0101] Optionally, step 3 specifically includes:
[0102] Step 1: the electromagnetic transient simulation step of the joint simulation is dT, the time constant of the interface circuit is Tao, Tao=N*dT is taken, and N is an integer, Tao d ≤Tao<T d +dT;
[0103] Step 2: the actual power transmission line unit length resistance of the interface circuit is recorded as R, the unit length inductance parameter is L, and the unit length capacitance parameter is C, then the length of the intercepted line is l=Tao / √(L / C);
[0104] Step 3: the resistance Z r =l*R / 2; Z e =√(L / C).
[0105] 4. The method according to claim 1, characterized in that in step 4, the d-side simulation platform is set as the master control, and after the d-side simulation platform completes its own initialization and receives the initialization completion signal sent by the a-side simulation platform, the d-side starts the simulation and sends a start simulation signal to the a-side simulation platform.
[0106] Optionally, in step 5, the equivalent current source calculation formula is:
[0107] Id = -u a(t-Tao) / Z r -i a(t-Tao) ; I a = -u d(t-Tao) / Z r -i d(t-Tao)
[0108] where i d , i a are the instantaneous values of the current flowing into the d, a side interface, u d , u a are the instantaneous values of the voltage across the d, a side interface circuit Z e , and the current at the current time t is denoted as i d(t-Tao) , i a(t-Tao) , u d(t-Tao) , u a(t-Tao) .
[0109] Optionally, in each step of step 5, the d side simulation platform calculates i a according to the formula I d(t-Tao) = -u r / Z d(t-Tao) -i a and sends it to the a side, which is used to set the amplitude of the historical current source in the equivalent circuit; the a side simulation platform calculates I d according to the formula I a(t-Tao) = -u r / Z a(t-Tao) -i d and sends it to the d side, which is used to set the amplitude of the historical current source in the equivalent circuit.
[0110] Exemplary electronic devices
[0111] FIG. 7 is a structure of an electronic device provided by an exemplary embodiment of the present application. As shown in FIG. 7 , the electronic device 70 includes one or more processors 71 and a memory 72.
[0112] The processor 71 can be a central processing unit (CPU) or other form of processing unit that has data processing capability and / or instruction execution capability, and can control other components in the electronic device to perform desired functions.
[0113] The memory 72 can include one or more computer program products that can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory, for example, can include random access memory (RAM), cache memory, and / or the like. The non-volatile memory, for example, can include read only memory (ROM), hard disk, flash memory, and / or the like. One or more computer program instructions can be stored on the computer-readable storage media, and the processor 71 can run the program instructions to implement the methods of the software programs of the various embodiments of the present application described above and / or other desired functions. In one example, the electronic device can further include an input device 73 and an output device 74, which are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0114] In addition, the input device 73 can include, for example, a keyboard, a mouse, and / or the like.
[0115] The output device 74 can output various information to the outside. The output device 74 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and / or the like.
[0116] Of course, in order to simplify, FIG. 7 In FIG. 1, only some of the components of the electronic device related to the present application are shown, and components such as buses, input / output interfaces, and the like are omitted. In addition, the electronic device can include any other appropriate components, depending on the specific application.
[0117] Exemplary computer program product and computer-readable storage medium
[0118] In addition to the methods and devices described above, embodiments of the present application can also be a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform the steps of the methods according to various embodiments of the present application described in the above "Exemplary Methods" section of the specification.
[0119] The computer program product can be written in any combination of one or more programming languages, including an object-oriented programming language such as Java, C++, and / or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as a standalone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0120] In addition, an embodiment of the present application can also be a computer readable storage medium, having stored thereon computer program instructions which, when executed by a processor, cause the processor to carry out the steps described in the above "Exemplary Method" section of this specification of the methods according to various embodiments of the present application.
[0121] The computer readable storage medium can be any combination of one or more computer readable medium(s). The computer readable medium can be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or apparatus or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] The above describes the basic principles of the present application in conjunction with specific embodiments, but it should be noted that the advantages, benefits, effects and the like mentioned in the present application are only examples and are not limiting, and these advantages, benefits, effects and the like cannot be considered as necessary for each embodiment of the present application. In addition, the above specific details are only for the purpose of example and for the purpose of understanding, and are not limiting, and the above details do not limit the present application to the above specific details.
[0123] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between each embodiment can be understood by mutual reference. For system embodiments, since they basically correspond to method embodiments, the description is relatively simple, and the relevant parts can be understood by referring to the part of the method embodiment.
[0124] The block diagrams of the devices, systems, apparatuses, systems involved in the present application are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be as shown in the block diagrams. As those skilled in the art will recognize, these devices, systems, apparatuses, systems can be connected, arranged, configured in any manner. Words such as "include", "contain", "have" and the like are open-ended words, mean "including but not limited to", and can be used interchangeably. The words "or" and "and" used herein mean the word "and / or", and can be used interchangeably unless the context clearly indicates otherwise. The word "such as" used herein means the phrase "such as but not limited to", and can be used interchangeably.
[0125] The methods and systems of the present application can be implemented in a number of ways. For example, the methods and systems of the present application can be implemented via software, hardware, firmware, or any combination of software, hardware, and firmware. The above described order of steps for the methods is merely illustrative, and the steps of the methods of the present application are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the present application can also be implemented as a program recorded on a recording medium, which includes machine readable instructions for implementing the methods according to the present application. Thus, the present application also covers recording media storing programs for executing the methods according to the present application.
[0126] It is also to be noted that in the systems, apparatuses, and methods of the present application, various components or steps can be split and / or recombined. Such splitting and / or recombining is to be considered as an equivalent of the present application. The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein can be applied to other aspects without departing from the scope of the present application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0127] The above description has been presented for the purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although several example aspects and embodiments have been discussed, those skilled in the art will recognize certain variations, modifications, changes, additions, and sub-combinations thereof.
Claims
1. A method for constructing and simulating a cross-platform co-simulation interface for electromagnetic transients in power systems, characterized in that, include: Step 1: Establish communication hardware connections between different electromagnetic transient simulation platforms to form a joint simulation interface; Step 2: Construct the interface circuits at both ends of the co-simulation interface, namely, the interface circuit at end a and the interface circuit at end d. Step 3: Perform parameter tuning calculations for the a-end interface circuit and the d-end interface circuit to obtain the tuning parameters for the a-end interface circuit and the d-end interface circuit. Step 4: According to the initialization phase of the tuning parameters, the two simulation platforms at both ends of the co-simulation interface send their own initialization information to the other side, and send a signal to the other simulation platform after initialization is completed; Step 5: During the simulation, the two simulation platforms perform local model calculations and solutions respectively; after simulation platform a completes its calculation, it immediately sends the results information to simulator d, and then blocks receiving the information returned by simulation platform d. After the d-side simulation platform completes its calculations, it waits until the simulation step size is reached before sending its results to the a-side simulation platform and then starts the next calculation. The a-side simulator platform starts the next calculation after receiving the return information from the d-side. Step Six: End Phase - The d-side simulation platform sends a stop signal to the a-side simulation platform. After receiving the confirmation signal, simulation platform A sends an acknowledgment signal to simulation platform D and stops its own simulator; simulation platform D stops its own simulation after receiving the acknowledgment signal from simulation platform A.
2. The method according to claim 1, characterized in that, The communication hardware connection adopts SFP optical fiber communication, with a transmission rate of 2.5Gb, 5Gb or 10Gb, and the communication protocol adopts Aurora or Ethernet protocol. The communication delay is measured and denoted as Td.
3. The method according to claim 1, characterized in that, Step 3 specifically includes: Step 1: The electromagnetic transient simulation step size of the co-simulation is dT. Let Tao be the time constant of the interface circuit. Then, take Tao = N*dT, and satisfy N as an integer and T as the time constant of the interface circuit. d ≤Tao<T d +dT; Step 2: Let R be the resistance per unit length of the actual power transmission line used in the interface circuit, L be the inductance per unit length, and C be the capacitance per unit length. Then the cut line length l = Tao / √(L / C). Step 3: Resistance Z r =l*R / 2; Z e =√(L / C).
4. The method according to claim 1, characterized in that, In step 4, the d-side simulation platform is set as the master controller. After the d-side simulation platform completes its own initialization and receives the initialization completion signal from the a-side simulation platform, the d-side simulation platform starts the simulation and sends a simulation start signal to the a-side simulation platform.
5. The method according to claim 1, characterized in that, The formula for calculating the equal current source in step 5 is as follows: I d =-u a(t-Tao) / Z r -i a(t-Tao) ;I a =-u d(t-Tao) / Z r -i d(t-Tao) In the formula, i d i a These are the instantaneous current values flowing into the d and a side interfaces, respectively, u d u a Z represents the interface circuits on sides d and a, respectively. e The instantaneous value of the voltage across the terminals is denoted as t, and its value before time t0 is denoted as i. d(t-Tao) i a(t-Tao) u d(t-Tao) u a(t-Tao) .
6. The method according to claim 5, characterized in that, In each step of step 5, the calculations performed by the d-side simulation platform are based on formula I. a =-u d(t-Tao) / Z r -i d(t-Tao) Calculate i a It is then sent to side a, which modulates its amplitude to the historical current source in the equivalent circuit; the simulation platform on side a calculates the current according to formula I. d =-u a(t-Tao) / Z r -i a(t-Tao) Calculate I d It is then sent to the d side, which in turn modulates the amplitude of the historical current source in the equivalent circuit.
7. A cross-platform co-simulation interface construction and simulation device for electromagnetic transients in power systems, characterized in that, include: Module 1: Establishes a communication hardware connection between different electromagnetic transient simulation platforms to form a joint simulation interface; Module 2: Construct the interface circuits at both ends of the co-simulation interface, namely the a-end interface circuit and the d-end interface circuit. Module 3: Perform parameter tuning calculations for the a-end interface circuit and the d-end interface circuit to obtain the tuning parameters for the a-end interface circuit and the d-end interface circuit; Module 4: During the initialization phase of the tuning parameters, the two simulation platforms at both ends of the co-simulation interface send their own initialization information to the other side, and send a signal to the other simulation platform after initialization is completed. Module 5: During the simulation, the two simulation platforms perform local model calculations and solutions respectively; after simulation platform a completes its calculation, it immediately sends the results to simulator d, and then blocks receiving the information returned by simulation platform d. After the d-side simulation platform completes its calculations, it waits until the simulation step size is reached before sending its results to the a-side simulation platform and then starts the next calculation. The a-side simulator platform starts the next calculation after receiving the return information from the d-side. Module Six: End Phase. The d-side simulation platform sends a stop signal to the a-side simulation platform. Upon receiving the signal, the a-side simulation platform returns an acknowledgment signal to the d-side simulation platform and stops its own simulator. After receiving the acknowledgment signal from the a-side simulation platform, the d-side simulation platform stops its own simulation.
8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for performing the method described in any one of claims 1-6.
9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-6.