A method and system for sharing electromechanical transient simulation models

By initializing modeling and performing time-domain simulation, the component ID number is obtained and uploaded to the server's custom component library. This solves the problem of component model sharing in traditional electromechanical transient simulation, realizes cross-user sharing and customization functions, and meets the simulation needs of new power systems.

CN116049119BActive Publication Date: 2026-04-24ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD
Filing Date
2023-01-06
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Traditional electromechanical transient simulation programs struggle to achieve custom sharing of component models when faced with the complexity of the dynamic response processes of a large number of new energy devices in new power systems. Furthermore, software vendors lack the manpower and resources to maintain massive numbers of models, which limits simulation calculations.

Method used

By initializing and modeling components and performing time-domain simulation, the ID number is obtained and uploaded to the server's custom component library for preprocessing and simulation calculation. The model is then extracted from the custom component library and compiled into a dynamic link library, enabling cross-user sharing and customization.

Benefits of technology

It realizes the model customization function and cross-user sharing of electromechanical transient simulation, allowing end users to verify the dynamic characteristics of new components connected to the power grid, avoiding the drawbacks of unified software development by software vendors in traditional methods, and providing a practical basic analysis tool.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116049119B_ABST
    Figure CN116049119B_ABST
Patent Text Reader

Abstract

The application discloses a kind of electromechanical transient simulation model sharing method and system, comprising the following steps: initialization modeling and time domain simulation modeling are carried out to element, and the ID number of current element is obtained, is uploaded to server custom component library by network, according to the ID number is stored, realize the pretreatment function of the element;After the pretreatment, simulation calculation includes obtaining power system data and carrying out power flow program calculation;Analysis power system data, and determine inherent model and custom model;Custom model is extracted by searching the custom component library, and it is judged whether search is successful or not.The application realizes the model custom function for electromechanical transient simulation of power system and cross-user shared use, can allow end user to electromechanical transient simulation main program to be unable to provide the element of model to carry out custom modeling, allow end user to design or receive new element when verifying the dynamic characteristics of equipment access large power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electromechanical transient simulation technology for power systems, and in particular to a method and system for sharing electromechanical transient simulation models. Background Technology

[0002] Electromechanical transient simulation is currently a fundamental computational analysis tool for ensuring the safe and stable operation of power systems. It can perform non-destructive, purely digital simulations of anticipated faults in the power grid, identify system weaknesses, and formulate preventative measures. However, with the construction of new power systems, a large number of new energy equipment built by different manufacturers have been introduced. Their dynamic response processes are rapid and complex, significantly impacting the response characteristics of large power grids.

[0003] To address this, developers of electromechanical transient simulation programs continuously modify their programs to adapt to the ever-increasing number of model devices. However, the traditional approach involves equipment manufacturers providing the relevant logic to software developers for corresponding development. This approach has several disadvantages: firstly, it exposes the core intellectual property of component equipment manufacturers to software developers; secondly, software developers lack the necessary resources to maintain a massive number of models. Therefore, software vendors typically provide custom modeling functions, which solve the aforementioned model adaptation problem. However, in large-scale power grid simulations, these functions cannot simulate models from other equipment manufacturers and can only be used for testing models from their own equipment manufacturer.

[0004] The lack of component models in traditional electromechanical transient simulation presents a significant challenge. Therefore, it is crucial to address the urgent technical bottleneck of enabling user-defined electromechanical transient simulation models, protecting intellectual property rights while facilitating model sharing, and ultimately achieving accurate simulation of large power grids. This will provide a practical and feasible basic analysis tool for the construction of new power systems.

[0005] To address this issue, a method and system for sharing electromechanical transient simulation models are provided. Summary of the Invention

[0006] The electromechanical transient simulation model sharing method and system described in this invention realizes the model customization function and cross-user sharing for electromechanical transient simulation of power systems by initializing and modeling components and performing time-domain simulation modeling, thus solving the problems mentioned in the background art.

[0007] To achieve the above objectives, the present invention provides the following technical solution:

