A power grid distributed simulation test system and method based on 5G synchronization
The 5G-based distributed power grid simulation test system solves the problem of complex fault simulation testing across bays and substations in the commissioning of substation relay protection, and realizes efficient multi-site synchronous testing and real-time closed-loop simulation, improving testing efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUPER HIGH VOLTAGE BRANCH OF STATE GRID JIBEI ELECTRIC POWER CO LTD
- Filing Date
- 2026-02-10
- Publication Date
- 2026-06-12
AI Technical Summary
Existing technologies face challenges in simulating complex faults across bays and substations during substation relay protection commissioning. Centralized simulation testing systems are complex to deploy and have poor scalability, while distributed testing systems based on general networks suffer from insufficient synchronization accuracy and poor real-time performance. Furthermore, the lack of integrated modeling tools makes it difficult to achieve rapid on-site modeling and real-time collaboration and closed-loop dynamic simulation across multiple terminals.
A distributed power grid simulation test system based on 5G synchronization is adopted. By building a topology model and a topology matrix calculation model in the model and task building module, distributed test terminals are deployed for time synchronization, test sequences are built, and microsecond-level time synchronization and real-time data transmission are achieved using the 5G network, supporting rapid modeling and closed-loop simulation.
It significantly improves modeling efficiency, ensures time consistency of simulation data across multiple sites, supports flexible networking, adapts to different testing scenarios, enhances the realism and comprehensiveness of testing, and meets the requirements of real-time closed-loop testing.
Smart Images

