Graph database-based power grid transient calculation method and device, terminal equipment and storage medium
By building a parallel transient computing model on the power system graph database, using differential and algebraic nodes to transmit state quantities, combined with coordinate transformation processing equipment information, the problem of inefficient transient computing in the power grid in the existing technology is solved, and efficient parallelism is achieved calculate.
Patent Information
- Application Number
- CN202410955706.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-01
AI Technical Summary
The existing grid transient computing model based on graph database cannot directly support parallel computing, resulting in inefficient computing.
By constructing a transient calculation model on the steady-state model of the power system graph database, selecting the calculation bus node for parallel calculation, using differential nodes and algebraic nodes to transmit differential state quantities and algebraic variables, combining coordinate transformation to process the equipment information of the power equipment, the temporary completion state calculation.
Parallel transient calculation of multiple calculation bus nodes on the power system diagram database is realized, and the calculation efficiency is improved.
Smart Images

Figure CN118886147A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power information technology, and in particular to a method, device, terminal equipment and storage medium for calculating transient states of a power grid based on a graph database. Background Art
[0002] The increasing scale of power systems and more frequent operation adjustments have put forward higher requirements for the real-time analysis and calculation. Graph database is a new type of database that has emerged in recent years and originated from the parallel processing of massive data on the Internet. It can intuitively express the topological structure of the power grid. The existing power grid transient calculation model built on the graph database is mainly stored in text form. When applied, the text is imported into the memory or relational database for calculation according to the software requirements; however, this transient calculation model stored in text form cannot directly support parallel calculation on the power grid graph model, resulting in limitations in the application scenarios of power grid transient calculation and low efficiency of transient calculation. Summary of the invention
[0003] The embodiments of the present invention provide a method, apparatus, terminal device and storage medium for transient calculation of a power grid based on a graph database, which can complete transient calculation on a steady-state model of a power system graph database, realize parallel calculation of respective transient calculation models on multiple computing bus nodes, and improve transient calculation efficiency.
[0004] An embodiment of the present invention provides a method for calculating transient state of a power grid based on a graph database, comprising:
[0005] Obtaining a power system model file of the target power system, and constructing a power system graph database steady-state model of the target power system according to the power system model file; wherein the power system graph database steady-state model includes equipment information of each power device and a topological connection relationship between each power device;
[0006] Selecting a number of nodes to be subjected to transient calculation from a steady-state model of a power system diagram database as a number of calculation bus nodes;
[0007] For each computational bus node, a transient computation model is constructed; wherein the transient computation model includes: a differential node for storing differential state quantities and an algebraic node for storing algebraic variables;
[0008] Obtain the differential state quantity and algebraic variables of the power equipment corresponding to the calculation bus node, and assign them to the differential node and the algebraic node, so that the algebraic node and the differential node transmit the differential state quantity and algebraic variables to the calculation bus node, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and algebraic variables.
[0009] Furthermore, the transient calculation model further includes: an interface node;
[0010] The computational bus node is connected to the interface node, and the interface node, the differential node and the algebraic node are connected in pairs;
[0011] The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, including:
[0012] The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the interface node, so that the interface node receives the differential state quantity and the algebraic variable and transmits the differential state quantity and the algebraic variable to the calculation bus node.
[0013] Furthermore, the interface node receives the differential state quantity and the algebraic variable, and transmits the differential state quantity and the algebraic variable to the calculation bus node, including:
[0014] When the power equipment corresponding to the calculated bus node is a power equipment with a coordinate transformation requirement, the interface node performs coordinate transformation on the coordinate-related parameters in the differential state quantity and the algebraic variable to generate the coordinate-transformed differential state quantity and the coordinate-transformed algebraic variable;
[0015] The differential state quantity after coordinate transformation and the algebraic variable after coordinate transformation are transmitted to the calculation bus node;
[0016] When the power equipment corresponding to the calculated bus node is a power equipment without coordinate transformation requirements, the interface node directly transmits the differential state quantity and the algebraic variable to the calculated bus node.
[0017] Furthermore, it also includes:
[0018] The transient calculation model corresponding to each calculation bus node of the steady-state model of the power system graph database is stored in the memory and the graph database.
[0019] Based on the above method embodiment, the present invention provides a corresponding device embodiment;
[0020] An embodiment of the present invention provides a power grid transient calculation device based on a graph database, including: a steady-state model construction module, a transient model construction module and a transient calculation module;
[0021] The steady-state model construction module is used to obtain the power system model file of the target power system, and construct the power system graph database steady-state model of the target power system according to the power system model file; wherein the power system graph database steady-state model includes the equipment information of each power device and the topological connection relationship between each power device;
[0022] The transient model building module is used to select a number of nodes to be subjected to transient calculation from the steady-state model of the power system diagram database as a number of calculation bus nodes; for each calculation bus node, a transient calculation model is built; wherein the transient calculation model includes: a differential node for storing differential state quantities and an algebraic node for storing algebraic variables;
[0023] The transient calculation module is used to obtain the differential state quantity and algebraic variables of the power equipment corresponding to the calculation bus node, and assign them to the differential node and the algebraic node, so that the algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and the algebraic variable.
[0024] Furthermore, the transient calculation model further includes: an interface node;
[0025] The computational bus node is connected to the interface node, and the interface node, the differential node and the algebraic node are connected in pairs;
[0026] The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, including:
[0027] The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the interface node, so that the interface node receives the differential state quantity and the algebraic variable and transmits the differential state quantity and the algebraic variable to the calculation bus node.
[0028] Furthermore, the interface node receives the differential state quantity and the algebraic variable, and transmits the differential state quantity and the algebraic variable to the calculation bus node, including:
[0029] When the power equipment corresponding to the calculated bus node is a power equipment with a coordinate transformation requirement, the interface node performs coordinate transformation on the coordinate-related parameters in the differential state quantity and the algebraic variable to generate the coordinate-transformed differential state quantity and the coordinate-transformed algebraic variable;
[0030] The differential state quantity after coordinate transformation and the algebraic variable after coordinate transformation are transmitted to the calculation bus node;
[0031] When the power equipment corresponding to the calculated bus node is a power equipment without coordinate transformation requirements, the interface node directly transmits the differential state quantity and the algebraic variable to the calculated bus node.
[0032] Furthermore, it also includes a data storage module;
[0033] The data storage module is used to store the transient calculation model corresponding to each calculation bus node of the steady-state model of the power system graph database in the memory and the graph database.
[0034] 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, it implements the grid transient calculation method based on a graph database described in the above-mentioned embodiment of the invention.
[0035] 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 a power grid transient calculation method based on a graph database as described in the above-mentioned embodiment of the invention.
[0036] The following beneficial effects are achieved by implementing the present invention:
[0037] The present invention provides a method, device, terminal equipment and storage medium for calculating transient state of a power grid based on a graph database. The method obtains a power system model file of a target power system and constructs a steady-state model of a graph database of the power system; on the basis of constructing the steady-state model of the graph database of the power system, obtains a plurality of nodes to be transiently calculated on the model as calculation bus nodes; for each calculation bus node, constructs its corresponding transient calculation model, wherein the transient calculation model includes a differential node for storing differential state quantities and an algebraic node for storing algebraic variables; before each calculation bus node performs transient calculation, obtains the differential state quantity and algebraic variable of the power equipment corresponding to the calculation bus node, assigns them to the differential node and the algebraic node, and then transmits them to the calculation bus node for calculation, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and the algebraic variable. By selecting several nodes to be transiently calculated based on the steady-state model and constructing the corresponding transient calculation model, the transient calculation can be completed on the steady-state model of the power system diagram database by assigning values to the differential nodes and algebraic nodes in the transient model. Each calculation bus node corresponds to a transient calculation model, which can realize parallel calculation of each transient calculation model on multiple calculation bus nodes and improve the efficiency of transient calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a method for calculating transient state of a power grid based on a graph database provided in one embodiment of the present invention.
[0039] Figure 2 It is a schematic diagram of adding a transient calculation model to a steady-state model of a power system diagram database provided by an embodiment of the present invention.
[0040] Figure 3It is a structural schematic diagram of a power grid transient calculation device based on a graph database provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] 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.
[0042] like Figure 1 As shown, a method for calculating transient state of a power grid based on a graph database is provided in one embodiment of the present invention, comprising:
[0043] Step S1: obtaining a power system model file of a target power system, and constructing a power system graph database steady-state model of the target power system according to the power system model file; wherein the power system graph database steady-state model includes equipment information of each power device and a topological connection relationship between each power device;
[0044] Step S2: selecting a number of nodes to be subjected to transient calculation from the steady-state model of the power system diagram database as a number of calculation bus nodes;
[0045] Step S3: for each calculation bus node, construct a transient calculation model; wherein the transient calculation model includes: a differential node for storing differential state quantities and an algebraic node for storing algebraic variables;
[0046] Step S4: Obtain the differential state quantity and algebraic variables of the power equipment corresponding to the calculation bus node, and assign them to the differential node and the algebraic node, so that the algebraic node and the differential node transmit the differential state quantity and algebraic variables to the calculation bus node, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and the algebraic variable.
[0047] like Figure 2 As shown, it is a schematic diagram of constructing a transient calculation model on a calculation bus node of a steady-state model of a power system diagram database provided by an embodiment of the present invention.
[0048] For step S1, based on the graph database, obtain the power system model file of the target power system, wherein the power system model file includes at least one device model file; according to each device model file in the power system model, obtain the device information of each device in the target power system; wherein the device information includes device objects, device attributes and topological connection relationships between devices; the topological connection relationship between devices represents the topological connection relationship between device objects and other device objects; according to the device information of each device in the target power system, construct a steady-state model of the power system graph database corresponding to the target power system; wherein the constructed steady-state model of the power system graph database can represent the topological connection relationship between power devices and power devices. In this embodiment, the steady-state model of the power system graph database is abstracted as follows: Figure 2 The solid black line part in the middle represents the power system lines or power equipment.
[0049] For step S2, when there is a transient calculation demand at a certain position in the steady-state model of the power system diagram database, the position where the transient calculation is required is selected as the node to be transiently calculated, as shown in FIG. Figure 2 The calculated bus nodes are shown in FIG. 1 , where each of the calculated bus nodes is connected by a black solid line. Since the calculated bus nodes are selected from the steady-state model of the power system diagram database, the attributes of each calculated bus node and the black solid line include the equipment information, system parameters, and power value of the power system.
[0050] For step S3, in a preferred embodiment, the transient calculation model also includes: an interface node; the calculation bus node is connected to the interface node, and the interface node, differential node and algebraic node are connected in pairs; the algebraic node and differential node transmit the differential state quantity and algebraic variable to the calculation bus node, including: the algebraic node and differential node transmit the differential state quantity and algebraic variable to the interface node, so that the interface node receives the differential state quantity and algebraic variable, and transmits the differential state quantity and algebraic variable to the calculation bus node.
[0051] Specifically, for each selected computational bus node, construct a Figure 2 The dotted line and double circle represent the transient calculation model. Each transient calculation model includes differential nodes for storing differential state quantities and parameters involved in differential equation calculations, algebraic nodes for storing algebraic variables and parameters involved in algebraic equation calculations, and interface nodes for connecting calculation bus nodes. In a transient calculation model, the calculation bus nodes are connected to the interface nodes, and the interface nodes are connected to the differential nodes and algebraic nodes in pairs, forming a transient calculation model. Figure 2The triangle structure shown by the dotted line is uniquely connected to the steady-state model of the power system diagram database through an interface node. By adding an interface node, the differential node and the algebraic node can be separated from the calculation bus node to facilitate the management of transient-specific calculation operations.
[0052] For step S4, before any computing bus node performs transient calculation, it is necessary to obtain the differential state quantity, relevant parameters involved in differential equation calculation, algebraic variables and relevant parameters involved in algebraic equation calculation of the power equipment corresponding to the computing bus node; and assign the obtained differential state quantity and relevant parameters involved in differential equation calculation to the differential node, and assign the obtained algebraic variables and relevant parameters involved in algebraic equation calculation to the algebraic node. Through the assignment operation of the differential node and the algebraic node, the differential node and the algebraic node carry the content required for transient calculation, and then transmit it to the interface node, and then transmit it to the computing bus node by the interface node, so that the computing bus node obtains the equipment information, system parameters and injected power value injected into the computing bus node, and selects the corresponding information in combination with the power equipment corresponding to the computing bus node to complete the transient calculation of the power equipment corresponding to the computing bus node. Preferably, in order to reduce the calculation pressure of the calculation bus node, when assigning values to the differential algebraic nodes, the differential equation calculation can be completed on the differential algebraic node, and after the algebraic equation calculation is completed on the algebraic node, the corresponding calculation result is transmitted to the calculation bus node via the interface node for further transient calculation; if the relevant parameters in the calculation bus node need to be obtained during the differential equation calculation and the algebraic equation calculation process, they are obtained from the calculation bus node and transmitted to the algebraic node or the differential node, so that the differential node and the algebraic node can complete the corresponding equation calculation.
[0053] In a preferred embodiment, the interface node receives differential state quantities and algebraic variables, and transmits the differential state quantities and algebraic variables to the calculation bus node, including: when the power equipment corresponding to the calculation bus node is a power equipment with a coordinate transformation requirement, the interface node performs coordinate transformation on the coordinate-related parameters in the differential state quantities and algebraic variables to generate the differential state quantities and algebraic variables after the coordinate transformation; transmits the differential state quantities and algebraic variables after the coordinate transformation to the calculation bus node; when the power equipment corresponding to the calculation bus node is a power equipment with no coordinate transformation requirement, the interface node directly transmits the differential state quantities and algebraic variables to the calculation bus node.
[0054] Specifically, for the interface node, in addition to serving as a data transfer, it can also realize coordinate transformation. When the power equipment corresponding to the calculation bus node is a power equipment with coordinate transformation requirements, such as synchronous motors and other equipment, the interface node needs to transform the coordinate-related parameters in the differential node and the algebraic node and transmit them to the calculation bus node, or transform the coordinate-related parameters in the data transmitted from the calculation bus node to the algebraic node and the differential node and transmit them to the calculation bus node, so that the data on the calculation bus node side and the data on the differential node and the algebraic node side use the same coordinate system, which is convenient for calculation. When the power equipment corresponding to the calculation bus node is a power equipment without coordinate transformation requirements, such as a motor or a dynamic load model, the interface node only serves to connect and transmit data, and no coordinate change is required.
[0055] It should be noted that the transient calculation model constructed in the present invention is applicable to various dynamic components in the power system. The present invention refers to power equipment, but is not limited to traditional power equipment, and may include but is not limited to synchronous motor models, such as fan models, motor models, etc. According to different models or equipment, their own physical constraints have different differential and algebraic equations, and their state quantities and related parameters are different. The specific parameters and equations are determined according to the power equipment corresponding to each calculation bus node.
[0056] For example, taking a synchronous motor as an example, 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; when the voltage and current data are transmitted to the interface node, there are parameters such as the voltage and current expressed in the DQ axis, the voltage and current expressed in the dq axis, the generator active power and the generator power angle at the interface node. At this time, the interface node needs to convert the voltage and current expressed in the DQ axis into the dq axis expression, or convert the voltage and current expressed in the dq axis into the DQ axis expression, so that the coordinate data of the data in the node are in the same coordinate system. Differential nodes involve rotor motion equations, excitation equations, speed regulator and prime mover equations. According to each equation, the transient potential of the generator dq axis, rotor speed, excitation potential, excitation rate feedback state, voltage regulator output, generator electromagnetic power and generator reference voltage are obtained; for synchronous motors, algebraic nodes are used to store calculation coefficients related to algebraic equations and algebraic variables not covered by interface nodes and differential nodes. For synchronous motors, algebraic variables are covered by interface nodes and differential nodes. Therefore, this algebraic node is only used to store algebraic equation constants, that is, circuit parameters in the custom voltage equation. In transient calculations, the differential equations and algebraic equations with solutions are converted into nonlinear algebraic equations and then solved to complete the transient calculation.
[0057] In a preferred embodiment, it also includes: storing the transient calculation model corresponding to each calculation bus node of the steady-state model of the power system graph database in the memory and the graph database.
[0058] Specifically, after the steady-state model of the power system graph database is constructed in step S1, it is usually stored in the graph database. When there is a transient calculation demand, the steady-state model of the power system graph database is read from the graph database. The model can be stored in the memory or the graph database. On this basis, the transient calculation model construction process of steps S2 and S3 is executed, the calculation bus node is selected, and the interface node, differential node and algebraic node are added. When the transient calculation model needs to be calculated, the transient calculation model is read into the memory for calculation. When the calculation is completed and the transient calculation model is built, it is written into the memory. If the graph database has enough storage, it is written into the graph database.
[0059] Based on the above method embodiment, the present invention provides a corresponding device embodiment.
[0060] like Figure 3 As shown, an embodiment of the present invention provides a power grid transient calculation device based on a graph database, including: a steady-state model construction module, a transient model construction module and a transient calculation module;
[0061] The steady-state model construction module is used to obtain the power system model file of the target power system, and construct the power system graph database steady-state model of the target power system according to the power system model file; wherein the power system graph database steady-state model includes the equipment information of each power device and the topological connection relationship between each power device;
[0062] The transient model building module is used to select a number of nodes to be subjected to transient calculation from the steady-state model of the power system diagram database as a number of calculation bus nodes; for each calculation bus node, a transient calculation model is built; wherein the transient calculation model includes: a differential node for storing differential state quantities and an algebraic node for storing algebraic variables;
[0063] The transient calculation module is used to obtain the differential state quantity and algebraic variables of the power equipment corresponding to the calculation bus node, and assign them to the differential node and the algebraic node, so that the algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and the algebraic variable.
[0064] In a preferred embodiment, the transient calculation model further includes: an interface node;
[0065] The computational bus node is connected to the interface node, and the interface node, the differential node and the algebraic node are connected in pairs;
[0066] The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, including:
[0067] The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the interface node, so that the interface node receives the differential state quantity and the algebraic variable and transmits the differential state quantity and the algebraic variable to the calculation bus node.
[0068] In a preferred embodiment, the interface node receives the differential state quantity and the algebraic variable, and transmits the differential state quantity and the algebraic variable to the calculation bus node, including:
[0069] When the power equipment corresponding to the calculated bus node is a power equipment with a coordinate transformation requirement, the interface node performs coordinate transformation on the coordinate-related parameters in the differential state quantity and the algebraic variable to generate the coordinate-transformed differential state quantity and the coordinate-transformed algebraic variable;
[0070] The differential state quantity after coordinate transformation and the algebraic variable after coordinate transformation are transmitted to the calculation bus node;
[0071] When the power equipment corresponding to the calculated bus node is a power equipment without coordinate transformation requirements, the interface node directly transmits the differential state quantity and the algebraic variable to the calculated bus node.
[0072] In a preferred embodiment, it also includes a data storage module;
[0073] The data storage module is used to store the transient calculation model corresponding to each calculation bus node of the steady-state model of the power system graph database in the memory and the graph database.
[0074] 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.
[0075] 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.
[0076] Based on the above method item embodiments, the present invention provides corresponding terminal device item embodiments.
[0077] 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, it implements a grid transient calculation method based on a graph database as described in any one of the present invention.
[0078] 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.
[0079] 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.
[0080] 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 Med ia 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.
[0081] Based on the above method item embodiments, the present invention provides a corresponding storage medium item embodiment.
[0082] 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 a power grid transient calculation method based on a graph database as described in any one of the present inventions.
[0083] 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.
[0084] 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 grid transient calculation method based on graph database, It is characterized in that include: Obtaining a power system model file of the target power system, and constructing a power system graph database steady-state model of the target power system according to the power system model file; wherein the power system graph database steady-state model includes equipment information of each power device and a topological connection relationship between each power device; Selecting a number of nodes to be subjected to transient calculation from a steady-state model of a power system diagram database as a number of calculation bus nodes; For each computational bus node, a transient computation model is constructed; wherein the transient computation model includes: a differential node for storing differential state quantities and an algebraic node for storing algebraic variables; Obtain the differential state quantity and algebraic variables of the power equipment corresponding to the calculation bus node, and assign them to the differential node and the algebraic node, so that the algebraic node and the differential node transmit the differential state quantity and algebraic variables to the calculation bus node, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and algebraic variables.
2. A method for calculating transient state of a power grid based on a graph database as claimed in claim 1, It is characterized in that The transient calculation model also includes: an interface node; The computational bus node is connected to the interface node, and the interface node, the differential node and the algebraic node are connected in pairs; The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, including: The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the interface node, so that the interface node receives the differential state quantity and the algebraic variable and transmits the differential state quantity and the algebraic variable to the calculation bus node.
3. A method for calculating transient state of a power grid based on a graph database as claimed in claim 2, It is characterized in that The interface node receives the differential state quantity and the algebraic variable, and transmits the differential state quantity and the algebraic variable to the calculation bus node, including: When the power equipment corresponding to the calculated bus node is a power equipment with a coordinate transformation requirement, the interface node performs coordinate transformation on the coordinate-related parameters in the differential state quantity and the algebraic variable to generate the coordinate-transformed differential state quantity and the coordinate-transformed algebraic variable; The differential state quantity after coordinate transformation and the algebraic variable after coordinate transformation are transmitted to the calculation bus node; When the power equipment corresponding to the calculated bus node is a power equipment without coordinate transformation requirements, the interface node directly transmits the differential state quantity and the algebraic variable to the calculated bus node.
4. A method for calculating transient state of a power grid based on a graph database as claimed in claim 1, It is characterized in that Also includes: The transient calculation model corresponding to each calculation bus node of the steady-state model of the power system graph database is stored in the memory and the graph database.
5. A power grid transient calculation device based on graph database, It is characterized in that include: Steady-state model building module, transient model building module and transient calculation module; The steady-state model construction module is used to obtain the power system model file of the target power system, and construct the power system graph database steady-state model of the target power system according to the power system model file; wherein the power system graph database steady-state model includes the equipment information of each power device and the topological connection relationship between each power device; The transient model building module is used to select a number of nodes to be subjected to transient calculation from the steady-state model of the power system diagram database as a number of calculation bus nodes; for each calculation bus node, a transient calculation model is built; wherein the transient calculation model includes: a differential node for storing differential state quantities and an algebraic node for storing algebraic variables; The transient calculation module is used to obtain the differential state quantity and algebraic variables of the power equipment corresponding to the calculation bus node, and assign them to the differential node and the algebraic node, so that the algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, so that the calculation bus node obtains the equipment information of the current power equipment, and completes the transient calculation of the current power equipment in combination with the differential state quantity and the algebraic variable.
6. A power grid transient calculation device based on a graph database as claimed in claim 5, It is characterized in that The transient calculation model also includes: an interface node; The computational bus node is connected to the interface node, and the interface node, the differential node and the algebraic node are connected in pairs; The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the calculation bus node, including: The algebraic node and the differential node transmit the differential state quantity and the algebraic variable to the interface node, so that the interface node receives the differential state quantity and the algebraic variable and transmits the differential state quantity and the algebraic variable to the calculation bus node.
7. A power grid transient calculation device based on a graph database as claimed in claim 6, It is characterized in that The interface node receives the differential state quantity and the algebraic variable, and transmits the differential state quantity and the algebraic variable to the calculation bus node, including: When the power equipment corresponding to the calculated bus node is a power equipment with a coordinate transformation requirement, the interface node performs coordinate transformation on the coordinate-related parameters in the differential state quantity and the algebraic variable to generate the coordinate-transformed differential state quantity and the coordinate-transformed algebraic variable; The differential state quantity after coordinate transformation and the algebraic variable after coordinate transformation are transmitted to the calculation bus node; When the power equipment corresponding to the calculated bus node is a power equipment without coordinate transformation requirements, the interface node directly transmits the differential state quantity and the algebraic variable to the calculated bus node.
8. A power grid transient calculation device based on a graph database as claimed in claim 5, It is characterized in that Also included is a data storage module; The data storage module is used to store the transient calculation model corresponding to each calculation bus node of the steady-state model of the power system graph database in the memory and the graph database.
9. A terminal device, It is characterized in that It 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, it implements a grid transient calculation method based on a graph database as described in any one of claims 1 to 4.
10. A storage medium, It is characterized in that The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a power grid transient calculation method based on a graph database as described in any one of claims 1 to 4.