[0008] The present invention discloses a method for sharing electromechanical transient simulation models, comprising: initializing and modeling components and performing time-domain simulation modeling, obtaining the ID number of the current component, uploading it to a server-defined component library via a network, storing it according to the ID number, and realizing the preprocessing function of the component; performing simulation calculations after the preprocessing is completed, the simulation calculations including acquiring power system data and performing power flow program calculations; analyzing the power system data and determining the inherent model and the custom model; extracting the custom model by searching the custom component library and determining whether the search was successful.

[0009] Preferably, the initialization modeling involves obtaining power flow data of the nodes connected to the element based on the calculation results of the power flow program, and determining the initial parameter values ​​of each state variable inside the element based on the power flow data; the power flow program performs operations based on the grid data, load data and generator output of the power system to determine the voltage of each node, the active and reactive power flow of each branch, the output of each generator and the load of each node.

[0010] Preferably, the calculation results of the power flow program include the voltage of each node in the power system, the active and reactive power flow of each branch, the output of each generator, and the load of each node.

[0011] Preferably, the time-domain simulation modeling is performed by simulating and calculating stepwise from time 0 to a preset time T with a step size of Δt, and obtaining the voltage value, phase angle value, and active and reactive values ​​injected into the power system at each time T1 and (0,Δt,2Δt,......,T1); and calculating the active and reactive values ​​injected into the power system at time T1+Δt based on the electrical characteristics of the component.

[0012] Preferably, when the electrical characteristics of the components are consistent but the input and output values ​​are inconsistent, they belong to the same time-domain simulation model; if the time-domain simulation model is a newly created model, then the ID number = the number of existing time-domain simulation models in the custom component library + 1; if it is a modification only to the time-domain simulation model, then the ID number remains unchanged and the original custom component library is overwritten.

[0013] Preferably, the custom model is extracted by searching the custom component library. If the search is unsuccessful, it means that the custom model does not exist.

[0014] If the search is successful: all custom models are summarized, and the summarized custom models are compiled on the server using the compiler and compilation options corresponding to the electromechanical transient simulation program, and all the summarized custom models are compiled into dynamic link library .so files or .dll files.

[0015] Preferably, the electromechanical transient simulation main program downloads the .so file from the server, replaces the .so file with the same name as the custom model itself, and simulates the power system data based on the inherent model and the custom model until the simulation step size is reached, and then ends the simulation.

[0016] Preferably, power system data is simulated based on the inherent model and the custom model, including grid structure simulation, generator output and load simulation, generator simulation, and DC dynamic equipment model simulation.

[0017] The electromechanical transient simulation model sharing system of the present invention includes: a first unit, which performs initialization modeling and time-domain simulation modeling of components, obtains the ID number of the current component, and uploads it to a server-customized component library via network;

[0018] The second unit stores the ID number to perform preprocessing on the component.

[0019] The third unit involves performing simulation calculations after the preprocessing is completed. The simulation calculations include acquiring power system data and performing power flow program calculations.

[0020] Unit 4 involves analyzing power system data and determining the inherent and custom models.

[0021] The fifth unit extracts the custom model by searching the custom component library and determines whether the search was successful.

[0022] The beneficial effects of this invention are as follows:

[0023] 1. The electromechanical transient simulation model sharing method and system described in this invention realizes the model customization function and cross-user sharing for electromechanical transient simulation of power systems. It allows end users to customize the model of components for which the main electromechanical transient simulation program does not provide a model, and allows end users to verify the dynamic characteristics of equipment connected to the power grid when designing or receiving new components. It avoids the disadvantages of traditional software development vendors uniformly developing and exposing control logic, which is time-consuming.

[0024] 2. The electromechanical transient simulation model sharing method and system described in this invention, since all models are uniformly stored in the model library of the server, the authorized modifier can withdraw and update the model he owns at any time, and other users can use the model without obtaining the specific model control logic, thus realizing the sharing of user models and providing a practical and feasible basic analysis tool for the construction of new power systems. Attached Figure Description