Figure CN122193743A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent substation operation and maintenance technology, specifically relating to a power grid distributed simulation test system based on 5G synchronization, and also to a power grid distributed simulation test method based on 5G synchronization. Background Technology
[0002] Currently, substation relay protection commissioning often involves complex fault simulation tests across bays and substations. Existing simulation testing technologies are mainly divided into two categories: centralized simulation testing systems and distributed testing systems based on general networks. Centralized simulation testing systems rely on high-performance servers to centrally run simulation models and distribute simulation data to various test terminals via fiber optics or local area networks. Although this type of system can achieve high-precision simulation, it has the following problems: complex deployment: it requires the deployment of a dedicated network and server within the substation, making it unsuitable for outdoor, cross-site, and long-distance field testing scenarios; poor scalability: it is difficult to support synchronous testing at multiple sites and is sensitive to network latency; high modeling threshold: it usually requires specialized simulation software to build detailed models, which places high demands on the technical skills of commissioning personnel.
[0003] Distributed testing systems based on general networks use wireless networks (such as 4G and Wi-Fi) to achieve data synchronization between multiple terminals, but they have the following problems: Insufficient synchronization accuracy: Traditional wireless networks cannot guarantee microsecond-level time synchronization, resulting in inconsistent output data from each test terminal and affecting test accuracy; Poor real-time performance: Network jitter and latency may cause simulation interruption or protection malfunction, failing to meet the requirements of real-time closed-loop testing; Lack of integrated modeling tools: Most systems still rely on offline modeling, making it difficult to quickly adjust test logic and fault parameters during on-site debugging.
[0004] Although some patents have proposed combining modular testing systems with 5G networks for distributed testing, they mostly focus on network architecture or clock synchronization mechanisms and have not yet effectively solved the problem of integrating "rapid on-site modeling, real-time collaboration of multiple terminals, and closed-loop dynamic simulation". Summary of the Invention
[0005] The purpose of this invention is to address the aforementioned problems in the existing technology by providing a distributed power grid simulation test system based on 5G synchronization, and also to provide a distributed power grid simulation test method based on 5G synchronization, which solves the problem of distributed testing of substation relay protection and significantly improves testing efficiency.
[0006] The above-mentioned objectives of the present invention are achieved by the following technical means: A distributed power grid simulation test method based on 5G synchronization includes the following steps: Step S1: Construct a primary topology model and a topology matrix calculation model of the power grid in the model and task construction module; Step S2: Deploy distributed test terminals at the substation site and synchronize their time. Step S3: Construct the test sequence; Step S4: Load the topology model and the corresponding topology matrix calculation model according to the current test project and instantiate them. Perform closed-loop simulation test based on the instantiated topology model. Step S5: The test control host obtains the test results and executes the next test item of the current device under test according to the default execution order based on the test results, or marks the abnormal device under test according to the test results and executes the test subsequence of the next device under test; until all test items of non-abnormal devices under test in the test sequence have been executed.
[0007] As described above, step 1 specifically includes the following steps: Step S1.1: The model and task construction module pre-sets a primary equipment model library and a bay model library for the power grid. The primary equipment model library includes primary equipment models of switches, disconnectors, CP, PT, lines, transformers, buses, capacitors, and reactors. The bay model library includes bay models of line bays, transformer bays, and bus bays. Step S1.2: Construct a primary topology diagram including topological connection relationships based on the preset interval model library and primary equipment model library; Step S1.3: Configure the topology parameters of the primary topology graph to obtain the primary topology model; Step S1.4: Perform topology logic verification on the topology model. Topology logic verification includes electrical connectivity check, logic correctness check, and parameter integrity check. Step S1.5: Convert the primary topology model into a topology matrix calculation model; The test control host loads the corresponding primary topology model according to the test project, and instantiates the parameters of the primary topology model through the human-computer interaction interface of the test control host; if the primary topology model differs from the actual one, the primary topology model can be visualized and partially modified through the human-computer interaction interface of the test control host.
[0008] As described above, step S2 specifically includes the following steps: Step S2.1: Deploy multiple distributed test terminals at the substation site; Step S2.2: Select one of the multiple distributed test terminals as the test control master, and the rest as test control slaves; Step S2.3: All mobile control terminals and data interaction and storage modules act as PTP clients, accessing the 5G base station via the air interface, and using the accessed 5G base station as a unified secondary time server to achieve microsecond-level time synchronization through the PTP protocol; the mobile control terminals connect to the distributed test terminals via Bluetooth for data interaction.
[0009] As described above, step S3 specifically includes the following process: constructing the fault location in a topology model, and constructing each fault type at each fault location as a test item. The fault types include single-phase ground fault, two-phase short-circuit fault, two-phase ground fault, and three-phase short-circuit fault, and it supports setting the nature of the fault as transient, permanent, or transitional. Constructing a test sequence: The test sequence includes test subsequences for each device under test. Each test subsequence for a device under test includes test items for all fault locations and fault types of all devices under test. When executing the test sequence, the default order is to execute the test subsequences for each device under test in sequence. After completing the test for one device under test, the test for the next device under test will begin.
[0010] As described above, step S4 specifically includes the following steps: Step S4.1: The mobile control terminal receives the test sequence sent by the data interaction and storage module. The test manager selects specific test items, constructs a new test sequence according to the default execution order of the selected test items, and transmits it to the test control host. At the same time, a test start command is sent. Step S4.2: The test control host receives the test items sent by the mobile control terminal, and after receiving the start test command, loads the corresponding primary topology model and topology matrix calculation model according to the test items, and performs parameter instantiation of the primary topology model and numerical instantiation of the topology matrix calculation model to complete the rapid on-site modeling. Each distributed control terminal sets the fault location, fault type, and nature in the topology after parameter instantiation based on the fault location, fault type, and nature in the test project; Step S4.3: Test the topology matrix calculation module in the control host. Based on the collected circuit breaker and disconnector position status and the fault point status set by each mobile control terminal, update the primary topology connection status of the power grid in real time, and calculate the node voltage of all nodes and the branch current of all branches under the current primary topology connection status of the power grid. Step S4.4: The test control host distributes the calculated voltage and current of each node to each test control slave in a time-synchronized manner through the Bluetooth communication module and the mobile control terminal. Step S4.5: When each distributed test terminal connects to the test fiber, it associates the received node voltage and branch current with the SV channel to be output, generates an SV data stream through the SV parsing module and outputs it to the corresponding device under test; at the same time, it simulates the circuit breaker position signal through the GOOSE parsing module and receives the trip and close signals sent by the device under test. Step S4.6: The switch quantity processing unit of the experimental control module in the test control host drives the virtual circuit breaker to change its state according to the received GOOSE signal including trip and close information. If it is a trip signal, the circuit breaker position is changed to open; if it is a close signal, the circuit breaker position is changed to closed. Step S4.7: The switch quantity processing unit of the experimental control module in the test control host feeds back the circuit breaker state change to the topology matrix calculation module; Step S4.8: Test the topology matrix calculation module of the control host to update the primary topology connection status of the power grid in real time, and recalculate the node voltage of all nodes and the branch current of all branches under the current power grid topology status based on the updated primary topology connection status.
[0011] In step 5, after each test item is completed, the GOOSE signal is received through the digital quantity processing unit, and the protection action information or protection action abnormal information is read through the MMS parsing module to obtain the test results of the current test item in real time. When the test results show "protection failure" in the protection action anomaly information of the device under test, the current test item will be repeated a set number of times. If the protection still fails to act after repeated execution, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the protection action delay in the protection action information of the device under test exceeds the threshold in the test results, the current test item will be repeated a set number of times, and the average value of the protection action delay will be recorded. If the average value of the protection action delay still exceeds the threshold, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the test results include a GOOSE signal that blocks the current device under test, the test of the current device under test will be stopped, the test subsequence of the next device under test will be executed, and the test order of the current device under test will be moved to the end until the blocking GOOSE signal is released and then the test will resume.
[0012] A 5G-synchronized distributed power grid simulation test system includes a data interaction and storage module, a model and task construction module, and substations. The model and task construction module is connected to the data interaction and storage module. Both the data interaction and storage module and the substations are connected to the 5G network. The substations are equipped with distributed test terminals and mobile control terminals. The model and task construction module provides a human-machine interface on the main station side, calls the primary equipment model library and interval model library preset by the data interaction and storage module to draw the primary topology model of the power grid and construct test sequences, and uploads the primary topology model and test sequences to the data interaction and storage module. All mobile control terminals and data interaction and storage modules act as PTP clients, accessing 5G base stations via the air interface, and using the accessed 5G base stations as unified secondary time servers to achieve microsecond-level time synchronization through the PTP protocol. The data interaction and storage module receives and stores a topology model and test sequence uploaded by the model and task building module, and forwards the test sequence to the mobile control terminal through the 5G network. The distributed test terminal connects to the device under test to execute the current test item in the test sequence, collect the current test results, and jump to the next test item; The mobile control terminal receives test sequences transmitted from the data interaction and storage module; it also provides a mobile human-computer interaction interface, through which the test sequences and test results are displayed, and the mobile human-computer interaction interface is used to perform rapid on-site modeling of the substation's primary topology based on the test sequences. The rapid on-site modeling includes visual local modifications to the primary topology model, parameter instantiation of the primary topology model, and numerical instantiation of the topology matrix calculation model; and transmits the parameter-instantiated primary topology model and the numerically instantiated topology matrix calculation model to the distributed test terminal.
[0013] As described above, the distributed test terminal includes a human-computer interaction module, an SV parsing module, an MMS parsing module, a GOOSE parsing module, a Bluetooth communication module, and a topology matrix calculation module; The SV parsing module is used to generate SV data and send it to the device under test. The GOOSE parsing module is used to send and receive GOOSE signals, simulate the circuit breaker position, and receive protection trip and close signals. The Bluetooth communication module is used to interact with the mobile control terminal and realize data communication between the test control host and the test control slave in the distributed test terminal through the mobile control terminal and the data interaction and storage module. The topology matrix calculation module is used to update the connection status of the primary topology diagram of the power grid in real time based on the collected position status of circuit breakers, disconnectors, and fault point status, and to call the numerically instantiated topology matrix calculation model corresponding to the primary topology model of the test project to calculate the node voltage of all nodes and the branch current of all branches under the current power grid topology status.
[0014] As mentioned above, the distributed test terminal also includes an experimental control module, which includes a fault simulation control unit, a test sequence execution unit, a switch quantity processing unit, and a data synchronization and distribution unit. The fault simulation control unit is used to set the fault point, fault type, fault nature, and fault duration according to the test item, and output the current fault point status to the topology matrix calculation module; The switching quantity processing unit is used to collect the position status of circuit breakers and disconnectors through the GOOSE parsing module and transmit it to the topology matrix calculation module; at the same time, it receives the protection trip signal from the GOOSE parsing module and drives the virtual circuit breaker to perform opening and closing operations accordingly. The data synchronization and distribution unit is used to receive the node voltage and branch current calculated by the topology matrix calculation module, and distribute the node voltage and branch current to other distributed test terminals in the 5G network as test control slaves through the Bluetooth communication module and the mobile control terminal. When the test sequence execution unit executes the test sequence, the default execution order is to execute each device under test in the order of the test sequence, and after completing the sub-sequence test of one device under test, the test of the next device under test will begin. At the same time, after each test item is completed, the unit receives the GOOSE signal through the switch quantity processing unit, reads the protection action information or protection action abnormal information through the MMS parsing module, obtains the test results of the current test item in real time, and dynamically adjusts the execution order of the test sequence in real time according to the test results.
[0015] The test sequence execution unit adjusts the execution order of the test sequence based on the test results in the following ways: When the test results show "protection failure" in the protection action anomaly information of the device under test, the current test item will be repeated a set number of times. If the protection still fails to act after repeated execution, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the protection action delay in the protection action information of the device under test exceeds the threshold in the test results, the current test item will be repeated a set number of times, and the average value of the protection action delay will be recorded. If the average value of the protection action delay still exceeds the threshold, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the test results include a GOOSE signal that blocks the current device under test, the test of the current device under test will be stopped, the test subsequence of the next device under test will be executed, and the test order of the current device under test will be moved to the end until the blocking GOOSE signal is released and then the test will resume.
[0016] Compared with the prior art, the present invention has the following advantages: (1) Significantly improved modeling efficiency: Based on the interval model library and primary equipment model library preset in the model and task construction module, the present invention constructs a primary topology model and the corresponding topology matrix calculation model. Testers can quickly model the primary topology model built by the model and task construction module at the substation site, and make local modifications through the visual and drag-and-drop topology drawing interface, and complete the instantiation, which greatly shortens the modeling time and lowers the test preparation threshold.
[0017] (2) Based on the 5G network PTP protocol, each distributed test terminal, mobile control terminal and data interaction and storage module uses a unified base station as a secondary time server to achieve microsecond-level time synchronization, ensuring the time consistency of multi-site simulation data output and overcoming the problem of insufficient synchronization accuracy of traditional wireless networks.
[0018] (3) The test sequence execution unit of the distributed test terminal of the present invention can dynamically adjust the execution order of the test sequence in real time according to the test results, and mark the abnormal test device to improve the authenticity and comprehensiveness of the test scenario.
[0019] (4) This invention supports any one distributed test terminal as the host and the rest as slaves. The host is responsible for collecting data, calculating electrical quantities and controlling the test process, while the slaves are responsible for local signal output and acquisition. It supports centralized control and allows flexible on-site networking to adapt to different test scenarios. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the test system of the present invention; Figure 2 This is a schematic diagram of the structure of the distributed test terminal of the test system of the present invention; Figure 3 This is a flowchart of the testing method of the present invention. Detailed Implementation
[0021] To facilitate understanding and implementation of the present invention by those skilled in the art, the present invention will be further described in detail below with reference to embodiments. The embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.
[0022] Example 1: like Figure 1 As shown, a distributed power grid simulation test system based on 5G synchronization includes a data interaction and storage module, a model and task construction module, and a substation. The model and task construction module is connected to the data interaction and storage module. Both the data interaction and storage module and the substation are connected to the 5G network. The substation is equipped with a distributed test terminal and a mobile control terminal. The model and task construction module provides a main-end human-computer interaction interface, calls the primary equipment model library and bay model library preset by the data interaction and storage module to draw the primary topology model of the power grid and construct the test sequence, and uploads the primary topology model and test sequence to the data interaction and storage module; All mobile control terminals and data interaction and storage modules act as PTP clients, accessing 5G base stations via the air interface, and using the accessed 5G base stations as unified secondary time servers to achieve microsecond-level time synchronization through the PTP protocol. This invention is based on the 5G network PTP protocol. Each mobile control terminal and data interaction and storage module uses a unified base station as a secondary time server to achieve microsecond-level time synchronization, ensuring the time consistency of simulation data output from multiple sites and overcoming the problem of insufficient synchronization accuracy in traditional wireless networks. The data interaction and storage module receives and stores a topology model and test sequence uploaded by the model and task building module, and forwards the test sequence to the mobile control terminal via the 5G network; The distributed test terminal connects to the device under test to execute the current test item in the test sequence, collect the current test results, and jump to the next test item; The distributed test terminal includes a human-computer interaction module, an SV parsing module, an MMS parsing module, a GOOSE parsing module, a Bluetooth communication module, a topology matrix calculation module, and an experimental control module; The SV parsing module is used to generate SV data and send it to the device under test; The GOOSE parsing module is used to send and receive GOOSE signals, simulate the circuit breaker position, and receive protection trip and close signals. The Bluetooth communication module is used to interact with the mobile control terminal and realize data communication between the test control host and the test control slave in the distributed test terminal through the mobile control terminal and the data interaction and storage module. The topology matrix calculation module is used to update the connection status of the primary topology diagram of the power grid in real time based on the collected position status of circuit breakers, disconnectors, and fault point status. It also calls the numerically instantiated topology matrix calculation model corresponding to the primary topology model of the test project to calculate the node voltage of all nodes and the branch current of all branches under the current power grid topology status. The experimental control module includes a test sequence execution unit, a switch quantity processing unit, and a data synchronization and distribution unit; The fault simulation control unit is used to set the fault point, fault type, fault nature, and fault duration according to the test items, and outputs the current fault point status to the topology matrix calculation module; The digital quantity processing unit is used to collect the position status of circuit breakers and disconnectors through the GOOSE parsing module and transmit it to the topology matrix calculation module; at the same time, it receives the protection trip signal from the GOOSE parsing module and drives the virtual circuit breaker to perform opening and closing operations accordingly. The data synchronization and distribution unit is used to receive node voltages and branch currents calculated by the topology matrix calculation module, and distributes the node voltages and branch currents to other distributed test terminals in the 5G network as test control slaves via the Bluetooth communication module and the mobile control terminal.
[0023] The mobile control terminal receives test sequences transmitted from the data interaction and storage module; it also provides a mobile human-computer interaction interface, through which the test sequences and test results are displayed, and the mobile human-computer interaction interface is used to perform rapid on-site modeling of the substation's primary topology based on the test sequences. The rapid on-site modeling includes visual local modifications to the primary topology model, parameter instantiation of the primary topology model, and numerical instantiation of the topology matrix calculation model; and transmits the parameter-instantiated primary topology model and the numerically instantiated topology matrix calculation model to the distributed test terminal.
[0024] When the test sequence execution unit executes the test sequence, the default execution order is to execute each device under test in the order of the test sequence. After completing the subsequence test of one device under test, the test of the next device under test is started. At the same time, after the execution of each test item is completed, the unit receives the GOOSE signal through the switch quantity processing unit and reads the protection action information or protection action abnormal information through the MMS parsing module. The unit obtains the test results of the current test item in real time and dynamically adjusts the execution order of each device under test in the test sequence in real time based on the test results.
[0025] Construct a test sequence, which includes test subsequences for each device under test. Each test subsequence for a device under test includes test items for all fault locations and fault types of all corresponding devices under test. When executing the test sequence, the default order is to execute the test subsequences for each device under test in the order of the devices under test. After completing the test for one device under test, the test for the next device under test will begin. As one possible implementation method, the test sequence execution unit dynamically adjusts the execution order of the test sequence in real time according to the test results in the following way: when a test item of the device under test is completed, the test sequence execution unit receives the GOOSE signal through the switch quantity processing unit and reads the protection action information or protection action abnormal information through the MMS parsing module to obtain the test result of the current test item; When the protection action information of the device under test (DUT) in the test results indicates protection failure, the current test item will be repeated once. If the protection failure persists after repetition, the current DUT will be marked as an abnormal DUT, and the test will proceed to the next DUT test subsequence. When the protection action delay in the protection action information of the DUT in the test results exceeds the threshold, the current test item will be repeated three times, and the average protection action delay will be recorded. If the average protection action delay still exceeds the threshold, the current DUT will be marked as an abnormal DUT, and the test will proceed to the next DUT test subsequence. When the test results include a GOOSE signal that blocks the current DUT, the test of the current DUT will be stopped, the test will proceed to the next DUT test subsequence, and the test order of the current DUT will be moved to the end until the GOOSE signal is released before the test can resume.
[0026] The fault simulation control unit supports the simulation of fault types including single-phase ground fault, two-phase short-circuit fault, two-phase ground fault, three-phase short-circuit fault and any combination thereof, and supports the simulation of faults as transient, permanent and transitional.
[0027] Example 2: like Figure 3 As shown, a distributed power grid simulation test method based on 5G synchronization includes the following steps: Step S1: Construct a primary topology model and a topology matrix calculation model of the power grid in the model and task construction module, specifically including the following steps: Step S1.1: The model and task construction module pre-sets a primary equipment model library and a bay model library for the power grid. The primary equipment model library includes primary equipment models of switches, disconnectors, CP, PT, lines, transformers, buses, capacitors, and reactors. The bay model library includes bay models of line bays, transformer bays, and bus bays. Step S1.2: Construct a primary topology diagram including topological connection relationships based on the preset interval model library and primary equipment model library; Preferably, both the main and mobile human-computer interaction interfaces allow for visual drag-and-drop and graphical assembly. Users can drag and drop the required device or interval icons from the model library to the main drawing area (canvas). Both the main and mobile human-computer interaction interfaces provide intelligent snap-in and connection wizards: when a user places the electrical connection point of one device (such as the port of a circuit breaker) close to the connection point of another device, the interface automatically displays snap-in prompts and recommended connection paths. Users can simply click or drag the mouse to complete the drawing of electrical connection lines between devices. The connection line type (such as busbar connection or line connection) is automatically identified by the system or specified by the user. Step S1.3: Configure the topology parameters of a primary topology diagram to obtain a primary topology model: While or after drawing the basic graphic connections, set the general typical values of the parameters of each device in the primary topology diagram by double-clicking the device icon or selecting it from the property panel, and support batch modification. Step S1.4: Perform topology logic verification on the topology model. Topology logic verification includes electrical connectivity check, logic correctness check, and parameter integrity check. The electrical connectivity check is used to confirm that all devices participating in the simulation form a valid electrical network with no isolated nodes (except for power supplies and loads); the logic correctness check is used to confirm whether the relative positional relationships between devices conform to the operating logic of the power system (the relative positional relationship between disconnect switches and circuit breakers); the parameter integrity check is used to prompt devices that have not filled in key parameters.
[0028] Step S1.5: Convert the primary topology model into a topology matrix calculation model; Once the primary topology model has been verified, it can be saved as a custom template and named (e.g., "Typical Connection of 220kV Double Busbar") and added to the primary topology model library. The test control host loads the corresponding primary topology model from the library according to the test item. If the actual primary topology on site is no different from the called primary topology model, only the parameter instantiation of the primary topology model and the numerical instantiation of the topology matrix calculation model need to be performed. If there are differences, local modifications can be made through the mobile human-machine interface of the mobile control terminal, and then the parameter instantiation of the primary topology model and the numerical instantiation of the topology matrix calculation model can be performed again, thus achieving rapid modeling.
[0029] Step S2: Deploy distributed test terminals at the substation site and perform time synchronization, specifically including the following steps: Step S2.1: Deploy multiple distributed test terminals at the substation site; Step S2.2: Select one of the multiple distributed test terminals as the test control host and the rest as test control slaves. The host can collect the data collected by each slave and perform experimental control on each slave after processing. This invention supports any one distributed test terminal as the master, and the rest as slaves. The master is responsible for aggregating data, calculating electrical quantities and controlling the test process, while the slaves are responsible for local signal output and acquisition. It supports centralized control and allows flexible on-site networking to adapt to different test scenarios.
[0030] Step S2.3: All mobile control terminals and data interaction and storage modules act as PTP clients, accessing the 5G base station via the air interface, and using the accessed 5G base station as a unified secondary time server to achieve microsecond-level time synchronization through the PTP protocol; the mobile control terminals connect to the distributed test terminals via Bluetooth for data interaction.
[0031] Step S3: Construct the test sequence, which specifically includes the following steps: Step S4: Load and instantiate the topology model and corresponding topology matrix calculation model based on the current test project. Perform closed-loop simulation test based on the instantiated topology model. This includes the following steps: Step S4.1: The mobile control terminal receives the test sequence distributed by the data interaction and storage module. The test manager selects specific test items, arranges the selected test items into a new test sequence according to the default execution order, transmits it to the test control host, and sends a start test command. Step S4.2: The test control host receives the test items sent by the mobile control terminal, and after receiving the start test command, loads the corresponding primary topology model and topology matrix calculation model according to the test items, and performs parameter instantiation of the primary topology model and numerical instantiation of the topology matrix calculation model to complete the rapid on-site modeling. Each distributed control terminal sets the fault location, fault type, and nature in the topology after parameter instantiation based on the fault location, fault type, and nature in the test project; Step S4.3: Test the topology matrix calculation module in the control host. Based on the collected circuit breaker and disconnector position status and the fault point status set by each mobile control terminal, update the primary topology connection status of the power grid in real time, and calculate the node voltage of all nodes and the branch current of all branches under the current primary topology connection status of the power grid. Step S4.4: The test control host distributes the calculated voltage and current of each node to each test control slave in a time-synchronized manner through the Bluetooth communication module and the mobile control terminal. Step S4.5: When each distributed test terminal connects to the test fiber, it associates the received node voltage and branch current with the SV channel to be output, generates an SV data stream through the SV parsing module and outputs it to the corresponding device under test; at the same time, it simulates the circuit breaker position signal through the GOOSE parsing module and receives the trip and close signals sent by the device under test. Step S4.6: The switch quantity processing unit of the experimental control module in the test control host drives the virtual circuit breaker to change its state according to the received protection trip and close signals. If it is a trip signal, the circuit breaker position is changed to open; if it is a close signal, the circuit breaker position is changed to closed.
[0032] Step S4.7: The switch quantity processing unit of the experimental control module in the test control host feeds back the circuit breaker state change to the topology matrix calculation module; Step S4.8: Test the topology matrix calculation module of the control host to update the primary topology connection status of the power grid in real time, and recalculate the node voltage of all nodes and the branch current of all branches under the current power grid topology status based on the updated primary topology connection status.
[0033] Step S5: The test sequence execution unit of the test control host obtains the test results and executes the next test item of the current device under test according to the default execution order based on the test results, or marks the abnormal device under test according to the test results and executes the test subsequence of the next device under test; until all test items of non-abnormal devices under test in the test sequence have been executed.
[0034] When the protection action information of the device under test (DUT) in the test results indicates protection failure, the current test item will be repeated once. If the protection failure persists after repetition, the current DUT will be marked as an abnormal DUT, and the test will proceed to the next DUT test subsequence. When the protection action delay in the protection action information of the DUT in the test results exceeds the threshold, the current test item will be repeated three times, and the average protection action delay will be recorded. If the average protection action delay still exceeds the threshold, the current DUT will be marked as an abnormal DUT, and the test will proceed to the next DUT test subsequence. When the test results include a GOOSE signal that blocks the current DUT, the test of the current DUT will be stopped, the test will proceed to the next DUT test subsequence, and the test order of the current DUT will be moved to the end until the GOOSE signal is released before resuming the test.
[0035] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0036] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0037] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0038] It should be noted that the embodiments described in this invention are merely illustrative of the spirit of the invention. Those skilled in the art to which this invention pertains can make various modifications or additions to the described embodiments or use similar methods to substitute them, without departing from the spirit of the invention or exceeding the scope defined by the appended claims.
Claims
1. A distributed power grid simulation and testing method based on 5G synchronization, characterized in that, Includes the following steps: Step S1: Construct a primary topology model and a topology matrix calculation model of the power grid in the model and task construction module; Step S2: Deploy distributed test terminals at the substation site and synchronize their time. Step S3: Construct the test sequence; Step S4: Load the topology model and the corresponding topology matrix calculation model according to the current test project and instantiate them. Perform closed-loop simulation test based on the instantiated topology model. Step S5: The test control host obtains the test results and executes the next test item of the current device under test according to the default execution order based on the test results, or marks the abnormal device under test according to the test results and executes the test subsequence of the next device under test; until all test items of non-abnormal devices under test in the test sequence have been executed.
2. The distributed power grid simulation test method based on 5G synchronization according to claim 1, characterized in that, Step 1 specifically includes the following steps: Step S1.1: The model and task construction module pre-sets a primary equipment model library and a bay model library for the power grid. The primary equipment model library includes primary equipment models of switches, disconnectors, CP, PT, lines, transformers, buses, capacitors, and reactors. The bay model library includes bay models of line bays, transformer bays, and bus bays. Step S1.2: Construct a primary topology diagram including topological connection relationships based on the preset interval model library and primary equipment model library; Step S1.3: Configure the topology parameters of the primary topology graph to obtain the primary topology model; Step S1.4: Perform topology logic verification on the topology model. Topology logic verification includes electrical connectivity check, logic correctness check, and parameter integrity check. Step S1.5: Convert the primary topology model into a topology matrix calculation model; The test control host loads the corresponding primary topology model according to the test project, and instantiates the parameters of the primary topology model through the human-computer interaction interface of the test control host; if the primary topology model differs from the actual one, the primary topology model can be visualized and partially modified through the human-computer interaction interface of the test control host.
3. The distributed power grid simulation test method based on 5G synchronization according to claim 2, characterized in that, Step S2 specifically includes the following steps: Step S2.1: Deploy multiple distributed test terminals at the substation site; Step S2.2: Select one of the multiple distributed test terminals as the test control master, and the rest as test control slaves; Step S2.3: All mobile control terminals and data interaction and storage modules act as PTP clients, accessing the 5G base station via the air interface, and using the accessed 5G base station as a unified secondary time server to achieve microsecond-level time synchronization through the PTP protocol; the mobile control terminals connect to the distributed test terminals via Bluetooth for data interaction.
4. The distributed power grid simulation test method based on 5G synchronization according to claim 3, characterized in that, The specific steps S3 are as follows The process includes the following steps: constructing fault location locations in a topology model, and constructing a test project for each fault type at each fault location. The fault types include single-phase ground fault, two-phase short-circuit fault, two-phase ground fault, and three-phase short-circuit fault, and it supports setting the nature of the fault as transient, permanent, or transitional. Constructing a test sequence: The test sequence includes test subsequences for each device under test. Each test subsequence for a device under test includes test items for all fault locations and fault types of all devices under test. When executing the test sequence, the default order is to execute the test subsequences for each device under test in sequence. After completing the test for one device under test, the test for the next device under test will begin.
5. The distributed power grid simulation test method based on 5G synchronization according to claim 4, characterized in that, Step S4 specifically includes the following steps: Step S4.1: The mobile control terminal receives the test sequence distributed by the data interaction and storage module. The test manager selects specific test items, arranges the selected test items into a new test sequence according to the default execution order, and transmits it to the test control host. At the same time, a test start command is sent. Step S4.2: The test control host receives the test items sent by the mobile control terminal, and after receiving the start test command, loads the corresponding primary topology model and topology matrix calculation model according to the test items, and performs parameter instantiation of the primary topology model and numerical instantiation of the topology matrix calculation model to complete the rapid on-site modeling. Each distributed control terminal sets the fault location, fault type, and nature in the topology after parameter instantiation based on the fault location, fault type, and nature in the test project; Step S4.3: Test the topology matrix calculation module in the control host. Based on the collected circuit breaker and disconnector position status and the fault point status set by each mobile control terminal, update the primary topology connection status of the power grid in real time, and calculate the node voltage of all nodes and the branch current of all branches under the current primary topology connection status of the power grid. Step S4.4: The test control host connects to the mobile control terminal via Bluetooth communication module and distributes the calculated voltage and current of each node to each test control slave in a time-synchronized manner. Step S4.5: When each distributed test terminal connects to the test fiber, it associates the received node voltage and branch current with the SV channel to be output, generates an SV data stream through the SV parsing module and outputs it to the corresponding device under test; at the same time, it simulates the circuit breaker position signal through the GOOSE parsing module and receives the trip and close signals sent by the device under test. Step S4.6: The switch quantity processing unit of the experimental control module in the test control host drives the virtual circuit breaker to change its state according to the received GOOSE signal including trip and close information. If it is a trip signal, the circuit breaker position is changed to open; if it is a close signal, the circuit breaker position is changed to closed. Step S4.7: The switch quantity processing unit of the experimental control module in the test control host feeds back the circuit breaker state change to the topology matrix calculation module; Step S4.8: Test the topology matrix calculation module of the control host to update the primary topology connection status of the power grid in real time, and recalculate the node voltage of all nodes and the branch current of all branches under the current power grid topology status based on the updated primary topology connection status.
6. The distributed power grid simulation test method based on 5G synchronization according to claim 5, characterized in that, In step 5, after each test item is completed, the GOOSE signal is received through the digital quantity processing unit, and the protection action information or protection action abnormal information is read through the MMS parsing module to obtain the test results of the current test item in real time. When the test results show "protection failure" in the protection action anomaly information of the device under test, the current test item will be repeated a set number of times. If the protection still fails to act after repeated execution, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the protection action delay in the protection action information of the device under test exceeds the threshold in the test results, the current test item will be repeated a set number of times, and the average value of the protection action delay will be recorded. If the average value of the protection action delay still exceeds the threshold, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the test results include a GOOSE signal that blocks the current device under test, the test of the current device under test will be stopped, the test subsequence of the next device under test will be executed, and the test order of the current device under test will be moved to the end until the blocking GOOSE signal is released and then the test will resume.
7. A distributed power grid simulation test system based on 5G synchronization, comprising a data interaction and storage module, a model and task construction module, and a substation, wherein the model and task construction module is connected to the data interaction and storage module, and both the data interaction and storage module and the substation are connected to a 5G network, and the substation is equipped with a distributed test terminal and a mobile control terminal, characterized in that, The model and task construction module provides a human-computer interaction interface on the main station, calls the primary equipment model library and bay model library preset by the data interaction and storage module to draw the primary topology model of the power grid and construct the test sequence, and uploads the primary topology model and test sequence to the data interaction and storage module; All mobile control terminals and data interaction and storage modules act as PTP clients, accessing 5G base stations via the air interface, and using the accessed 5G base stations as unified secondary time servers to achieve microsecond-level time synchronization through the PTP protocol. The data interaction and storage module receives and stores a topology model and test sequence uploaded by the model and task construction module, and forwards the test sequence to the mobile control terminal through the 5G network. The distributed test terminal connects to the device under test to execute the current test item in the test sequence, collect the current test results, and jump to the next test item; The mobile control terminal receives the test sequence transmitted from the data interaction and storage module; It also provides a mobile interactive interface, through which test sequences and test results are displayed. It also allows for rapid on-site modeling of the substation's primary topology based on the test sequence. The rapid on-site modeling includes visual local modifications to the primary topology model, parameter instantiation of the primary topology model, and numerical instantiation of the topology matrix calculation model. The parameter-instantiated primary topology model and the numerically instantiated topology matrix calculation model are then transmitted to the distributed test terminal.
8. The distributed power grid simulation test system based on 5G synchronization according to claim 7, characterized in that, The distributed test terminal includes a human-computer interaction module, an SV parsing module, an MMS parsing module, a GOOSE parsing module, a Bluetooth communication module, and a topology matrix calculation module; The SV parsing module is used to generate SV data and send it to the device under test; The GOOSE parsing module is used to send and receive GOOSE signals, simulate the circuit breaker position, and receive protection trip and close signals. The Bluetooth communication module is used to interact with the mobile control terminal and realize data communication between the test control host and the test control slave in the distributed test terminal through the mobile control terminal and the data interaction and storage module. The topology matrix calculation module is used to update the connection status of the primary topology diagram of the power grid in real time based on the collected position status of circuit breakers, disconnectors, and fault point status, and to call the numerically instantiated topology matrix calculation model corresponding to the primary topology model of the test project to calculate the node voltage of all nodes and the branch current of all branches under the current power grid topology status.
9. The distributed power grid simulation test system based on 5G synchronization according to claim 8, characterized in that, The distributed test terminal also includes an experimental control module, which includes a fault simulation control unit, a test sequence execution unit, a switch quantity processing unit, and a data synchronization and distribution unit. The fault simulation control unit is used to set the fault point, fault type, fault nature, and fault duration according to the test item, and output the current fault point status to the topology matrix calculation module; The switching quantity processing unit is used to collect the position status of circuit breakers and disconnectors through the GOOSE parsing module and transmit it to the topology matrix calculation module; at the same time, it receives the protection trip signal from the GOOSE parsing module and drives the virtual circuit breaker to perform opening and closing operations accordingly. The data synchronization and distribution unit is used to receive the node voltage and branch current calculated by the topology matrix calculation module, and distribute the node voltage and branch current to other distributed test terminals in the 5G network as test control slaves through the Bluetooth communication module and the mobile control terminal. When the test sequence execution unit executes the test sequence, the default execution order is to execute each device under test in the order of the test sequence, and after completing the sub-sequence test of one device under test, the test of the next device under test will begin. At the same time, after each test item is completed, the unit receives the GOOSE signal through the switch quantity processing unit, reads the protection action information or protection action abnormal information through the MMS parsing module, obtains the test results of the current test item in real time, and dynamically adjusts the execution order of the test sequence in real time according to the test results.
10. The distributed power grid simulation test system based on 5G synchronization according to claim 9, characterized in that, The test sequence execution unit adjusts the execution order of the test sequence based on the test results in the following ways: When the test results show "protection failure" in the protection action anomaly information of the device under test, the current test item will be repeated a set number of times. If the protection still fails to act after repeated execution, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the protection action delay in the protection action information of the device under test exceeds the threshold in the test results, the current test item will be repeated a set number of times, and the average value of the protection action delay will be recorded. If the average value of the protection action delay still exceeds the threshold, the current device under test will be marked as an abnormal device under test, and then the test subsequence of the next device under test will be executed. When the test results include a GOOSE signal that blocks the current device under test, the test of the current device under test will be stopped, the test subsequence of the next device under test will be executed, and the test order of the current device under test will be moved to the end until the blocking GOOSE signal is released and then the test will resume.