Power grid electrification calculation method, device, equipment and medium
By constructing static topology networks and key equipment status of measurement, combined with multi -threaded technology and circuit conflict treatment, the reliability and efficiency of traditional power grid charging computing methods have been solved, and more accurate and efficient power grid charging calculations are achieved.
Patent Information
- Application Number
- CN202411450953.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-24
AI Technical Summary
The traditional power grid live computing method relies on the accuracy of the switching state, does not consider the fault effects of non-switching equipment, and does not analyze the current direction, resulting in unreliable and inefficient analysis of the analysis results.
By constructing a static topology network, the charging status and failure of the key equipment are measured, and multi -threaded technology is used for a breadth of traversing to determine the charging status and current direction, and the circular conflict is processed. Real -time updates are updated.
It reduces the impact of the upstream switching state error on the analysis results, improves the accuracy and efficiency of live calculations, enables power traceability directly according to the current direction, and improves search efficiency.
Smart Images

Figure CN119362425A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid topology analysis, and in particular to a method, device, equipment and medium for calculating power grid energization. Background Art
[0002] The power grid live calculation is used to evaluate the live state and current direction of power grid equipment. It can be used to monitor the operating state of the power grid, evaluate the safety and stability of the power grid, provide a basis for dispatching and maintenance, ensure the stable operation and efficient management of the power system, and is also the basis for power supply tracing and power outage range analysis algorithms. The basic idea of the traditional power grid live calculation method is to start breadth-first traversal from the power point given the topological connection relationship of the power grid equipment, the power supply point and the switch state of the switch, stop traversal when encountering a disconnected switch, set the traversed equipment to be energized, and set the untraversed equipment to be unenergized. However, this method is very dependent on the accuracy of the switch state. If there is any error in the state of the upstream switch, the analysis results of its downstream will be unreliable; the impact of the operating state of equipment other than the switch on the system is not considered. For example, when there is a fault in the equipment, the topology should be disconnected; the current direction is not analyzed, and it can only be used for the intuitive display of the power grid live state. When performing power supply tracing analysis, it cannot be traced according to the current direction, but search in all directions. When the power supply is searched, it can be determined which search directions are the correct directions, which affects the analysis efficiency. Summary of the invention
[0003] Purpose of the invention: The present invention aims to provide a method for calculating power grid power by taking into account the fault conditions and current directions of non-switch equipment, thereby reducing the impact of the status of upstream switches; a second purpose of the present invention is to provide a device, equipment and medium for calculating power grid power.
[0004] Technical solution: The method for calculating the power grid charge of the present invention comprises the following steps:
[0005] Construct a static topology network based on the business attribute information and terminal connection information of the primary equipment of the power grid;
[0006] Measure the switch status of switch equipment in the primary equipment of the power grid and whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are energized and faulty, and determine the energized status of the equipment, which includes energized, de-energized, and undefined;
[0007] Starting from the energized device, traverse to determine whether the device with undefined energized status is energized:
[0008] Starting from the main transformer in the energized equipment, traverse downstream, set the current direction of the energized equipment with undefined current direction, and determine the loop conflict nodes;
[0009] Starting from the loop conflict node, traverse to both sides. If the current direction of the device is different from the traversal direction, mark the current direction of the device as a loop and perform grid power calculation.
[0010] When the topological connection relationship and measurement data of the primary equipment of the power grid change, the energized state and current direction of the equipment are updated to perform energized calculations for the power grid.
[0011] Furthermore, the de-energized equipment includes de-energized equipment determined by measurement, equipment whose switch status is disconnected, and faulty equipment.
[0012] Furthermore, starting from the powered device, traverse to determine whether the undefined device is powered, as follows:
[0013] Using multi-threading technology, each live device is assigned to a thread. Starting from the live device, the breadth-first traversal is performed taking switch position changes and device failures into consideration. When the live state of the traversed device is undefined, its live state is set to live and the traversal continues; otherwise, the traversal of the current branch is terminated.
[0014] After all threads have finished, the devices whose power state is still undefined are set to unpowered.
[0015] Furthermore, starting from the main transformer in the energized equipment, traverse downstream, set the current direction of the energized equipment with undefined current direction, and determine the loop conflict nodes, as follows:
[0016] Using multi-threading technology, each live main transformer is assigned to a thread, and a breadth-first traversal is performed starting from the low-voltage side terminal of the main transformer;
[0017] When the traversed device is charged and the current direction is undefined, and the device is a two-terminal device or a multi-terminal device, the current direction is set to the traversal direction; the traversal direction is determined as follows: if the previously traversed terminal is the i-th terminal of the device, the traversal direction is to enter from terminal i;
[0018] When the current direction of the traversed device is defined, and the device is a two-terminal device or a multi-terminal device and the defined current direction is different from the traversal direction, the device is marked as a loop conflict point.
[0019] Furthermore, starting from the loop conflict node, traverse to both sides. If the current direction of the device is different from the traversal direction, the current direction of the device is marked as a loop, as follows:
[0020] Using multi-threading technology, each loop conflict point is assigned to a thread, and the loop conflict node is used as the starting point to perform breadth-first traversal to both sides;
[0021] If the traversed device is a two-terminal device or a multi-terminal device, and the current direction is defined, but the current direction is different from the traversed direction, the current direction of the device is marked as a loop.
[0022] The live grid computing device of the present invention comprises:
[0023] Static topology network module, used to obtain business attribute information and terminal connection information of primary equipment of the power grid and build a static topology network;
[0024] The measurement module is used to measure the switch status of switch equipment, whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are energized and faulty;
[0025] The energized state judgment module is used to determine the energized state of the equipment according to the switch state of the switch equipment, whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are energized and whether they are faulty. The energized state includes energized, de-energized, and undefined;
[0026] The live initialization module is used to traverse the live equipment starting from the live equipment to determine whether the equipment with undefined live status is live:
[0027] The current direction setting module is used to traverse downstream from the main transformer in the energized equipment, set the current direction of the energized equipment with undefined current direction, and determine the loop conflict nodes;
[0028] The loop setting module is used to traverse to both sides starting from the loop conflict node. If the current direction of the device is different from the traversal direction, the current direction of the device is marked as a loop.
[0029] The static topology network incremental update module is used to load the business attribute information and terminal connection information of the primary equipment of the power grid, update the static topology network, and trigger the incremental update of the live calculation;
[0030] The measurement data incremental update module is used to load the measurement data with changes and trigger the incremental update of the live calculation;
[0031] The power-on calculation incremental update module is used to perform incremental updates of the power-on status.
[0032] Furthermore, the power-on status judgment module classifies non-powered devices determined by measurement, devices with disconnected switch states, and faulty devices as non-powered devices.
[0033] Furthermore, the live initialization module uses multi-threading technology to assign each live device to a thread, and takes the live device as the starting point, taking switch position changes and device failures into consideration, and performs breadth-first traversal; when the live state of the traversed device is undefined, its live state is set to live, and the traversal continues; otherwise, the traversal of the current branch is terminated;
[0034] After all threads have finished, the devices whose power state is still undefined are set to unpowered.
[0035] Furthermore, the current direction setting module takes the main transformer in the energized device as the starting point, traverses downstream, sets the current direction of the energized device with undefined current direction, and determines the loop conflict node.
[0036] Furthermore, the loop setting module uses multi-threading technology to assign each loop conflict point to a thread, taking the loop conflict node as the starting point and performing breadth-first traversal to both sides;
[0037] If the traversed device is a two-terminal device or a multi-terminal device, and the current direction is defined, but the current direction is different from the traversed direction, the current direction of the device is marked as a loop.
[0038] The computer device of the present invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the steps of the above method are implemented when the processor executes the computer program.
[0039] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program implements the steps of the above method when executed by a processor.
[0040] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: 1. The present invention measures the live state and disconnection state of key equipment such as transformers, busbars, disconnectors, circuit breakers, capacitors, and reactors in real time, limits the influence of measurement data errors to live calculation results in the corresponding areas, and reduces the influence of the state of upstream switches on the analysis results; 2. The present invention determines the live state of the equipment by measuring the switch state of switch-type equipment in the primary equipment of the power grid and whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are live and faulty, considers switch displacement and equipment failure, determines the live state of the equipment whose live state is undefined, can reflect the fault situation of non-switch equipment, and improves the accuracy of live calculation; 3. The present invention calculates the current direction. When tracing the power supply based on the result of the live calculation, the power supply can be directly traced according to the current direction, without searching for the wrong direction, thereby improving the search efficiency; 4. The present invention uses multi-threading to execute the most time-consuming processes of setting the live state, setting the current direction, and setting the loop, thereby improving the execution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flow chart of the method for calculating the power grid charge;
[0042] Figure 2 A flowchart for setting a single thread in a powered state;
[0043] Figure 3 Flowchart for setting current direction for a single thread;
[0044] Figure 4 Flowchart for setting up a single thread for the loop. DETAILED DESCRIPTION
[0045] The present invention will be further described below in conjunction with the accompanying drawings.
[0046] like Figure 1 As shown, the method for calculating the power grid charge of the present invention comprises the following steps:
[0047] S1. Construct a static topology network based on the business attribute information and terminal connection information of the primary equipment of the power grid.
[0048] The business attribute information includes device type, device ID, voltage level, etc. A device object is constructed in memory, and the device object contains the business logic information of the device and the terminal information associated with the device. A terminal-device relationship index is constructed in memory, and the terminal-device relationship index is a mapping from the terminal number to the device set associated with the terminal.
[0049] S2. Measure the switch status of switch equipment in the primary equipment of the power grid and whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are energized and faulty, and determine the energized status of the equipment, which includes energized, de-energized, and undefined.
[0050] The measurement information of the primary equipment of the power grid is obtained from the power grid measurement information collection system, including the switch status of switch-type equipment, whether the main transformer, busbar, disconnector, circuit breaker, capacitor, reactor are energized, and whether some of the primary equipment of the power grid is faulty. An index is created from the device ID to the measurement information.
[0051] Create a power state and current direction index E, where E is the mapping from device ID to device power state and current direction. Set the power state of the device whose power state is measured as powered to powered, set the power state of the device whose power state is measured as unpowered, the device whose switch state is measured as disconnected, and the device whose fault state is measured as faulty to unpowered, and set the power state of the remaining devices to undefined.
[0052] S3. Starting from the energized device, traverse to determine whether the device with undefined energized status is energized.
[0053] Using multi-threading technology, each device in a powered state is assigned to a thread.
[0054] Starting from the energized equipment, consider the switch position change and equipment failure, and perform breadth-first traversal; when the traversed equipment has an energized state that is undefined, set its energized state to energized and continue traversal; otherwise, terminate the traversal of the current branch;
[0055] After all threads have finished, the devices whose power state is still undefined are set to unpowered.
[0056] In one embodiment, if Figure 2 As shown, starting from the energized device, traverse to determine whether the device with undefined energized status is energized, as follows:
[0057] 1) Create a terminal queue Q to be traversed, a terminal set N that has been traversed, and a device set D that has been traversed;
[0058] 2) Obtain the terminals associated with the starting device. If the starting device is a main transformer, add the low-voltage side terminals of the main transformer to the queue Q; otherwise, add all its associated terminals to the queue Q;
[0059] 3) If the terminal queue Q is not empty, take out the first terminal n from the terminal queue Q, otherwise end the traversal;
[0060] 4) If n is in the terminal set N, return to step 3), otherwise add n to the terminal set N;
[0061] 5) Obtain the n-connected device set D1 from the terminal-device index;
[0062] 6) Traverse the device set D1, record the current traversal device as d, if the traversal is complete, return to step 3);
[0063] 7) If d is in the device set D, return to step 8, otherwise add d to the set D;
[0064] 8) If the power state of d in mapping E is not undefined, or the switch state of d is disconnected, or d is a faulty device, end the traversal of the current branch and return to step 6;
[0065] 9) Set the charged state of d in the mapping E to charged;
[0066] 10) If n is not the low-voltage side terminal of the main transformer, obtain the terminal set of d from the attributes of d, add it to the queue Q, and return to step 6;
[0067] 11) After all threads are finished, set all devices whose power status is undefined to be unpowered.
[0068] S4. Starting from the main transformer in the energized equipment, traverse downstream, set the current direction of the energized equipment with undefined current direction, and determine the loop conflict nodes.
[0069] Using multi-threading technology, each live main transformer is assigned to a thread, and each thread performs breadth-first traversal starting from the low-voltage side terminal of the main transformer;
[0070] When the current state of the device currently traversed is energized and the current direction is undefined, and the device is a two-terminal device or a multi-terminal device, the current direction is set to the current traversal direction; the traversal direction is determined as follows: if the terminal previously traversed is the i-th terminal of the device, the current traversal direction is to enter from terminal i;
[0071] When the current direction of the currently traversed device has been defined, and the device is a two-terminal device or a multi-terminal device and the defined current direction is different from the current traversal direction, the device is marked as a loop conflict point.
[0072] like Figure 3 As shown, the details are as follows:
[0073] 1) Create a terminal queue Q to be traversed, a traversed terminal set N, a traversed device set D and a loop conflict node set C;
[0074] 2) Add the low-voltage side terminal of the main transformer as the starting point to the queue Q;
[0075] 3) If the terminal queue is not empty, take out the first terminal n from the terminal queue Q, otherwise end the traversal;
[0076] 4) If n is in set N, return to step 3, otherwise add n to set N;
[0077] 5) Obtain the n-connected device set D1 from the terminal-device index;
[0078] 6) Traverse the device set D1, record the current traversal device as d, if the traversal is complete, return to step 3;
[0079] 7) If d is in set D, return to step 6, otherwise add d to set D;
[0080] 8) If the current direction of d in mapping E is undefined, and d is a two-terminal device or a multi-terminal device, then set its current direction to flow from terminal n;
[0081] 9) If the current direction of d in mapping E is flowing from terminal n, end the traversal of the current branch and return to step 6;
[0082] 10) If the current direction of d in mapping E is neither undefined nor flowing from terminal n, add it to set C, end the traversal of the current branch, and return to step 6;
[0083] 11) If n is not the low-voltage side terminal of the main transformer, obtain the terminal set of d from the attributes of d, add it to the queue Q, and return to step 6.
[0084] S5. Starting from the loop conflict node, traverse to both sides. If the current direction of the device is different from the traversal direction, mark the current direction of the device as a loop and perform power grid energization calculation.
[0085] Using multi-threading technology, each loop conflict point is assigned to a thread. Each thread starts from the loop conflict node and performs breadth-first traversal to both sides. If the traversed device is a two-terminal device or a multi-terminal device, and the current direction is defined, but the current direction is different from the current traversal direction, the current direction of the device is marked as a loop. Figure 4 As shown, the details are as follows:
[0086] 1) Create a terminal queue Q to be traversed, a terminal set N that has been traversed, and a device set D that has been traversed;
[0087] 2) Mark the current direction of the loop conflict point as the starting point as a loop, and add its terminal to the queue Q;
[0088] 3) If the terminal queue is not empty, take out the first terminal n from the terminal queue Q, otherwise end the traversal;
[0089] 4) If n is in set N, return to step 3, otherwise add n to set N;
[0090] 5) Get the n-connected device set D1 from the terminal-device index;
[0091] 6) Traverse the device set D1, record the current traversal device as d, if the traversal is complete, return to step 3;
[0092] 7) If d is in set D, return to step 6, otherwise add d to set D;
[0093] 8) If the current direction of d in mapping E is neither undefined, nor flowing from terminal n, nor a loop, and d is a two-terminal device or a multi-terminal device, mark its current direction as a loop, otherwise end the traversal of the current branch and return to step 6;
[0094] 9) If n is not the low-voltage side terminal of the main transformer, obtain the terminal set of d from the attributes of d, add it to the queue Q, and return to step 6.
[0095] S6. When the topological connection relationship and measurement data of the primary equipment of the power grid change, the energized state and current direction of the equipment are updated to perform energized calculations of the power grid.
[0096] S7. Check the changes of power grid equipment and measurement data in real time from the power grid resource information management system and the power grid measurement information collection system. If the data changes, perform incremental updates, update the static topology network, update the measurement data, create a new data set of power state and current direction, and recalculate the power state and current direction information of all power grid primary equipment according to the above steps S2-S6 and store them in the new power state and current direction index. After the calculation is completed, replace the old power state and current direction index.
[0097] The live grid computing device of the present invention comprises:
[0098] Static topology network module, used to obtain business attribute information and terminal connection information of primary equipment of the power grid and build a static topology network;
[0099] The measurement module is used to measure the switch status of switch equipment, whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are energized and faulty;
[0100] The energized state judgment module is used to determine the energized state of the equipment according to the switch state of the switch equipment, whether the main transformer, busbar, disconnector, circuit breaker, capacitor, and reactor are energized and whether they are faulty. The energized state includes energized, de-energized, and undefined;
[0101] The live initialization module is used to traverse the live equipment starting from the live equipment to determine whether the equipment with undefined live status is live:
[0102] The current direction setting module is used to traverse downstream from the main transformer in the energized equipment, set the current direction of the energized equipment with undefined current direction, and determine the loop conflict nodes;
[0103] The loop setting module is used to traverse to both sides starting from the loop conflict node. If the current direction of the device is different from the traversal direction, the current direction of the device is marked as a loop.
[0104] The static topology network incremental update module is used to load the business attribute information and terminal connection information of the primary equipment of the power grid, update the static topology network, and trigger the incremental update of the live calculation;
[0105] The measurement data incremental update module is used to load the measurement data with changes and trigger the incremental update of the live calculation;
[0106] The power-on calculation incremental update module is used to perform incremental updates of the power-on status.
[0107] Furthermore, the power-on status judgment module classifies non-powered devices determined by measurement, devices with disconnected switch states, and faulty devices as non-powered devices.
[0108] Furthermore, the live initialization module uses multi-threading technology to assign each live device to a thread, and takes the live device as the starting point, taking switch position changes and device failures into consideration, and performs breadth-first traversal; when the live state of the traversed device is undefined, its live state is set to live, and the traversal continues; otherwise, the traversal of the current branch is terminated;
[0109] After all threads have finished, the devices whose power state is still undefined are set to unpowered.
[0110] Furthermore, the current direction setting module takes the main transformer in the energized device as the starting point, traverses downstream, sets the current direction of the energized device with undefined current direction, and determines the loop conflict node.
[0111] Furthermore, the loop setting module uses multi-threading technology to assign each loop conflict point to a thread, taking the loop conflict node as the starting point and performing breadth-first traversal to both sides;
[0112] If the traversed device is a two-terminal device or a multi-terminal device, and the current direction is defined, but the current direction is different from the traversed direction, the current direction of the device is marked as a loop.
[0113] The computer device of the present invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the steps of the above method are implemented when the processor executes the computer program.
[0114] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program implements the steps of the above method when executed by a processor.
[0115] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
Claims
1. A method for calculating the power grid charge, characterized in that: The following steps are involved: Constructing a first static topology network according to the service attribute information and terminal connection information of the primary equipment of the power grid; Measuring the switch status of switch-type equipment in the primary equipment of the power grid in the first static topology network and whether the electrical equipment is energized and whether it is faulty, so as to determine the energized state of the equipment, where the energized state includes energized, de-energized and undefined; Starting from the device with a power-on status of energized, traversing is performed to determine whether the device with a power-on status of undefined currently traversed is energized, and if so, updating the power-on status of the device to energized, otherwise to de-energized; obtaining a second static topology network; Starting from the main transformer in the second static topology network, which is in the energized state, traverse downstream, set the current direction of the energized device with undefined current direction that is currently traversed, and determine the loop conflict node; Starting from the loop conflict node, traverse to both sides. If the current direction of the currently traversed device is different from the current traversal direction, the current direction of the device is marked as a loop and the grid is energized for calculation.
2. The method for calculating the power grid charge according to claim 1, characterized in that: When the topological connection relationship and measurement data of the primary equipment of the power grid change, the energized state and current direction of the equipment are updated to perform energized calculations for the power grid.
3. The method for calculating the power grid charge according to claim 1, characterized in that: Equipment whose energized state is de-energized includes equipment that is determined to be de-energized through measurement, equipment whose switch state is disconnected, and equipment that is faulty.
4. The method for calculating the power grid charge according to claim 3, characterized in that: Starting from the device with a power status of energized, traverse to determine whether the currently traversed device with an undefined power status is energized, as follows: Using multi-threading technology, each device with a power-on status is assigned to a thread. Each thread starts with the device with a power-on status and performs breadth-first traversal. When the power-on status of the currently traversed device is undefined, its power-on status is set to powered, and the traversal continues in the current branch; otherwise, the traversal of the current branch is terminated. After all threads have finished, the devices whose power state is still undefined are set to unpowered.
5. The method for calculating the power grid charge according to claim 1, characterized in that: Starting from the main transformer in the second static topology network, which is energized, traverse downstream, set the current direction of the energized device with undefined current direction, and determine the loop conflict node, as follows: Using multi-threading technology, each live main transformer is assigned to a thread, and each thread performs breadth-first traversal starting from the low-voltage side terminal of the main transformer; When the current state of the device currently traversed is energized and the current direction is undefined, and the device is a two-terminal device or a multi-terminal device, the current direction is set to the current traversal direction; the traversal direction is determined as follows: if the terminal previously traversed is the i-th terminal of the device, the current traversal direction is to enter from terminal i; When the current direction of the currently traversed device has been defined, and the device is a two-terminal device or a multi-terminal device and the defined current direction is different from the current traversal direction, the device is marked as a loop conflict point.
6. The method for calculating the power grid charge according to claim 1, characterized in that: Starting from the loop conflict node, traverse to both sides. If the current direction of the device currently traversed is different from the current traversal direction, the current direction of the device is marked as a loop, as follows: Using multi-threading technology, each loop conflict point is assigned to a thread. Each thread starts from the loop conflict node and performs breadth-first traversal to both sides. If the traversed device is a two-terminal device or a multi-terminal device, and the current direction has been defined, but the current direction is different from the current traversal direction, the current direction of the device is marked as a loop.
7. A live grid computing device, characterized in that: include A static topology network module, used to obtain service attribute information and terminal connection information of primary equipment of the power grid, and to construct a first static topology network; A measurement module is used to measure the switch state of the switch-type equipment in the primary equipment of the power grid in the first static topology network and whether the electrical equipment is energized and whether it is faulty, so as to determine the energized state of the equipment, where the energized state includes energized, de-energized and undefined; The powered initialization module is used to traverse the device with a powered state as the starting point to determine whether the device with an undefined powered state is powered. If it is powered, the powered state of the device is updated to powered, otherwise it is not powered; the second static topology network is obtained: A current direction setting module is used to traverse downstream from the main transformer in the second static topology network, which is in a powered state, to set the current direction of the currently traversed device that is powered and has an undefined current direction, and to determine the loop conflict node; The loop setting module is used to traverse to both sides starting from the loop conflict node. If the current direction of the currently traversed device is different from the current traversal direction, the current direction of the device is marked as a loop and the power grid is energized for calculation.
8. The grid live calculation device according to claim 7, characterized in that: Also includes: The update module is used to re-update the energized state and current direction of the equipment and perform energized calculations for the power grid when the topological connection relationship and measurement data of the primary equipment of the power grid change.
9. The grid live calculation device according to claim 7, characterized in that: Equipment whose energized state is de-energized includes equipment that is determined to be de-energized through measurement, equipment whose switch state is disconnected, and equipment that is faulty.
10. The grid live calculation device according to claim 9, characterized in that: The live initialization module starts from the device whose live state is live and performs traversal to determine whether the device whose live state is undefined is live, as follows: Using multi-threading technology, each device with a powered state is assigned to a thread. Each thread starts with a powered device and performs breadth-first traversal. When the power state of the currently traversed device is undefined, its power state is set to powered and the traversal continues in the current branch; otherwise, the traversal of the current branch is terminated. After all threads have finished, the devices whose power state is still undefined are set to unpowered.
11. The grid live calculation device according to claim 7, characterized in that: The current direction setting module takes the main transformer in the energized device as the starting point, traverses downstream, sets the current direction of the energized device with undefined current direction, and determines the loop conflict node, as follows: Using multi-threading technology, each live main transformer is assigned to a thread, and each thread performs breadth-first traversal starting from the low-voltage side terminal of the main transformer; When the current state of the device currently traversed is energized and the current direction is undefined, and the device is a two-terminal device or a multi-terminal device, the current direction is set to the current traversal direction; the traversal direction is determined as follows: if the terminal previously traversed is the i-th terminal of the device, the current traversal direction is to enter from terminal i; When the current direction of the currently traversed device has been defined, and the device is a two-terminal device or a multi-terminal device and the defined current direction is different from the current traversal direction, the device is marked as a loop conflict point.
12. The grid live calculation device according to claim 7, characterized in that: The loop setting module takes the loop conflict node as the starting point and traverses to both sides. If the device current direction is different from the traversal direction, the current direction of the device is marked as a loop, as follows: Using multi-threading technology, each loop conflict point is assigned to a thread. Each thread starts from the loop conflict node and performs breadth-first traversal to both sides. If the traversed device is a two-terminal device or a multi-terminal device, and the current direction has been defined, but the current direction is different from the current traversal direction, the current direction of the device is marked as a loop.
13. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.