[0025] Figure 1 This is a schematic diagram of a method for sharing electromechanical transient simulation models according to the present invention;

[0026] Figure 2 This is a schematic diagram of an electromechanical transient simulation model sharing system according to the present invention;

[0027] Figure 3 This is a data topology diagram for IEEE 9 mode;

[0028] Figure 4 IEEE 9 data topology diagram for adding reactive power compensation equipment.

[0029] Explanation of key figure labels:

[0030] 1. Unit 1; 2. Unit 2; 3. Unit 3; 4. Unit 4; 5. Unit 5. Detailed Implementation

[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] This invention provides a method for sharing electromechanical transient simulation models, combined with Figure 1 To explain, the steps include:

[0033] S1. Initialize and model the component and perform time-domain simulation modeling, obtain the ID number of the current component, and upload it to the server's custom component library via the network;

[0034] S2. Store the ID number to realize the preprocessing function of the component;

[0035] S3. After the preprocessing is completed, simulation calculation is performed. The simulation calculation includes acquiring power system data and performing power flow program calculation.

[0036] S4. Analyze power system data and determine the inherent model and the custom model;

[0037] S5. Extract the custom model by searching the custom component library, and determine whether the search was successful.

[0038] If the device for which no model is provided is a novel reactive power compensation device, denoted as Device A, its characteristics include the ability to provide a maximum of 20MVar (QMAX) of reactive power support when the system voltage is too high or too low (i.e., when the system voltage is greater than UH and less than UL), with a ramp-up or ramp-down rate of 5000Mvar / s (Rate), from 0Mvar to the maximum of 20MVar; then the initial power injected into the system is: P = 0.

[0039]

[0040] Where P and Q are the active and reactive power injected into the system by the element, and U is the initial bus voltage connected to the node; the above formula is the initialization model, which describes the calculation method of the state variables of the element under the steady state of the system.

[0041] In electromechanical transient simulation, if the historical voltage of the bus node connected to the component and the injected reactive power of the component are known, i.e., at 0, Δt, 2Δt, ..., T1, the voltage and reactive power are U0, ..., UT1 and Q0, Q1, ..., QT1 respectively, then the power injection at the next moment is:

[0042]

[0043] Among them, P m Q m Let m be the injected active power and reactive power of the component at time m; the above formula itself is a time-domain simulation model, describing the calculation method of the active and reactive power injected into the system by the component during dynamic processes.

[0044] The model ID is determined and uploaded to the server model library for storage. If the electrical characteristics of the components are consistent but the input and output values ​​are inconsistent, it means that they belong to the same time-domain simulation model. If the time-domain simulation model is a newly created model, the ID number is equal to the number of existing time-domain simulation models in the custom component library plus 1. If it is a modification only to the time-domain simulation model, the ID number remains unchanged and the original custom component library is overwritten.

[0045] If there is another reactive power compensation device, let it be B, then the value of QMAX is 30Mvar. Since the formulas describing the initialization characteristics and time-domain simulation characteristics of the component are consistent, the models of device A and device B belong to the same model.

[0046] If another reactive power compensation device exists, let this reactive power compensation device be C, then it can only provide capacitive reactive power. Its initialization formula and time-domain simulation formula are as follows:

[0047]

[0048]

[0049] This model is different from the previous model;

[0050] For specific simulation calculation cases, the corresponding models are extracted from the model library in real time for compilation and co-simulation; the data is read in, that is, the network data, generator output, and load data are obtained from text files or databases; the power flow calculation is performed on the power grid based on the general power flow calculation program of the power system to obtain the voltage of each node, the active and reactive power flow of each branch, the output of each generator, and the load of each node.

[0051] like Figure 3 As shown, taking the most common IEEE 9-node power system data as an example, the data includes line parameters, transformer parameters, node load, node reactive power configuration, generator active and reactive power output, and control voltage; after power flow calculation program or active and reactive power transmission values ​​of each line, losses, and voltage of each node.

[0052] Analyze the data to identify inherent and custom models within it;

