Electromechanical transient calculation method and device, terminal equipment and storage medium
By performing parallel solution on the power system graph database model, using Newton's method and LU decomposition method, the problem of low computing efficiency of super-large-scale power grids in the existing technology is solved, and the transient computing efficiency improvement without relying on hardware is achieved, which reduces the Maintenance cost.
Patent Information
- Application Number
- CN202410955705.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
AI Technical Summary
When dealing with super-large-scale power grids, existing electromechanical transient simulation calculation methods have low computing efficiency and rely on high-performance hardware, resulting in high software and hardware maintenance costs.
By obtaining the power system graph database model, initializing the system parameters, and obtaining differential equations and algebraic equations at each moment, using Newton's method and LU decomposition method to solve the state variables of the power equipment, realize parallel solution of the multi-transitory calculation model, and improve the calculation efficiency.
On the basis of not relying on hardware improvement, the efficiency of electromechanical transient computing is significantly improved, the software and hardware maintenance costs are reduced, and the performance of transient simulation computing is improved in large-scale systems.
Smart Images

Figure CN118917067A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital simulation technology, and in particular to an electromechanical transient calculation method, device, terminal equipment and storage medium. Background Art
[0002] Electromechanical transient simulation is a key method in power system analysis. Through electromechanical transient Giza simulation, it is possible to measure the stability of the system under various anticipated faults. The underlying problem of electromechanical transient simulation is the solution of large-scale differential algebraic equations. As the scale of the power grid continues to increase, the time consumption of overall transient simulation increases dramatically, and it is necessary to improve the efficiency of transient simulation calculations for ultra-large-scale systems. Existing solutions to accelerate transient simulation calculations mainly use the concept of decoupling and parallelization to split the original problem into multiple sub-problems for calculation one by one. This method usually relies on high-performance computing hardware and adaptive software to improve transient computing efficiency, but this method has high hardware requirements, making the maintenance cost of software and hardware too high. Summary of the invention
[0003] The embodiments of the present invention provide an electromechanical transient calculation method, apparatus, terminal device and storage medium, which can realize parallel solution of multiple transient calculation models and improve transient calculation efficiency without relying on hardware improvement.
[0004] An embodiment of the present invention provides an electromechanical transient calculation method, comprising:
[0005] Acquire a power system diagram database model of a target power system; wherein the power system diagram database model includes a power system diagram database steady-state model, the power system diagram database steady-state model includes a number of calculation bus nodes associated with power equipment, each calculation bus node is connected to a transient calculation model; the transient calculation model includes differential nodes for storing differential equations and algebraic nodes for storing algebraic equations;
[0006] Perform simulation calculation on the power system diagram database model, and set the simulation start time and simulation end time;
[0007] Initialize the system parameters of the power system diagram database model at the simulation start time;
[0008] At each moment of the simulation process, each transient calculation model obtains differential equations and algebraic equations, and solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment; if the current moment is not the end moment of the simulation, the simulation of the next moment is performed; if the current moment is the end time of the simulation, the simulation calculation is stopped.
[0009] Furthermore, the step of solving the differential equation and the algebraic equation to calculate the state variables of the corresponding power equipment at the bus node at the current moment includes:
[0010] Get the differential equations and algebraic equations at the current moment;
[0011] Combine differential equations and algebraic equations to obtain a system of differential algebraic equations;
[0012] Converting the differential algebraic equations into nonlinear algebraic equations;
[0013] Determine the correction quantity of the nonlinear algebraic equation to be solved according to Newton's method;
[0014] The calculation graph model of the transient calculation model is expanded according to the dimension of the correction amount to be solved to obtain an expanded calculation graph model; wherein the calculation graph model is a virtual mathematical model abstractly constructed based on the transient calculation model;
[0015] LU decomposition is performed on the extended computational graph model to obtain the state variables of the power equipment corresponding to the bus node at the current moment.
[0016] Furthermore, the step of solving the differential equation and the algebraic equation to calculate the state variables of the corresponding power equipment at the bus node at the current moment includes:
[0017] Get the differential equations and algebraic equations at the current moment;
[0018] Convert differential equations into prediction equations;
[0019] Solving the prediction equation according to a preset numerical integration method so that the prediction equation determines the state equation at the current moment according to the state variable at the previous moment;
[0020] The state variables of the corresponding power equipment at the bus node at the current moment are calculated by solving the state equation at the current moment.
[0021] Furthermore, before each transient calculation model obtains the differential equation and the algebraic equation, it also includes:
[0022] If there is a topology change in the power system diagram database model or a change in the equipment information of the power equipment, obtaining corresponding change information, and modifying the power system diagram database model according to the change information;
[0023] Initialize the system parameters of the modified power system diagram database model.
[0024] Based on the above method embodiment, the present invention provides a corresponding device embodiment;
[0025] An embodiment of the present invention provides an electromechanical transient computing device, including: a graphical model acquisition module and a simulation computing module;
[0026] The graph model acquisition module is used to acquire a power system graph database model of a target power system; wherein the power system graph database model includes a power system graph database steady-state model, the power system graph database steady-state model includes a number of calculation bus nodes associated with power equipment, each calculation bus node is connected to a transient calculation model; the transient calculation model includes differential nodes for storing differential equations and algebraic nodes for storing algebraic equations;
[0027] The simulation calculation module is used to perform simulation calculations on the power system diagram database model and set the simulation start time and simulation end time; at the simulation start time, the system parameters of the power system diagram database model are initialized; at each moment of the simulation process, each transient calculation model obtains differential equations and algebraic equations, and solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment; if the current moment is not the simulation end time, the simulation of the next moment is performed; if the current moment is the simulation end time, the simulation calculation is stopped.
[0028] Furthermore, the step of solving the differential equation and the algebraic equation to calculate the state variables of the corresponding power equipment at the bus node at the current moment includes:
[0029] Get the differential equations and algebraic equations at the current moment;
[0030] Combine differential equations and algebraic equations to obtain a system of differential algebraic equations;
[0031] Converting the differential algebraic equations into nonlinear algebraic equations;
[0032] Determine the correction quantity of the nonlinear algebraic equation to be solved according to Newton's method;
[0033] The calculation graph model of the transient calculation model is expanded according to the dimension of the correction amount to be solved to obtain an expanded calculation graph model; wherein the calculation graph model is a virtual mathematical model abstractly constructed based on the transient calculation model;
[0034] LU decomposition is performed on the extended computational graph model to obtain the state variables of the power equipment corresponding to the bus node at the current moment.
[0035] Furthermore, the step of solving the differential equation and the algebraic equation to calculate the state variables of the corresponding power equipment at the bus node at the current moment includes:
[0036] Get the differential equations and algebraic equations at the current moment;
[0037] Convert differential equations into prediction equations;
[0038] Solving the prediction equation according to a preset numerical integration method so that the prediction equation determines the state equation at the current moment according to the state variable at the previous moment;
[0039] The state variables of the corresponding power equipment at the bus node at the current moment are calculated by solving the state equation at the current moment.
[0040] Furthermore, before each transient calculation model obtains the differential equation and the algebraic equation, it also includes:
[0041] If there is a topology change in the power system diagram database model or a change in the equipment information of the power equipment, obtaining corresponding change information, and modifying the power system diagram database model according to the change information;
[0042] Initialize the system parameters of the modified power system diagram database model.
[0043] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the electromechanical transient calculation method described in the above-mentioned embodiment of the invention is implemented.
[0044] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the electromechanical transient calculation method described in the above-mentioned embodiment of the invention.
[0045] The following beneficial effects are achieved by implementing the present invention:
[0046] The present invention provides an electromechanical transient calculation method, device, terminal equipment and storage medium. The calculation method obtains a power system graph database model of a target power system, performs simulation calculation based on the graph database model, determines the simulation start time and the simulation end time, and then initializes the system parameters of the power system graph database model before performing simulation; when performing simulation at each moment, each transient calculation model in the graph database model obtains differential equations and algebraic equations, solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment, until the simulation ends at the simulation end time. By obtaining a power system graph database model containing several transient calculation models and implementing transient simulation calculations on the graph database model, several differential-algebraic equation solving problems in the power system can be dispersed into each transient calculation model for processing, so that each transient calculation model can solve its own differential-algebraic equations, and the efficiency of transient calculations can be improved without relying on hardware improvement. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1It is a flow chart of an electromechanical transient calculation method provided by an embodiment of the present invention.
[0048] Figure 2 This is a power system diagram database model provided by an embodiment of the present invention.
[0049] Figure 3 It is a structural schematic diagram of an electromechanical transient computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] like Figure 1 As shown, a method for calculating electromechanical transient state provided by an embodiment of the present invention includes:
[0052] Step S1: obtaining a power system diagram database model of a target power system; wherein the power system diagram database model includes a power system diagram database steady-state model, the power system diagram database steady-state model includes a number of calculation bus nodes associated with power equipment, each calculation bus node is connected to a transient calculation model; the transient calculation model includes differential nodes for storing differential equations and algebraic nodes for storing algebraic equations;
[0053] Step S2: performing simulation calculation on the power system diagram database model, and setting the simulation start time and simulation end time;
[0054] Step S3: Initializing system parameters of the power system diagram database model at the simulation start time;
[0055] Step S4: At each moment of the simulation process, each transient calculation model obtains differential equations and algebraic equations, and solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment; if the current moment is not the end moment of the simulation, perform the simulation at the next moment; if the current moment is the end time of the simulation, stop the simulation calculation.
[0056] For step S1, the power system diagram database model of the target power system is obtained. The power system diagram database model is as follows: Figure 2 As shown in Figure 1, it mainly consists of two parts. One part is the steady-state model of the power system graph database, namely Figure 2The black solid line part in the steady-state model of the power system graph database contains several calculation bus nodes, and each calculation bus node refers to the node that needs to perform transient calculation in the steady-state model of the power system graph database. Several files are stored in the graph database of the target power system, which record the equipment information of each power device in the power system and the topological connection relationship between each power device. Therefore, the power system graph database model constructed based on the graph database of the target power system also records the equipment information of the power system and the topological relationship between each power device. Figure 2 In the figure, the power equipment and their topological relationships are abstractly represented as black solid lines, and the nodes mainly refer to the computational bus nodes. The other part is the transient calculation model corresponding to each computational bus node, namely Figure 2 The nodes represented by the dotted part and the double circles; each transient calculation model is connected to the calculation bus node by an interface node, and the interface nodes, differential nodes and algebraic nodes are connected in pairs. The interface node mainly plays the role of connecting the calculation bus node. For some coordinate systems that are not unified and require coordinate transformation calculations, the interface node also plays the role of coordinate transformation so that each calculation quantity is represented by the same coordinate system. The differential node is mainly used to store differential state quantities, differential equations and related parameters, and to solve state quantities in conjunction with algebraic equations. The algebraic node is mainly used to store algebraic equations, algebraic variables and related parameters.
[0057] It should be noted that the power system diagram database model obtained in step S1 is applicable to various types of dynamic components, and there are no restrictions on the model order and component type. In this embodiment, it is mainly represented by power equipment, which includes but is not limited to synchronous motor models, such as fan models, motor models, etc. When performing transient simulation calculations, each power equipment has different differential equations and algebraic equations according to its own physical constraints, and its state quantities and related parameters to be solved are all different. The specific values need to be determined according to the power equipment corresponding to the calculation bus node for calculation.
[0058] The present invention takes a synchronous motor as an example to specifically explain how to implement simulation calculation on a power system diagram database model to solve the state quantity of the synchronous motor.
[0059] For the case where the current device corresponding to the bus node is a synchronous motor, the definitions of the interface nodes in the corresponding transient calculation model are as follows. Interface node: For a synchronous motor, different coordinate systems are used inside the generator and on the network side; the dq axis is used inside the generator, and the DQ axis (also called the xy synchronous axis) is used on the network side. The corresponding interface nodes include the node voltage expressed in the DQ axis, the node injection current expressed in the DQ axis, the node voltage expressed in the dq axis, the node injection current expressed in the dq axis, the generator active power, and the generator power angle.
[0060] The relationship between the DQ axis and the dq axis variables is shown in the following formula:
[0061]
[0062] Where, δ represents the generator power angle; F di It can represent the node voltage or node injection current expressed by the d-axis; F qi It can represent the node voltage or node injection current expressed by the q axis; F Di It can represent the node voltage or node injection current expressed by the D axis; F Qi It can represent the node voltage or node injection current expressed by the Q axis; i represents the generator number; m represents the number of generators.
[0063] It should be noted that for interface nodes, for power equipment that does not have coordinate transformation, such as motors or dynamic load models, the interface nodes only play a connecting role, that is, F in the above formula di and F Di Equal, F qi and F Qi equal.
[0064] For differential nodes, the differential nodes mainly store differential state variables x, input u and differential equation constants. For the differential nodes of synchronous motors, the constants in matrices A, B, and C involved in the differential equations mainly involve the rotor motion equations, excitation equations, speed regulator and prime mover equations. The definition of the differential state variable x is as follows:
[0065]
[0066] in, It represents the transient potential of the generator q axis; represents the transient potential of the generator d-axis; ω represents the rotor speed; E fd Represents the excitation potential; R f Indicates the excitation rate feedback state quantity; V R Represents the voltage regulator output. W is defined as follows:
[0067]
[0068] Among them, P ei represents the electromagnetic power of generator i.
[0069] For each generator i, there are A, B, C matrices, and the differential state variables can be expressed as:
[0070]
[0071]
[0072]
[0073]
[0074]
[0075] Among them, ω in u s is the synchronous speed; T Mi is the mechanical torque of generator i; V refi is the reference voltage of generator i; T′ doi is the d-axis transient time constant; T′ qoi is the q-axis transient time constant; X di represents the d-axis stator circuit reactance; X qi represents the q-axis stator circuit reactance; X′ di is the d-axis transient reactance; X′ qi is the q-axis transient reactance; D i is the damping constant, M i is the inertia constant; K Ei , K Fi , K Ai is the proportional constant in the excitation and voltage regulator; T Ei 、T Fi 、T Ai is the time parameter in the excitation and voltage regulator; S Ei represents the excitation function.
[0076] For algebraic nodes, algebraic nodes are used to store coefficients of algebraic equations and algebraic variables that are not covered by interface nodes and differential nodes. For synchronous motors, all algebraic variables have been covered by interface nodes and differential nodes. This node is only used to store algebraic equation constants, that is, the circuit parameter Z in the stator voltage equation. d-q,i It should be noted that for differential state quantities and algebraic variables, it is not recommended to repeatedly store, update, and resynchronize the same variable in multiple nodes.
[0077]
[0078]
[0079] For the calculation of bus nodes, it includes injected current, node voltage and admittance.
[0080] For steps S2 and S3, based on the node data defined above, simulation calculations are performed on the power system diagram database model, and the simulation calculation time is set, which includes the start time and the end time. At the beginning of the simulation, the initial values of the differential equations and algebraic equations are obtained according to the steady state (i.e., the current flow solution of the power system). Specifically, flow calculations are performed on the power system diagram database model to obtain V, θ, P, and Q; the generator current is calculated under the DQ axis framework based on the calculated results of V, θ, P, and Q, and the corresponding calculation formula is as follows:
[0081]
[0082] The generator power angle is calculated based on the stator voltage equation as follows:
[0083]
[0084] Among them, R s is the stator circuit resistance; X q is the stator circuit reactance;
[0085] The generator voltage and current I under the dq axis frame are calculated according to the following formula: qi ,I di 、V qi and V di ;
[0086]
[0087] Set the differential terms of the differential equation to zero, solve the initial values of each term in x and u, and complete the initialization.
[0088] In a preferred embodiment, before each transient calculation model obtains differential equations and algebraic equations, it also includes: if there is a topology change in the power system diagram database model or a change in the equipment information of the power equipment, obtaining the corresponding change information, and modifying the power system diagram database model according to the change information; initializing the system parameters of the modified power system diagram database model.
[0089] Specifically, if there is an operation or failure in the power system graph database model, which causes the topological structure of the graph database model to change or the equipment information of the power equipment, such as the numerical value of the power equipment, to change, the corresponding change information is obtained, and the power system graph database model is modified according to the corresponding change information. For example, when the topological structure changes, such as when a new node is added, the change information of the new node is obtained, and the topological structure of the original graph database model is changed and modified with the new node and the connection edge of the new node. After changing the graph database model, the initialization operation is re-performed in its steady state to initialize and assign values to the system parameters. If there is no change in the graph database model, execute step S4.
[0090] For step S4, at each moment of the simulation process, each transient calculation model obtains a differential equation and an algebraic equation, and obtains the state quantity of the corresponding power equipment at the bus node at the current moment according to the solution of the differential equation and the algebraic equation. The solution process is an integral calculation process, which can be solved in two ways, namely, a simultaneous solution method and an alternating solution method, which are described below. In actual use, a solution method with higher solution efficiency is selected for solution.
[0091] In a preferred embodiment, the method of solving the state variables of the power equipment corresponding to the bus node at the current moment according to the differential equations and algebraic equations includes: obtaining the differential equations and algebraic equations at the current moment; combining the differential equations and algebraic equations to obtain a system of differential algebraic equations; converting the system of differential algebraic equations into nonlinear algebraic equations; determining the correction amount to be solved of the nonlinear algebraic equation according to the Newton method; expanding the computational graph model of the transient calculation model according to the dimension of the correction amount to be solved to obtain an extended computational graph model; wherein the computational graph model is a virtual mathematical model abstractly constructed based on the transient calculation model; and performing LU decomposition on the extended computational graph model to obtain the state variables of the power equipment corresponding to the bus node at the current moment.
[0092] Specifically, the principle of the simultaneous solution method is to combine the differential equations and algebraic equations into a differential algebraic equation system and then solve the system of equations, that is, to solve the differential equations and algebraic equations at the same time. This solution method first needs to obtain the differential equations and algebraic equations corresponding to the current moment. For a synchronous motor, the differential equations and algebraic equations are written as follows:
[0093]
[0094] On the basis of the above differential equations and algebraic equations, the differential equations need to be written in the form of difference equations according to different numerical integration options. The present invention shows that after using the trapezoidal method, the original differential equation can be written in the following expression form, where the injected power equation is recorded as F2;
[0095]
[0096] Further combination of differential algebraic equations can be obtained as follows:
[0097]
[0098] It is further transformed into the following nonlinear algebraic equations, where X is defined as
[0099]
[0100] Furthermore, the state variables at the current time step n+1 are solved. The above nonlinear differential algebraic equations can be solved iteratively using Newton's method. Assuming the first-order expansion is used, the following relationship exists, where R represents F M The residual of the equation, ΔX and ΔV are the corrections to be solved, is the system network admittance matrix (split into real and imaginary parts), is the load equivalent admittance matrix (split into real and imaginary parts).
[0101]
[0102]
[0103] According to the traditional Newton method, the Jacobi matrix can be directly inverted to obtain the correction values ΔX and ΔV simultaneously. This method requires the direct inversion of the entire Jacobi matrix. The solution process can be solved using a graph parallel approach. First, it is necessary to construct a computational graph model corresponding to the Jacobi matrix. This computational graph model corresponds to the Jacobi matrix of the transient computation model. Figure 2 Based on the expansion, ΔX corresponds to the differential node and interface node, and ΔV corresponds to the calculation bus node; for example, each X corresponds to:
[0104]
[0105]
[0106] Among them, the x dimension is 7, that is, the differential node is expanded from 1 to 7, I d and I q is 2-dimensional, that is, the interface node is expanded from 1 to 2, and the overall corresponding dimension of the X part is 9. Similarly, the ΔV part corresponds to the calculation bus node, if written as V D 、V Q In the form of , the node is expanded from 1 to 2, thus obtaining an extended computational graph model; after the expansion, the connection relationship and weight of the edges between nodes are given according to the elements of the J matrix. It should be noted that the extended computational graph model is a virtual mathematical model, which is only used for calculation. The extended nodes do not really exist in the actual graph database model. It is expanded based on the abstract computational graph model after obtaining the corresponding partial structure abstraction based on the graph database model.
[0107] After obtaining the extended computational graph model, LU decomposition is performed on the extended computational graph model. After solving, the state quantity of the next iteration time step k+1 is updated until [R] is less than the preset threshold. Then the iteration ends and the calculation of n+1 ends at the current moment.
[0108]
[0109] If the current moment is the end time of the simulation, the simulation calculation is stopped. If the current moment is not the end time of the simulation, the simulation calculation of the next moment is performed, and the above-mentioned joint solution process is repeated with the next moment as the current moment until the current moment is the end time of the simulation, and the simulation is stopped.
[0110] In another parallel embodiment, the method of solving the state variables of the power equipment corresponding to the bus node at the current moment according to the differential equation and the algebraic equation includes: obtaining the differential equation and the algebraic equation at the current moment; converting the differential equation into a prediction equation; solving the prediction equation according to a preset numerical integration method so that the prediction equation determines the state equation at the current moment according to the state variables at the previous moment; solving the state variables of the power equipment corresponding to the bus node at the current moment according to the state equation at the current moment.
[0111] Specifically, the method of performing integral calculation by alternating solution mainly includes: obtaining the differential equation and algebraic equation at the current moment; determining the prediction step, and converting the differential equation into the prediction equation expressed as follows; according to Taylor expansions of different orders, there are a variety of preset numerical integration methods (such as Euler method, Jung-Gutta method, etc.), and the present invention adopts Euler method for solution, and the calculation demonstration includes: the prediction step is based on the current state variable x k Calculate the next state Where h is the integral calculation step size.
[0112]
[0113] according to Update the injected current, power, and node voltage of the synchronous motor in the new state, where Y N The inverse operation can be solved in parallel using the graph.
[0114] calculate The differential term under , and the corrected state variable x at time k+1 k+1 ;
[0115]
[0116] If the current moment is the end time of the simulation, the simulation calculation is stopped. If the current moment is not the end time of the simulation, the simulation calculation of the next moment is performed, and the above alternating solution process is repeated with the next moment as the current moment until the current moment is the end time of the simulation, and the simulation is stopped.
[0117] Based on the above method embodiment, the present invention provides a corresponding device embodiment.
[0118] like Figure 3As shown, an embodiment of the present invention provides an electromechanical transient computing device, including: a graphical model acquisition module and a simulation computing module;
[0119] The graph model acquisition module is used to acquire a power system graph database model of a target power system; wherein the power system graph database model includes a power system graph database steady-state model, the power system graph database steady-state model includes a number of calculation bus nodes associated with power equipment, each calculation bus node is connected to a transient calculation model; the transient calculation model includes differential nodes for storing differential equations and algebraic nodes for storing algebraic equations;
[0120] The simulation calculation module is used to perform simulation calculations on the power system diagram database model and set the simulation start time and simulation end time; at the simulation start time, the system parameters of the power system diagram database model are initialized; at each moment of the simulation process, each transient calculation model obtains differential equations and algebraic equations, and solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment; if the current moment is not the simulation end time, the simulation of the next moment is performed; if the current moment is the simulation end time, the simulation calculation is stopped.
[0121] In a preferred embodiment, the step of calculating the state variables of the power equipment corresponding to the bus node at the current moment by solving the differential equation and the algebraic equation includes:
[0122] Get the differential equations and algebraic equations at the current moment;
[0123] Combine differential equations and algebraic equations to obtain a system of differential algebraic equations;
[0124] Converting the differential algebraic equations into nonlinear algebraic equations;
[0125] Determine the correction quantity of the nonlinear algebraic equation to be solved according to Newton's method;
[0126] The calculation graph model of the transient calculation model is expanded according to the dimension of the correction amount to be solved to obtain an expanded calculation graph model; wherein the calculation graph model is a virtual mathematical model abstractly constructed based on the transient calculation model;
[0127] LU decomposition is performed on the extended computational graph model to obtain the state variables of the power equipment corresponding to the bus node at the current moment.
[0128] In a preferred embodiment, the step of calculating the state variables of the power equipment corresponding to the bus node at the current moment by solving the differential equation and the algebraic equation includes:
[0129] Get the differential equations and algebraic equations at the current moment;
[0130] Convert differential equations into prediction equations;
[0131] Solving the prediction equation according to a preset numerical integration method so that the prediction equation determines the state equation at the current moment according to the state variable at the previous moment;
[0132] The state variables of the corresponding power equipment at the bus node at the current moment are calculated by solving the state equation at the current moment.
[0133] In a preferred embodiment, before each transient calculation model obtains the differential equation and the algebraic equation, it also includes:
[0134] If there is a topology change in the power system diagram database model or a change in the equipment information of the power equipment, obtaining corresponding change information, and modifying the power system diagram database model according to the change information;
[0135] Initialize the system parameters of the modified power system diagram database model.
[0136] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0137] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0138] Based on the above method item embodiments, the present invention provides corresponding terminal device item embodiments.
[0139] An embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, an electromechanical transient calculation method described in any one of the present invention is implemented.
[0140] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0141] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0142] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0143] Based on the above method item embodiments, the present invention provides a corresponding storage medium item embodiment.
[0144] An embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute an electromechanical transient calculation method as described in any one of the present inventions.
[0145] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.
[0146] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for calculating electromechanical transients, characterized in that: include: Acquire a power system diagram database model of a target power system; wherein the power system diagram database model includes a power system diagram database steady-state model, the power system diagram database steady-state model includes a number of calculation bus nodes associated with power equipment, each calculation bus node is connected to a transient calculation model; the transient calculation model includes differential nodes for storing differential equations and algebraic nodes for storing algebraic equations; Perform simulation calculation on the power system diagram database model, and set the simulation start time and simulation end time; Initialize the system parameters of the power system diagram database model at the simulation start time; At each moment of the simulation process, each transient calculation model obtains differential equations and algebraic equations, and solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment; if the current moment is not the end moment of the simulation, the simulation of the next moment is performed; if the current moment is the end time of the simulation, the simulation calculation is stopped.
2. The electromechanical transient calculation method according to claim 1, characterized in that: The method of solving the current moment and calculating the state variables of the corresponding power equipment at the bus node according to the differential equation and the algebraic equation includes: Get the differential equations and algebraic equations at the current moment; Combine differential equations and algebraic equations to obtain a system of differential algebraic equations; Converting the differential algebraic equations into nonlinear algebraic equations; Determine the correction quantity of the nonlinear algebraic equation to be solved according to Newton's method; The calculation graph model of the transient calculation model is expanded according to the dimension of the correction amount to be solved to obtain an expanded calculation graph model; wherein the calculation graph model is a virtual mathematical model abstractly constructed based on the transient calculation model; LU decomposition is performed on the extended computational graph model to obtain the state variables of the power equipment corresponding to the bus node at the current moment.
3. The electromechanical transient calculation method according to claim 1, characterized in that: The method of solving the current moment and calculating the state variables of the corresponding power equipment at the bus node according to the differential equation and the algebraic equation includes: Get the differential equations and algebraic equations at the current moment; Convert differential equations into prediction equations; Solving the prediction equation according to a preset numerical integration method so that the prediction equation determines the state equation at the current moment according to the state variable at the previous moment; The state variables of the corresponding power equipment at the bus node at the current moment are calculated by solving the state equation at the current moment.
4. The electromechanical transient calculation method according to claim 1, characterized in that: Before obtaining differential equations and algebraic equations in each transient calculation model, it also includes: If there is a topology change in the power system diagram database model or a change in the equipment information of the power equipment, obtaining corresponding change information, and modifying the power system diagram database model according to the change information; Initialize the system parameters of the modified power system diagram database model.
5. An electromechanical transient computing device, characterized in that: include: Graphic model acquisition module and simulation calculation module; The graph model acquisition module is used to acquire a power system graph database model of a target power system; wherein the power system graph database model includes a power system graph database steady-state model, the power system graph database steady-state model includes a number of calculation bus nodes associated with power equipment, each calculation bus node is connected to a transient calculation model; the transient calculation model includes differential nodes for storing differential equations and algebraic nodes for storing algebraic equations; The simulation calculation module is used to perform simulation calculations on the power system diagram database model and set the simulation start time and simulation end time; at the simulation start time, the system parameters of the power system diagram database model are initialized; at each moment of the simulation process, each transient calculation model obtains differential equations and algebraic equations, and solves the differential equations and algebraic equations to calculate the state variables of the corresponding power equipment at the bus node at the current moment; if the current moment is not the simulation end time, the simulation of the next moment is performed; if the current moment is the simulation end time, the simulation calculation is stopped.
6. An electromechanical transient computing device as claimed in claim 5, characterized in that: The method of solving the current moment and calculating the state variables of the corresponding power equipment at the bus node according to the differential equation and the algebraic equation includes: Get the differential equations and algebraic equations at the current moment; Combine differential equations and algebraic equations to obtain a system of differential algebraic equations; Converting the differential algebraic equations into nonlinear algebraic equations; Determine the correction quantity of the nonlinear algebraic equation to be solved according to Newton's method; The calculation graph model of the transient calculation model is expanded according to the dimension of the correction amount to be solved to obtain an expanded calculation graph model; wherein the calculation graph model is a virtual mathematical model abstractly constructed based on the transient calculation model; LU decomposition is performed on the extended computational graph model to obtain the state variables of the power equipment corresponding to the bus node at the current moment.
7. An electromechanical transient computing device as claimed in claim 5, characterized in that: The method of solving the current moment and calculating the state variables of the corresponding power equipment at the bus node according to the differential equation and the algebraic equation includes: Get the differential equations and algebraic equations at the current moment; Convert differential equations into prediction equations; Solving the prediction equation according to a preset numerical integration method so that the prediction equation determines the state equation at the current moment according to the state variable at the previous moment; The state variables of the corresponding power equipment at the bus node at the current moment are calculated by solving the state equation at the current moment.
8. The electromechanical transient computing device according to claim 5, characterized in that: Before obtaining differential equations and algebraic equations in each transient calculation model, it also includes: If there is a topology change in the power system diagram database model or a change in the equipment information of the power equipment, obtaining corresponding change information, and modifying the power system diagram database model according to the change information; Initialize the system parameters of the modified power system diagram database model.
9. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, an electromechanical transient calculation method as claimed in any one of claims 1 to 4 is implemented.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the electromechanical transient calculation method according to any one of claims 1 to 4.