[0053] like Figure 4 As shown, taking the IEEE 9-node data as an example, the component model involved is the generator model, including the speed governor and exciter. General power system calculation and analysis software already has the inherent model. However, if reactive power compensation devices such as device A and device C are added to the system, conventional software will not have this model, and it is actually impossible to perform simulation.

[0054] The custom model is extracted by searching the custom component library and it is determined whether the search was successful. If the above-mentioned devices A and C are owned by users D and E respectively, and neither of them knows the other's control logic and does not have the model of the other's device, simulation is actually impossible. However, since the above users have submitted the model to the server, the server can summarize the models of both parties and integrate them into a dynamic link library file for the IEEE9 data.

[0055] The electromechanical transient simulation main program downloads the generated dynamic link library file, replaces its own dynamic link library file, and performs electromechanical transient simulation on power system data, including grid structure, generator output and load, as well as dynamic equipment models such as generators and DC, based on the inherent model and the custom model.

[0056] Specifically:

[0057] Based on the results of power flow calculations, namely the voltage and phase angle of the nodes connected to various components, as well as the active and reactive power injected into the system, the initialization of the inherent model is completed, and the initial values ​​of the internal state variables of each component are determined. For custom models, it is necessary to enter the temporarily compiled dynamic library file, determine the initial values ​​of the internal state variables according to the custom logic, and complete the initialization of the custom model.

[0058] The electromechanical transient simulation program is used to perform calculations step by step with a calculation step size Δt, and the current time is denoted as T1. Utilizing existing calculation results, including the current time and previous times (0, Δt, 2Δt, ..., T1), the inherent model is solved using the algorithm provided by the main electromechanical transient simulation program to obtain the active and reactive power injected into the system at the next time step (T1+Δt). The custom model is then entered into the dynamic link library, and the user-defined solution algorithm determined in the power flow calculation results is used to solve for the active and reactive power injection of the component at the next time step. Based on the active and reactive power injection solutions from the inherent model and the custom model, the original algorithm of the main electromechanical transient simulation program is used to solve for the system voltage at the next time step, and this process is repeated until the simulation duration is reached.

[0059] In this example, at each time point 0, Δt, 2Δt, ..., T1, the voltage of each node at that time can be calculated first by the electromechanical transient simulation program. That is, time 0 is the result of the power flow calculation. For the next time point (T1+Δt), the traditional generator has an inherent model in the main program, which can calculate the active and reactive power injections automatically. However, since new devices A and C are involved, all custom models need to be summarized, and the summarized custom models need to be compiled on the server using the compiler and compilation options corresponding to the electromechanical transient simulation program. All the summarized custom models are compiled into dynamic link library .so files or .dll files. Based on the voltages UA,T1 and UB,T1 of devices A and C at time T1, the reactive power injections QA,T1+Δt and QB,T1+Δt at the next time point are calculated.

[0060] The main feature of this invention is that it incorporates calculation methods for devices A and C provided by different individuals into the calculation process, without altering the main calculation flow of electromechanical transient simulation.

[0061] This invention provides a shared system for electromechanical transient simulation models, such as... Figure 2 As shown, it includes: a first unit 1, which performs initialization modeling and time-domain simulation modeling of the component, obtains the ID number of the current component, and uploads it to the server's custom component library via the network;

[0062] The second unit 2 stores the ID number to realize the preprocessing function of the component;

[0063] Unit 3: After the preprocessing is completed, simulation calculation is performed. The simulation calculation includes acquiring power system data and performing power flow program calculation.

[0064] Unit 4, Analyze power system data and determine the inherent and custom models;

[0065] Unit 5 extracts the custom model by searching the custom component library and determines whether the search was successful.

[0066] In summary, the electromechanical transient simulation model sharing method and system provided by this invention realizes the model customization function and cross-user sharing for electromechanical transient simulation of power systems. It allows end users to customize the model of components for which the main electromechanical transient simulation program does not provide a model, and allows end users to verify the dynamic characteristics of equipment connected to the power grid when designing or receiving new components. It avoids the disadvantages of traditional software development vendors' unified development, which requires exposing control logic and is time-consuming.

[0067] Since the models are all stored in a unified model library on the server, those with the right to modify them can withdraw and update their models at any time. Other users can use the models without obtaining the specific model control logic, thus realizing the sharing of user models and providing a practical and feasible basic analysis tool for the construction of new power systems.

[0068] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered within the scope of the claims and specification of the present invention.

Claims

1. A method for sharing electromechanical transient simulation models, characterized in that, Includes the following steps: The system performs initialization modeling and time-domain simulation modeling on the components, obtains the ID number of the current components, uploads it to the server's custom component library via the network, and stores it according to the ID number, thus realizing the preprocessing function of the components. After the preprocessing is completed, simulation calculation is performed. The simulation calculation includes acquiring power system data and performing power flow program calculation; analyzing the power system data and determining the inherent model and the custom model; retrieving the custom model by searching the custom component library and determining whether the search was successful. The initialization modeling involves obtaining the power flow data of the nodes connected to the element based on the calculation results of the power flow program, and determining the initial parameter values ​​of each state variable inside the element based on the power flow data. The power flow procedure is executed based on the power system's grid data, load data, and generator output to determine the voltage of each node, the active and reactive power flow of each branch, the output of each generator, and the load of each node.

2. The electromechanical transient simulation model sharing method according to claim 1, characterized in that, The calculation results of the power flow program include the voltage of each node in the power system, the active and reactive power flow of each branch, the output of each generator, and the load of each node.

3. The electromechanical transient simulation model sharing method according to claim 1, characterized in that, The time-domain simulation modeling starts from time 0... Step-by-step simulation calculation to the preset time. and obtain each Time and The voltage and phase angle values ​​of the nodes connected to the component at any given time, as well as the active and reactive power values ​​injected into the power system; based on the electrical characteristics of the component, calculate... The active and reactive power values ​​are constantly injected into the power system.

4. The electromechanical transient simulation model sharing method according to claim 1, characterized in that, When the electrical characteristics of the components are consistent but the input and output values ​​are inconsistent, they belong to the same time-domain simulation model. If the time-domain simulation model is a newly created model, the ID number is equal to the number of existing time-domain simulation models in the custom component library plus 1. If the modification is only made to the time-domain simulation model, the ID number remains unchanged, and the original custom component library is overwritten.

5. The electromechanical transient simulation model sharing method according to claim 1, characterized in that, The custom model is extracted by searching the custom component library. If the search is unsuccessful, it means that the custom model does not exist. If the search is successful: all custom models are aggregated, and the aggregated custom models are compiled on the server using the compiler and compilation options corresponding to the electromechanical transient simulation program, and all aggregated custom models are compiled into dynamic link libraries. Documents or document.

6. The electromechanical transient simulation model sharing method according to claim 5, characterized in that, The electromechanical transient simulation main program is downloaded from the server. The file was replaced with the one that had the same name as the custom model itself. The file is used to simulate power system data based on the inherent model and the custom model until the simulation step size is reached, and then the simulation ends.

7. The electromechanical transient simulation model sharing method according to claim 1, characterized in that, The power system data is simulated based on the inherent model and the custom model, including grid structure simulation, generator output and load simulation, generator simulation, and DC dynamic equipment model simulation.

8. A shared electromechanical transient simulation model system as described in any one of claims 1-7, characterized in that, include: The first unit performs initialization modeling and time-domain simulation modeling of the components, obtains the ID number of the current component, and uploads it to the server's custom component library via the network; The second unit stores the ID number to perform preprocessing on the component. The third unit involves performing simulation calculations after the preprocessing is completed. The simulation calculations include acquiring power system data and performing power flow program calculations. Unit 4 involves analyzing power system data and determining the inherent and custom models. The fifth unit extracts the custom model by searching the custom component library and determines whether the search was successful.

Citation Information

Patent Citations

  • Simulation analysis method of electromechanical transient process of electrical power system

    CN104732033A