Power system simulation
By generating a simulated power system corresponding to the real power system in a simulation environment, combining a physical simulation engine and a logic simulation engine, the problem of inaccurate simulation of the power system in the existing technology is solved, and a comprehensive simulation simulation and fault detection of the power system is realized.
Patent Information
- Application Number
- PCT/IB2024/062852
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-11
- Filing Date
- 2024-12-19
- Publication Date
- 2025-07-17
AI Technical Summary
The existing power system simulation solutions cannot accurately simulate the operating status of the power system, resulting in the inability to detect potential faults and locate the causes of faults in a timely manner.
By generating a simulated power system corresponding to the real power system in a simulation environment, combining a physical simulation engine and a logic simulation engine to simulate the power supply link and comprehensive guarantee logic of the power system, a comprehensive simulation of the power system is achieved.
It can accurately simulate the operating status of the power system, promptly discover potential faults and locate the cause of the fault, and improve the stability and reliability of the power system.
Smart Images

Figure IB2024062852_17072025_PF_FP_ABST
Abstract
Description
Technical Field of Power System Simulation
[0001] This application relates to the field of computer application technologies, and particularly to power system simulation. Background Art
[0002] In the digital age, data centers, as carriers of cloud services, are very important infrastructure. Among them, the power system is an important component system of the data center. Once a power system failure occurs, network devices such as powered servers and switches will be affected, and in severe cases, it may even cause device downtime.
[0003] By simulating the power system, potential fault risks that may exist in the power system can be detected in a timely manner, and the cause of the fault can also be located after the power system fails.
[0004] The current power system simulation solution mainly analyzes the on / off of the power supply link in the power system based on the upstream and downstream relationships between the devices in the power system to determine whether each electrical device is energized. However, this simulation method cannot accurately simulate the operating state of the power system. Summary of the Invention
[0005] Embodiments of this application provide a power system simulation method, device, and storage medium to accurately simulate the operating state of the power system.
[0006] In a first aspect, embodiments of this application provide a power system simulation method. The method includes: generating a simulation power system corresponding to the real power system in a simulation environment. The simulation power system includes device models corresponding to each electrical device in the real power system, and the connection relationship between the device models is determined according to the device topology relationship of the real power system; obtaining the comprehensive protection logic models corresponding to different device models in the simulation power system. The comprehensive protection logic model is used to describe the simulation operations that need to be executed when the operating state of the corresponding device model undergoes a set change; in a first simulation engine, executing a first simulation operation and determining the operating state of the simulation power system after executing the first simulation operation; in a second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to the target device model is satisfied, input the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine; in the first simulation engine, executing the second simulation operation and determining the operating state of the simulation power system after executing the second simulation operation.
[0007] In a second aspect, an embodiment of the present application provides a power system simulation device, which includes: a generation module, configured to generate a simulated power system corresponding to an actual power system in a simulation environment, where the simulated power system includes device models corresponding to electrical devices in the actual power system, and the connection relationships between the device models are determined according to the device topology relationship of the actual power system; an acquisition module, configured to acquire comprehensive protection logic models corresponding to different device models in the simulated power system, where the comprehensive protection logic models are used to describe simulation operations to be executed when a set change occurs in the operating state of the corresponding device models; an execution module, configured to execute a first simulation operation in a first simulation engine and determine the operating state of the simulated power system after executing the first simulation operation; and, in a second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to a target device model is satisfied, input the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine, execute the second simulation operation in the first simulation engine, and determine the operating state of the simulated power system after executing the second simulation operation.
[0008] In a third aspect, an embodiment of the present application provides a power system simulation method, which includes: receiving a request triggered by a client device by invoking a power system simulation service provided by the cloud, where the request includes description information of electrical devices in the actual power system and the device topology relationship; generating a simulated power system corresponding to the actual power system in a simulation environment, where the simulated power system includes device models corresponding to electrical devices in the actual power system, and the connection relationships between the device models are determined according to the device topology relationship of the actual power system; acquiring comprehensive protection logic models corresponding to different device models in the simulated power system, where the comprehensive protection logic models are used to describe simulation operations to be executed when a set change occurs in the operating state of the corresponding device models; executing a first simulation operation in a first simulation engine and determining the operating state of the simulated power system after executing the first simulation operation; in a second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to a target device model is satisfied, input the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine; and, in the first simulation engine, execute the second simulation operation and determine the operating state of the simulated power system after executing the second simulation operation.
[0009] Fourth aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor, and a communication interface; wherein, an executable code is stored on the memory, and when the executable code is executed by the processor, the processor can at least implement the power system simulation method as described in the first aspect or the third aspect.
[0010] Fifth aspect, an embodiment of the present application provides a non-transitory machine-readable storage medium, on which an executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor can at least implement the power system simulation method as described in the first aspect or the third aspect.
[0011] In the power system simulation solution provided by the embodiments of the present application, in order to be able to simulate a power system, it is first necessary to generate a simulation power system corresponding to the real power system in a simulation environment. The simulation power system includes device models corresponding to each electrical device in the real power system, and the connection relationships between the device models are determined according to the device topology relationship of the real power system. By obtaining the comprehensive protection logic models corresponding to different device models in the simulation power system, the simulation of the comprehensive protection logic in the power system can be realized. In the simulation environment, a first simulation engine for simulating the physical operation mechanism of the power system and a second simulation engine for simulating the operation mechanism of the comprehensive protection logic are provided. Specifically, the first simulation operation input by the user is executed by the first simulation engine to obtain the operating state of the simulation power system after executing the first simulation operation. If the second simulation engine determines that the comprehensive protection logic model corresponding to the target device model is satisfied according to the operating state of the simulation power system at this time, the second simulation operation included in the comprehensive protection logic model corresponding to the target device model is input to the first simulation engine to execute the second simulation operation, and the operating state of the simulation power system after executing the second simulation operation is obtained. In the embodiments of the present application, when executing the simulation operation, the change in the operating state of the simulation power system after each execution of the simulation operation is considered, and it can be determined whether to trigger a certain comprehensive protection logic model based on the change in the operating state. If the comprehensive protection logic model is triggered, the execution of the comprehensive protection logic in the power system can be simulated, and then the operating state of the power system can be accurately simulated. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0013] FIG. 1 is a schematic diagram of a hardware execution environment of a power system simulation method provided by an embodiment of the present application;
[0014] FIG. 2 is a schematic diagram of a cloud computing environment of a power system simulation method provided by an embodiment of the present application;
[0015] FIG. 3 is an application schematic diagram of a power system simulation method provided by an embodiment of the present application;
[0016] FIG. 4 is a flowchart of a power system simulation method provided by an embodiment of the present application;
[0017] FIG. 5a is a power supply example diagram under a normal power supply state provided by an embodiment of the present application;
[0018] FIG. 5b is a power supply example diagram under an accident occurrence state provided by an embodiment of the present application;
[0019] FIG. 5c is a power supply example diagram of automatic action under an accident occurrence state provided by an embodiment of the present application;
[0020] FIG. 6 is a schematic diagram of a power supply path simulation provided by an embodiment of the present application;
[0021] FIG. 7 is a schematic diagram of an actual power simulation provided by an embodiment of the present application;
[0022] FIG. 8 is another flowchart of a power system simulation method provided by an embodiment of the present application;
[0023] FIG. 9 is a schematic diagram of a simulation operation based on a time series provided by an embodiment of the present application;
[0024] FIG. 10 is another flowchart of a power system simulation method provided by an embodiment of the present application;
[0025] FIG. 11 is a schematic diagram of the structure of a power system simulation device provided by an embodiment of the present application;
[0026] FIG. 12 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed Description
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0028] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0029] The following will make a detailed description of some embodiments of the present application with reference to the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step timings in the following method embodiments are only examples and are not strictly limited.
[0030] First, an explanation will be given to the terms or concepts involved in the embodiments of the present application.
[0031] Integrated protection logic: A function that protects against abnormal conditions (such as circuit voltage loss, short circuit, open circuit, phase loss, etc.) in the power system circuit. For example, after an abnormal condition occurs, some power distribution cabinets will automatically perform certain actions to offset the impact of the abnormal condition and ensure the normal power supply of the power system.
[0032] HVDC: The full name is High Voltage Direct Current, which is a high-voltage direct current power supply for data centers that inputs alternating current and outputs direct current.
[0033] UPS: The full name is Uninterruptible Power Supply, which is an uninterruptible power supply for data centers with both input and output being alternating current.
[0034] The power system simulation solution can analyze the on-off of the power supply link according to the upstream and downstream connection relationships between the devices in the power system to determine whether the electrical equipment is energized. In practical applications, a large number of redundant standby electrical equipment can be used in the power system, and the use of these redundant standby electrical equipment is controlled through the integrated protection logic. The technical solution provided by the present application avoids simply or singly providing the on-off simulation of the power supply link, and also combines the simulation of the integrated protection logic, thereby accurately simulating the operating state of the power system. That is, the technical solution provided by the present application not only simulates the power supply path of the power system, but also can simulate the integrated protection logic, so as to more comprehensively and accurately simulate the operating state of the power system.
[0035] The power system simulation solution provided by the embodiments of the present application will be introduced and described below.
[0036] FIG. 1 is a schematic diagram of the hardware execution environment of a power system simulation method provided by an embodiment of the present application. As shown in FIG. 1, the hardware execution environment of the power system simulation method may be composed of a client device 101 and / or a server device 102, and the client device 101 is communicatively connected to the server device 102.
[0037] The server device 102 may be a cloud server of a cloud service provider.
[0038] The client device 101 may include some sensing devices, detection devices, and management terminals located in the data center. The management terminal may be, for example, a tablet computer, a PC, etc. The sensing devices and detection devices may be used to detect the operating states of various electrical devices in the real power system, such as switch states, actual power, etc.
[0039] Thus, optionally, the execution process of the above power system simulation method may be: the user sends the following information to the server device 102 through the client device 101 (such as the management terminal): the description information of various electrical devices in the real power system, the device topology relationship, and the comprehensive protection logic model. Based on this information, the server device 102 may generate a simulation power system corresponding to the real power system in the simulation environment, and then perform relevant simulation operations in the simulation power system based on the simulation method provided by the embodiments of the present application to obtain simulation results.
[0040] In practical applications, the above server device 102 may be a cloud server maintained by a cloud service provider, which is called a computing node. In the cloud computing environment shown in FIG. 2, several (201-1, 201-2,... shown in FIG. 2) computing nodes (cloud servers) may be distributed, and each computing node has processing resources such as computing and storage. In the cloud computing environment, a certain service may be provided by organizing multiple computing nodes. Of course, a computing node may also provide one or more services, such as service A, service B, service C, and service D shown in FIG. 2. The service may be provided in the cloud computing environment by providing a service interface externally, and the client device calls the service interface to use the corresponding service. The service interface includes forms such as a Software Development Kit (SDK) and an Application Programming Interface (API).
[0041] The above services are deployed according to various virtualization technologies supported by the cloud computing environment, such as virtualization technologies based on virtual machines and containers. Taking the virtualization technology based on containers as an example, several containers corresponding to a service can be assembled into a container group (pod). For example, service B shown in Figure 2 can be configured with one or more pods, and each pod can include a proxy and one or more containers. One or more containers in the pod are used to process requests related to one or more corresponding functions of the service, and the proxy in the pod is used to control network functions related to the service, such as routing, load balancing, etc.
[0042] During operation, when executing requests from client devices, it may be necessary to call one or more services in the cloud computing environment. When executing one or more functions of a service, it may be necessary to call one or more functions of another service. As shown in Figure 2, after service A receives a request sent by a client device, it can call service B, and service B can request service D to execute one or more functions.
[0043] Under the above cloud computing environment, the embodiment of the present application provides an application schematic diagram of a power system simulation method as shown in Figure 3.
[0044] In Figure 3, a power system simulation service and corresponding service interfaces are provided in the cloud computing environment. The client device calls the service interface to trigger a request to the power system simulation service. The request includes description information of each electrical device in the real power system and the device topology relationship. In response to the request, the processing resources in the computing node where the power system simulation service is located are used to complete the simulation of the power system, and the simulation result is fed back to the client device. Among them, as shown in Figure 3, generally speaking, the simulation process of the computing node involves the following processing procedures.
[0045]
[0046] K establishes a physical model. The modeling of the physical model mainly involves building a simulation power system in the simulation environment that is consistent with the real power system. Specifically, it involves the creation of device models (which can also be called device simulation models) corresponding to real electrical devices and the creation of the upstream and downstream connection relationship models between devices. Among them, the upstream and downstream connection relationships between different device models in the simulation power system are determined based on the topological relationships between the corresponding electrical devices in the real power system. Moreover, in the simulation power system, the electrical devices in the real power system are abstracted into device models that support some simulation operations and the monitoring of certain operating states. That is to say, a set of simulation operations that can be executed by the physical simulation engine and the operating states that can be monitored by the logical simulation engine are bound to the device models.
[0047] 2. Determine the initial operating state of the physical model. The operating state information of electrical devices in the real power system, such as switch states and power, is collected through some detection and sensing devices deployed in the data center, and the operating state information of each electrical device collected at a certain moment is used to perform the initialization assignment process of the operating state of the above physical model (i.e., the corresponding device models in the simulation power system).
[0048] 3. Obtain the integrated protection logic model. The various integrated protection logics in the real power system are abstracted into a data structure called the integrated protection logic model, which consists of a condition strategy and an action strategy. Among them, the condition strategy is used to monitor the occurrence of unexpected situations (such as monitoring that the change in the operating state of a certain device model conforms to a certain integrated protection logic model), and the action strategy is used to automatically execute a certain action to offset the impact brought by the unexpected situation.
[0049] 4. Operation of the physical simulation engine. The physical simulation engine is used to simulate the physical operating mechanism of the power system. It executes a certain simulation operation input by the user and determines the operating state of the power system after the execution of the simulation operation, such as including the on / off change of the power supply link and the power of the device model.
[0050] 5. Operation of the logical simulation engine. The logical simulation engine is used to simulate the logical operating mechanism of the power system. By continuously monitoring the change in the operating state of the power system output by the physical simulation engine and combining the input integrated protection logic model, it determines whether to trigger a certain integrated protection logic model and thus needs to execute a certain simulation operation determined based on the integrated protection logic model (i.e., the action in the action strategy). If necessary, the action is input to the physical simulation engine, thus realizing the closed-loop linkage with the physical simulation engine.
[0051] 6. Analysis of simulation results. Based on the power system operation states obtained by the physical simulation engine for different input simulation operations, simulation result outputs in multiple dimensions can be obtained. For example, through the changes in the power supply paths under different simulation operations, equipment power-off information, battery discharge information, etc. in the power system can be obtained, and through the simulation results of the power of each device under different simulation operations, the power level conditions of the electrical devices in the power system can be obtained. Further, the possible safety risk information in the power system can be analyzed and obtained.
[0052] The following will introduce in detail the execution process of the power system simulation method provided by the embodiments of the present application in conjunction with the accompanying drawings. This power system simulation method can be executed either by the above-mentioned client device or by the computing nodes in the above-mentioned cloud computing environment.
[0053] FIG. 4 is a flowchart of a power system simulation method provided by an embodiment of the present application. As shown in FIG. 4, the method includes the following steps 401 to 405.
[0054] 401. Generate a simulated power system corresponding to the real power system in the simulation environment. The simulated power system includes device models corresponding to each electrical device in the real power system, and the connection relationships between the device models are determined according to the device topology relationship of the real power system.
[0055] 402. Obtain the comprehensive protection logic models corresponding to different device models in the simulated power system. The comprehensive protection logic models are used to describe the simulation operations that need to be executed when the operating states of the corresponding device models change by a set amount.
[0056] 403. In the first simulation engine, execute the first simulation operation and determine the operating state of the simulated power system after executing the first simulation operation.
[0057] 404. In the second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to the target device model is satisfied, then input the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine
[0058] 405. In the first simulation engine, execute the second simulation operation and determine the operating state of the simulated power system after executing the second simulation operation.
[0059] The real power system in the data center contains multiple electrical devices, which are electrically connected by cables. Electrical devices include, for example, mains switches, transformers, uninterruptible power supplies, air conditioners, battery packs, etc. The real power system of the data center is mainly used to supply power to servers and other network devices. Therefore, to simulate the power system, it is necessary to first model multiple electrical devices and the connection relationships between them, that is, to establish a simulated power system, which is also to establish a physical model. Specifically, according to the device topology of the real power system, the upstream and downstream connection relationships of each electrical device can be analyzed and stored in a structured manner. In addition, it is necessary to generate device models corresponding to each electrical device in the simulation environment (such as 3D models with device identifiers). Based on the generated device models and the connection relationship information between the stored device models, the physical model can be established.
[0060] In addition, in order to be able to perform simulation operations on the device models in the simulation environment and observe the changes in the operating states of the device models after the simulation operations are executed, after generating the device models, a set of simulation operations that can be executed by the first simulation engine (the physical simulation engine mentioned above) and the operating states that can be monitored by the second simulation engine (the logical simulation engine mentioned above) can be bound to the device models.
[0061] For ease of understanding, the following provides a specific example table 1 of a physical model containing multiple device models:
[0062] As shown in Table 1, the simulated power system contains two device models, a switch (ordinary switch) and a mains switch. The set of bound simulation operations includes opening, closing, loss of voltage (only for the mains switch), and presence of voltage (only for the mains switch). The operating states that can be monitored include the circuit breaker state and the energized state. The simulation operations supported by other device models and the operating states that can be monitored are shown in Table 1.
[0063] After the simulated power system is established, it provides the basis for simulating the real power system. After that, the operating states of each electrical device at the target moment in the real power system are collected, and based on the operating states of each electrical device at the target moment, the operating state initialization process is performed on the corresponding device models in the simulated power system.
[0064] In addition, it is also necessary to obtain the integrated protection logic models corresponding to different device models in the simulated power system. It should be understood that a large number of redundant standby devices are applied in the real power system, and these redundant standby devices are automatically controlled by the integrated protection logic to be put into use. For example, there is a mains power supply and a battery pack, and when the mains power supply is abnormal, it can be switched to use the battery pack for power supply. In the embodiments of the present application, by modeling the integrated protection logic in the real power system, that is, establishing an integrated protection logic model for describing the simulation operations to be performed when the operating state of the device model changes set, so as to more accurately simulate the change of the operating state of the power system in the simulation process. It should be noted that the essence of the integrated protection logic is to monitor the occurrence of unexpected situations, and automatically execute corresponding actions after the unexpected situations occur to offset the impact brought by the unexpected situations. Therefore, the integrated protection logic can be abstracted into a data structure composed of a conditional policy and an action policy. Among them, the conditional policy is used to monitor unexpected situations, that is, to monitor a certain change in the operating state of a certain device model, and the action policy is used to automatically execute corresponding actions after the unexpected situation occurs.
[0065] Regarding the integrated protection logic, it can be understood with reference to FIGS. 5a-5c. As shown in FIG. 5a, redundant mains cabinets A and B are provided, and there is a switch named medium-voltage bus tie between the two mains power supplies. This switch is open during normal power supply, that is, the two mains cabinets supply power to the loads connected to them respectively: mains cabinet A supplies power to load A, and mains cabinet B supplies power to load B. As shown in FIG. 5b, at a certain moment, mains cabinet A loses power. When it is monitored that mains cabinet A loses power, as shown in FIG. 5c, at this time this switch will automatically close, introduce the electrical signal output by the non-powered mains cabinet B to load A, and supply power to it to eliminate the impact of mains cabinet A losing power. In FIGS. 5a-5c, the shaded boxes represent powered, the blank boxes represent power-off, and the dotted lines represent power supply lines.
[0066] In the above example scenario, an integrated protection logic model composed of the following conditional policy and action policy can be obtained:
[0067] After generating the simulated power system and obtaining the integrated protection logic model, the power system simulation can be carried out through the first simulation engine and the second simulation engine.
[0068] Specifically, the user can input a first simulation operation into the first simulation engine. The first simulation engine executes the first simulation operation and determines the operating state of the simulated power system after executing the first simulation operation. The second simulation engine monitors the operating state of the simulated power system at this time, including the operating states of each device model after the first simulation operation. If it is found that the change in the operating state of a certain target device model (the change in the operating state of the target device before and after the first simulation operation) meets the integrated protection logic model corresponding to the target device model, that is, meets the conditional strategy in the integrated protection logic model, then the corresponding action strategy is used as the second simulation operation and input into the first simulation engine for execution, and then the operating state of the simulated power system after the second simulation operation is obtained.
[0069] For example, in the previous example, the first simulation operation is the opening operation of the medium-voltage bus-tie switch. After the first simulation engine executes the first simulation operation, it determines that the operating state of the utility cabinet A is out of voltage (i.e., power failure). The second simulation engine monitors that the operating state of the utility cabinet A changes from having voltage (i.e., powered on) to out of voltage (i.e., power failure), which meets the conditional strategy of the integrated protection logic model in the previous example. Then, the corresponding action strategy "open the utility cabinet A and close the medium-voltage bus-tie switch" is used as the second simulation operation and input into the first simulation engine. Thus, the first simulation engine executes the second simulation operation and determines the operating state of the simulated power system after executing the second simulation operation.
[0070] In summary, in the power system simulation method provided by the embodiments of the present application, during the process of simulating the power system, the integrated protection logic model is introduced. Through the closed-loop linkage of the physical simulation engine and the logical simulation engine, the simulation of the power system can be completed and accurately realized, and more accurate simulation results can be obtained.
[0071] In the embodiments of the present application, the first simulation engine determines the operating state of the simulated power system after executing the first simulation operation based on the input first simulation operation, including: determining multiple power supply paths existing in the simulated power system after executing the first simulation operation; respectively determining the actual power corresponding to the device models included in the multiple power supply paths.
[0072] That is to say, the operating state of the simulated power system can be represented by the simulation results of the power supply paths and the simulation results of the actual power. After the first simulation engine executes the first simulation operation, it determines the energization status of each device model through the simulation of the power supply paths, thereby determining multiple power supply paths currently existing in the simulated power system, and then determining the actual power of each device model on each power supply path.
[0073] Optionally, determine multiple power supply paths existing in the simulated power system after performing the first simulation operation, including:
[0074] Determine the leaf device model and the root device model in the simulated power system. The leaf device model refers to a device model that has no other device models connected downstream, and the root device model refers to a device model that has no other device models connected upstream;
[0075] Based on the connection relationship between different device models in the simulated power system, perform a depth-first traversal from the leaf device model to the root device model to determine whether there is a power supply path between the leaf device model and the root device model according to the operating state of the traversed device models. Among them, if there is a power supply path between the leaf device model and the root device model, all device models on the power supply path are in the energized state.
[0076] Specifically, based on the upstream and downstream connection relationship of each device model in the simulated power system, start from the leaf device model and perform a depth-first traversal upstream until reaching the root device model. During the traversal process, determine whether to terminate the traversal according to the operating state of the device model. For example, if the operating state of the device model is switch off, HVDC shutdown, etc., then terminate the traversal of the current link. The traversal that reaches the root device model without being terminated is regarded as a power supply path. In this way, all power supply paths in the simulated power system can be found. In the simulated power system, the root device model is generally a power supply device such as a utility power supply or a battery pack, and the leaf device model is generally a load device, such as an air conditioner, a power distribution unit (PDU), etc., but not limited to this.
[0077] For ease of understanding, the process of determining multiple power supply paths will be specifically described below with reference to FIG. 6.
[0078] In FIG. 6, the PDU is the leaf device model, and the utility power inlet cabinet and the battery pack are the root device models. In FIG. 6, it is assumed that the switch cabinet 9 is currently de-energized, and other device models are energized. Based on this, during the process of performing a depth-first traversal from the leaf device model PDU to the root device model, combined with the current operating state of each traversed device model, it is finally determined that there are three power supply paths and one open circuit. Among them, the three power supply paths are respectively: PDU1 - row head cabinet 2 - HVDC3 - battery pack 4; PDU1 - row head cabinet 2 - HVDC3 - battery pack 5; PDU1 - Header Cabinet 2 - HVDC 3 - Switch Cabinet 6 - Switch Cabinet 8 - Transformer 10 - Mains Incoming Cabinet 12.
[0079] And one circuit break is: PDU1 - Header Cabinet 2 - HVDC 3 - Switch Cabinet 7 - Switch Cabinet 9 - Transformer 11 - Mains Incoming Cabinet 13.
[0080] After determining the above - mentioned multiple power supply paths, respectively determine the actual power corresponding to the device models included in the multiple power supply paths, which is achieved through the following steps:
[0081] Respectively determine the leaf device models included in the multiple power supply paths. The leaf device model refers to a device model that has no other device models connected downstream.
[0082] Read the actual power of the electrical equipment corresponding to the leaf device model from the real - power system as the actual power corresponding to the leaf device model.
[0083] According to the total number of occurrences of the leaf device model in the multiple power supply paths, determine the apportioned power of the leaf device model in the target power supply path. The target power supply path refers to any power supply path that includes the leaf device model.
[0084] According to the apportioned power of the leaf device model in the target power supply path, determine the actual power of each device model on the target power supply path. Among them, the actual power corresponding to the root device model included in the multiple power supply paths is obtained by accumulating the actual power of the device models connected downstream of the root device model. The root device model refers to a device model that has no other device models connected upstream.
[0085] For the sake of easy understanding, the process of determining the actual power corresponding to the device model will be specifically described below with reference to Figure 7.
[0086] In Figure 7, a total of four power supply paths are schematically shown. Among them, PDU1 and Air - conditioner N12 are leaf device models, and Mains Incoming Cabinet 10 and Mains Incoming Cabinet 11 are root device models. The four power supply paths are as follows: One, PDUN1 - Header Cabinet N2 - HVDCN3 - Switch Cabinet N4 - Switch Cabinet N6 - Transformer N8 - Mains Incoming Cabinet N10; Two, PDUN1 - Header Cabinet N2 - HVDCN3 - Switch Cabinet N5 - Switch Cabinet N7 - Transformer N9 - Mains Incoming Cabinet Nil; Three, Air - conditioner N12 - Switch Cabinet N13 - Switch Cabinet N15 - Transformer N17 - Mains Incoming Cabinet N10; Four, Air - conditioner N12 - Switch Cabinet N14 - Switch Cabinet N16 - Transformer N18 - Mains Incoming Cabinet NI L
[0087] In specific implementation, the actual power of the electrical equipment corresponding to PDUN1 and air conditioner N12 is read from the real power system. The rate is used as the actual power corresponding to the leaf device model. In other words, the actual power of the leaf device model is the actual power value collected from the real power system, while the actual power corresponding to other device models is calculated. As can be seen from Figure 7, the actual power collected from PDUN1 is 20kw, but the air conditioner N12 does not show the corresponding actual power. This may be because the air conditioner has not set the corresponding power measurement point. At this time, the switch cabinet N13 and switch cabinet N14 upstream of the air conditioner N12 can be further used as leaf device models to directly collect and obtain the actual power of the two in the real power system. As can be seen from Figure 7, the actual power collected from the switch cabinet N13 and the switch cabinet N14 are both 5kw. o
[0088] Afterwards, the total number of occurrences of PDUN1, switch cabinet N13, and switch cabinet N14 in the above four power supply paths is determined, wherein PDUN 1 appears twice, and switch cabinet N13 and switch cabinet N14 each appear once. At this time, the apportioned power of PDUN1, switch cabinet N13, and switch cabinet N14 in the above four power supply paths can be determined. Specifically, the actual power of PDUN1 is 20kw, and it appears twice, so the power apportioned in the two power supply paths where it is located is 10kw respectively. The actual power of switch cabinet N13 and switch cabinet N14 is 5kw, and it appears once, so the actual power apportioned in the two power supply paths where it is located is 5kw respectively.
[0089] After that, from the leaf device model upward, the actual power of the upstream device model is determined one by one. For example, in the first power supply path mentioned above, the head cabinet N2 supplies power to PDUN1, that is, the actual power of PDUN1 on this power supply path is 10kw, which comes from the upstream node head cabinet N2. Therefore, the actual power corresponding to the head cabinet N2 in the first power supply path is also 10kw. Similarly, the actual power corresponding to HVDC N3 in the first power supply path is also 10kw, and the actual power corresponding to the switch cabinet N4, switch cabinet N6, transformer N8 and mains incoming cabinet N10 in the first power supply path is also 10kw...
[0090] Similarly, on the second power supply path, the substation busbar cabinet N2 supplies power to PDUN1. That is, the actual power of PDUN1 on this power supply path, which is 10 kw, comes from the upstream node substation busbar cabinet N2. Therefore, the actual power corresponding to the substation busbar cabinet N2 under the second power supply path is also 10 kw. Similarly, the actual powers corresponding to the upstream HVDCN3, switchgear cabinet N5, switchgear cabinet N7, transformer N9, and mains incoming cabinet Nil under the second power supply path are all 10 kw.
[0091] Similarly, on the third power supply path, the actual power of switchgear cabinet N13 is 5 kw. The upstream nodes that supply power to it, namely switchgear cabinet N15, transformer N17, and mains incoming cabinet N10, also have actual powers of 5 kw each under the third power supply path.
[0092] Similarly, on the fourth power supply path, the actual power of switchgear cabinet N14 is 5 kw. The upstream nodes that supply power to it, namely switchgear cabinet N16, transformer N18, and mains incoming cabinet Nil, also have actual powers of 5 kw each under the fourth power supply path.
[0093] Based on this, by accumulating the actual powers of transformer N8 and transformer N17 connected downstream of the mains incoming cabinet N10 in the root device model, the actual power of this mains incoming cabinet N10 can be obtained: 10 kw + 5 kw = 15 kw. Similarly, by accumulating the actual powers of transformer N9 and transformer N18 connected downstream of the mains incoming cabinet Nil, the actual power of this mains incoming cabinet Nil can be obtained: 10 kw + 5 kw = 15 kw.
[0094] Through the above method, the actual powers of the device models in all power supply paths of the simulated power system can be obtained. These actual powers can facilitate the subsequent analysis of the power level risks generated during the change process of the power supply paths.
[0095] Figure 8 is another flowchart of a power system simulation method provided by an embodiment of the present application. As shown in Figure 8, the method includes the following steps 801 to 805.
[0096] 801. Generate a simulated power system corresponding to the real power system in the simulation environment. The simulated power system includes device models corresponding to each electrical device in the real power system and the connection relationships between the device models.
[0097] 802. Obtain the comprehensive protection logic models corresponding to different device models in the simulated power system. The comprehensive protection logic models are used to describe the simulation operations that need to be executed when the operating states of the corresponding device models change set.
[0098] 803. Obtain a first simulation operation sequence, where the first simulation operation sequence includes a first simulation operation and the execution time corresponding to the first simulation operation. When the first simulation engine executes the first simulation operation at this execution time, determine the operating state of the simulated power system after executing the first simulation operation.
[0099] 804. In the second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to the target device model is satisfied, determine the execution time of the second simulation operation included in the comprehensive protection logic model corresponding to the target device model, and send the second simulation operation and the execution time corresponding to the second simulation operation to the first simulation engine, so that the first simulation engine updates the first simulation operation sequence to obtain a second simulation operation sequence.
[0100] 805. The first simulation engine executes the second simulation operation at the execution time corresponding to the second simulation operation, and determine the operating state of the simulated power system after executing the second simulation operation.
[0101] In the embodiments of the present application, the first simulation engine is actually a timing simulation engine.
[0102] In practical applications, after initializing the operating states of the device models in the simulated power system, the user can arrange the simulation operations on the device models in chronological order of execution on a time axis. Each simulation operation has a corresponding operation execution time, which is equivalent to obtaining the first simulation operation sequence originally input by the user. Subsequently, according to the first simulation operation sequence, in the first simulation engine, the first simulation operation therein can be executed at the corresponding execution time.
[0103] It should be noted that each time a simulation operation is executed, the operating states of the device models may change accordingly, thereby affecting the on / off of each link in the simulated power system and the actual power corresponding to each device model. Therefore, in specific implementation, the first simulation engine will sequentially execute each simulation operation in the order of execution time on the time axis, and after each simulation operation, judge the operating states of the device models, that is, perform path simulation and power simulation, until all simulation operations on the time axis are judged, and the power system reaches a stable state.
[0104] In order to incorporate the comprehensive protection logic during the simulation operation and achieve a complete restoration of the power system, in practical applications, when the second simulation engine listens to the operating state of the simulated power system after the first simulation engine executes the first simulation operation and finds that it meets the conditional strategy in the comprehensive protection logic model of the target device model, the corresponding action strategy is used as the second simulation operation. Based on the execution time of the first simulation operation and the time delay information related to the second simulation operation described in the action strategy, the execution time of the second simulation operation can be determined. Then, the second simulation operation and the corresponding execution time of the second simulation operation are sent to the first simulation engine, so that the first simulation engine updates the first simulation operation sequence to obtain the second simulation operation sequence. Simply put, it is to obtain the execution time of the second simulation operation and then insert the second simulation operation into the first simulation operation sequence according to the execution time to obtain the second simulation operation sequence. Thus, the closed-loop linkage between the first simulation engine and the second simulation engine is achieved.
[0105] In addition, it should be noted that whenever the first simulation engine executes a simulation operation, the second simulation engine will listen to whether a certain comprehensive protection logic model is triggered. The last simulation operation executed by the first simulation engine cannot trigger a certain comprehensive protection logic model, and the power system needs to reach a steady state (i.e., the circuit state that does not trigger the comprehensive protection logic model). Through the linkage between the two simulation engines during each simulation operation, a series of operations that the power system can execute from an initial state to another stable state can be finally simulated.
[0106] For the sake of easy understanding, the process of the above simulation operation is specifically described below in conjunction with Figure 9: In Figure 9, the simulation operations in the boxes are the simulation operations originally included in the first simulation operation sequence, and the simulation operations in the circles are the simulation operations updated to the first simulation operation sequence based on the comprehensive protection logic model. Each simulation operation has a corresponding operation execution time below it. And below the execution time, there is the impact generated after the execution of this simulation operation. For example, at 00:00:00, after the A mains switch cabinet performs a switching-off operation, it will cause the battery to discharge, and at this time, the remaining battery power is 100%. In practical applications, for example, assume that at 00:00:00, the A mains switch cabinet performs a switching-off operation, which meets the comprehensive protection logic model corresponding to the A mains switch cabinet. Then, the simulation operations included in this comprehensive protection logic model (assumed to be at 00:00:15, perform a switching-off operation on the A low-voltage switch cabinet, and at 00:00:18, perform a switching-on operation on the low-voltage bus tie cabinet) are input to the first simulation engine, forming the second simulation operation sequence shown in Figure 9.
[0107] In practical applications, for example, assume that at 00:00:00, the A mains switch cabinet performs a switching-off operation, which meets the comprehensive protection logic model corresponding to the A mains switch cabinet. Then, the simulation operations included in this comprehensive protection logic model (assumed to be at 00:00:15, perform a switching-off operation on the A low-voltage switch cabinet, and at 00:00:18, perform a switching-on operation on the low-voltage bus tie cabinet) are input to the first simulation engine, forming the second simulation operation sequence shown in Figure 9.
[0108] Continuing with the above example, the integrated protection logic model includes a condition strategy and an action strategy. To determine whether the integrated protection logic model of a certain equipment model is satisfied after performing a certain simulation operation, it is mainly to determine whether the operating state of the simulated power system after performing the simulation operation conforms to the condition strategy in the integrated protection logic model. For example, assume that the condition strategy is "the A-phase mains cabinet changes from energized to de-energized", and its corresponding action strategy can be "after a delay of 15 seconds, trip the A-phase low-voltage cabinet, and then after a delay of 3 seconds, close the low-voltage bus tie cabinet". Then, after performing a certain first simulation operation, if the condition strategy is satisfied, the corresponding action strategy (the second simulation operation) can be executed by the first simulation engine at the corresponding execution time.
[0109] FIG. 10 is another flowchart of a power system simulation method provided by an embodiment of the present application. As shown in FIG. 10, the method includes the following steps 1001 to 1007.
[0110] 1001. Generate a simulated power system corresponding to the real power system in the simulation environment. The simulated power system includes equipment models corresponding to each electrical equipment in the real power system and the connection relationships between the equipment models.
[0111] 1002. Obtain the integrated protection logic models corresponding to different equipment models in the simulated power system. The integrated protection logic model is used to describe the simulation operations that need to be performed when the operating state of the corresponding equipment model undergoes a set change.
[0112] 1003. Obtain a first simulation operation sequence. The first simulation operation sequence includes a first simulation operation and the execution time corresponding to the first simulation operation. The first simulation engine executes the first simulation operation at this execution time and determines the operating state of the simulated power system after performing the first simulation operation.
[0113] 1004. In the second simulation engine, if it is determined that the integrated protection logic model corresponding to the target equipment model is satisfied according to the operating state, then determine the execution time of the second simulation operation included in the integrated protection logic model corresponding to the target equipment model, and send the second simulation operation and the execution time corresponding to the second simulation operation to the first simulation engine, so that the first simulation engine updates the first simulation operation sequence to obtain a second simulation operation sequence.
[0114] 1005. The first simulation engine executes the second simulation operation at the execution time corresponding to the second simulation operation and determines the operating state of the simulated power system after performing the second simulation operation.
[0115] 1006. Obtain the simulation results corresponding to each of the multiple simulation operations in the second simulation operation sequence. The simulation results include the multiple power supply paths existing in the simulated power system after performing any simulation operation and the actual power of the equipment models included in the multiple power supply paths.
[0116] 1007. Determine the stability index information of the real power system based on the simulation results.
[0117] For the specific execution processes of steps 1001 - 1006, reference can be made to the above embodiments and will not be elaborated here. For step 1007, it should be understood that after performing the multiple simulation operations in the second simulation operation sequence, corresponding simulation results will be generated for each simulation operation. Based on these simulation results, the stability index information of the real power system can be determined, which facilitates the staff to perform corresponding processing based on this stability index information.
[0118] Among them, determining the stability index information of the real power system based on the simulation results includes:
[0119] For any equipment model included in the simulated power system, determine the target actual power that meets the set conditions from the actual power corresponding to this equipment model included in the simulation results, and based on the ratio of the target actual power to the rated power of the electrical equipment corresponding to this equipment model, determine the power risk information of this electrical equipment; and / or,
[0120] For any equipment model included in the simulated power system, determine the power-off duration of this equipment model based on the simulation results, and based on the power-off duration, determine the power-off risk information of the electrical equipment corresponding to this equipment model; and / or,
[0121] For the battery equipment model included in the simulated power system, determine the discharge duration of the battery equipment model based on the simulation results, and based on the discharge duration and the remaining power information of the battery corresponding to the battery equipment model, determine the discharge risk information of the battery; and / or,
[0122] For the equipment model that supplies power to the server in the simulated power system, determine the power supply distribution information of this equipment model based on the simulation results, and based on the power supply distribution, determine the power supply risk information of the server; where the power supply distribution information includes the single-path power supply duration and the dual-path power supply duration, and single-path and dual-path refer to the number of power supply paths of the equipment model.
[0123] Regarding the power risk information of electrical equipment, assuming that the simulated power system includes equipment model x, after each simulation operation, the power supply path is determined, and the actual power corresponding to each equipment model in each power supply path is determined. Therefore, assuming that N simulation operations are performed, the equipment model x can correspond to M actual powers. Among them, assuming that the power supply path obtained after M simulation operations includes the equipment model x, and M is less than or equal to N. The maximum actual power can be determined from the M actual powers as the target actual power, and the ratio of the target actual power to the rated power of the electrical equipment corresponding to the equipment model x is used as the power level of the electrical equipment. If this power level is greater than the set threshold, it is considered that the electrical equipment has a power risk. In practical applications, the power risk of the electrical equipment can also be comprehensively determined by combining information such as the usage duration and the last maintenance time of the electrical equipment.
[0124] Regarding the power-off risk information of electrical equipment, still taking the above equipment model x as an example, based on the power supply path determination results corresponding to each of the N simulation operations, it can be known whether there is a power-off and the power-off time in the power supply path determination result of the equipment model x each time. The total power-off duration corresponding to the equipment model x is accumulated and output as the power-off risk information. Specifically, if the power-off duration is greater than the set threshold, it can be determined that the corresponding electrical equipment has a greater power-off risk. In practical applications, the power-off risk of the electrical equipment can also be determined by combining the equipment type of the electrical equipment. For example, equipment such as PDU that is used to supply power to other electrical equipment will have a serious impact if it is powered off for a long time.
[0125] Regarding the discharge risk information of the battery, the simulated power system will include a battery equipment model. During the simulation process, the charge and discharge state information of the battery equipment model can be monitored to determine the discharge duration of the corresponding battery. If it is found that the discharge duration of the battery after executing the simulation operation sequence does not match the remaining battery power in reality. For example, based on the simulation result, it is determined that the battery can discharge for 10 minutes, but based on the remaining battery power collected from the real power system, it is found that the remaining battery power is not enough to discharge for 10 minutes, then it is determined that the battery has a discharge risk.
[0126] Regarding the power supply risk information of the server, there may be one or more device models in the simulated power system that supply power to the server. To ensure the power supply safety of the server, redundant power supply links are usually set up, such as two power supply links. Sometimes both of these power supply links supply power to the server, and sometimes only one power supply link supplies power to the server. Suppose the device model y (the corresponding electrical device is, for example, a utility cabinet) can supply power to the server through the above two power supply links. Based on the determined results of the power supply path after each simulation operation, the power supply path corresponding to the device model y can be known, and thus the single-path power supply duration and the dual-path power supply duration of the device model y can be statistically obtained. For example, if it is found that the single-path power supply duration is greater than the set threshold, it is determined that there is a power supply risk for the server.
[0127] In practical applications, various stability index information (power risk information of electrical equipment, power-off risk information, discharge risk information of the battery, and power supply risk information of the server) can be presented to the user in the form of a report so that the user can timely understand the impact of the simulation operation sequence on the power system based on this index information.
[0128] The power system simulation solution provided by the embodiments of this application can be applied to practical application scenarios such as change preview and fault location of the power system. Among them, change preview means that if you want to change some electrical equipment in the power system (such as replacing a certain electrical equipment), in order to achieve this change purpose and avoid affecting the stable operation of the power system during the change, you can, through simulation, simulate the simulation operation sequence that needs to be executed during the change to determine the operating state of the power system when executing this simulation operation sequence, and then analyze whether there are some risks as exemplified above. If there are no such risks, it means that executing this simulation operation sequence in the real power system can achieve a safe change of electrical equipment.
[0129] When a fault occurs in the real power system, through simulation, the operations performed on the real power system before the fault occurs can be used as the simulation operation sequence and executed in the simulation environment to obtain the power supply path status and device power status of the power system after each simulation operation is executed, which helps to accurately locate the cause of the fault.
[0130] The power system simulation device of one or more embodiments of this application will be described in detail below. Those skilled in the art can understand that these devices can all be configured by using commercially available hardware components through the steps taught by this solution.
[0131] FIG. 11 is a schematic structural diagram of a power system simulation device provided by an embodiment of the present application. As shown in FIG. 11, the device includes: a generation module 11, an acquisition module 12, and an execution module 13.
[0132] The generation module 11 is configured to generate a simulated power system corresponding to the real power system in a simulation environment. The simulated power system includes device models corresponding to each electrical device in the real power system, and the connection relationship between the device models is determined according to the device topology relationship of the real power system.
[0133] The acquisition module 12 is configured to acquire the comprehensive protection logic models corresponding to different device models in the simulated power system. The comprehensive protection logic models are used to describe the simulation operations that need to be executed when the operating state of the corresponding device models changes by a set amount.
[0134] The execution module 13 is configured to execute a first simulation operation in a first simulation engine and determine the operating state of the simulated power system after executing the first simulation operation; and in a second simulation engine, if the determined operating state meets the comprehensive protection logic model corresponding to the target device model, input the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine, execute the second simulation operation in the first simulation engine, and determine the operating state of the simulated power system after executing the second simulation operation.
[0135] Optionally, the generation module 11 is further configured to bind a set of simulation operations executable by the first simulation engine and an operating state monitorable by the second simulation engine to the device models.
[0136] Optionally, the execution module 13 is specifically configured to: determine multiple power supply paths existing in the simulated power system after executing the first simulation operation; and respectively determine the actual power of the device models included in the multiple power supply paths.
[0137] Optionally, the execution module 13 is specifically configured to: determine the leaf device models and root device models in the simulated power system. The leaf device models refer to the device models that are not connected to other device models downstream, and the root device models refer to the device models that are not connected to other device models upstream; based on the connection relationship between different device models in the simulated power system, perform a depth-first traversal from the leaf device models to the root device models to determine whether there is a power supply path between the leaf device models and the root device models according to the operating states of the traversed device models; wherein, if there is a power supply path between the leaf device models and the root device models, all the device models on the power supply path are in a live state.
[0138] Optionally, the execution module 13 is specifically configured to: respectively determine the leaf device models included in multiple power supply paths, where a leaf device model refers to a device model that has no other device models connected downstream; read the actual power of the electrical device corresponding to the leaf device model from the real power system as the actual power corresponding to the leaf device model; determine the allocated power of the leaf device model in the target power supply path according to the total number of occurrences of the leaf device model in the multiple power supply paths, where the target power supply path refers to any power supply path that includes the leaf device model; determine the actual power of each device model on the target power supply path according to the allocated power of the leaf device model in the target power supply path; among them, the actual power corresponding to the root device model included in the multiple power supply paths is obtained by accumulating the actual power of the device models connected downstream of the root device model, and the root device model refers to a device model that has no other device models connected upstream.
[0139] Optionally, the device further includes: an acquisition module, configured to acquire the operating states of each electrical device in the real power system at a target moment; and perform an initialization process on the operating states of each device model in the simulation power system according to the operating states of each electrical device at the target moment.
[0140] Optionally, the execution module 13 is specifically configured to: obtain a first simulation operation sequence, where the first simulation operation sequence includes the first simulation operation and the execution moment corresponding to the first simulation operation; in the first simulation engine, execute the first simulation operation at the execution moment; determine the execution moment of the second simulation operation, and send the second simulation operation and the execution moment corresponding to the second simulation operation to the first simulation engine, so that the first simulation engine updates the first simulation operation sequence to obtain a second simulation operation sequence.
[0141] Optionally, the device further includes: an analysis module, configured to obtain the simulation results corresponding to multiple simulation operations in the second simulation operation sequence, where the simulation results include multiple power supply paths existing in the simulation power system after executing any simulation operation and the actual power of the device models included in the multiple power supply paths; and determine the stability index information of the real power system according to the simulation results.
[0142] Optionally, the analysis module is specifically configured to:
[0143] For any device model included in the simulated power system, determine a target actual power that meets the set conditions from the actual power corresponding to the any device model included in the simulation results, so as to determine the power risk information of the electrical device according to the ratio of the target actual power to the rated power of the electrical device corresponding to the any device model; and / or,
[0144] For any device model included in the simulated power system, determine the power-off duration of the any device model according to the simulation results, so as to determine the power-off risk information of the electrical device corresponding to the any device model according to the power-off duration; and / or,
[0145] For the battery device model included in the simulated power system, determine the discharge duration of the battery device model according to the simulation results, so as to determine the discharge risk information of the battery according to the discharge duration and the remaining power information of the battery corresponding to the battery device model; and / or,
[0146] For the device model that supplies power to the server in the simulated power system, determine the power supply distribution information of the device model according to the simulation results, so as to determine the power supply risk information of the server according to the power supply distribution; wherein, the power supply distribution information includes the single-path power supply duration and the dual-path power supply duration, and single-path and dual-path refer to the number of power supply paths of the device model.
[0147] The device shown in FIG. 11 can execute the steps provided in the foregoing embodiments. For the detailed execution process and technical effects, see the description in the foregoing embodiments, which will not be repeated here.
[0148] In a possible design, the structure of the power system simulation device shown in FIG. 11 above can be implemented as an electronic device. As shown in FIG. 12, the electronic device may include: a processor 21, a memory 22, and a communication interface 23. Among them, an executable code is stored on the memory 22. When the executable code is executed by the processor 21, the processor 21 can at least implement the power system simulation method provided in the foregoing embodiments.
[0149] In addition, an embodiment of the present application provides a non-transitory machine-readable storage medium, on which an executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the power system simulation method provided in the foregoing embodiments.
[0150] The device embodiments described above are merely illustrative, where the network elements described as separate components may or may not be physically separated. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0151] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of adding a necessary general hardware platform, and of course, it can also be implemented by the combination of hardware and software. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the related technologies can be embodied in the form of a computer product. This 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.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or equivalently replace some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
Claims 1. A power system simulation method, comprising: Generate a simulated power system corresponding to the real power system in a simulation environment. The simulated power system includes device models corresponding to each electrical device in the real power system, and the connection relationship between the device models is determined according to the device topology relationship of the real power system; Obtain the comprehensive protection logic models corresponding to different device models in the simulated power system. The comprehensive protection logic models are used to describe the simulation operations to be executed when the operating state of the corresponding device models changes by a set amount; In a first simulation engine, execute a first simulation operation and determine the operating state of the simulated power system after executing the first simulation operation; In a second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to the target device model is satisfied, then input the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine; In the first simulation engine, execute the second simulation operation and determine the operating state of the simulated power system after executing the second simulation operation.
2. The method according to claim 1, further comprising: Bind a set of simulation operations executable by the first simulation engine and an operating state monitorable by the second simulation engine to the device model.
3. The method according to claim 1, wherein The determining the operating state of the simulated power system after executing the first simulation operation includes: determining a plurality of power supply paths existing in the simulated power system after executing the first simulation operation; respectively determining the actual power corresponding to the device models included in the plurality of power supply paths.
4. The method according to claim 3, wherein The determining the plurality of power supply paths existing in the simulated power system after executing the first simulation operation includes: determining the leaf device models and root device models in the simulated power system. The leaf device models refer to the device models that are not connected to other device models downstream, and the root device models refer to the device models that are not connected to other device models upstream; based on the connection relationship between different device models in the simulated power system, perform a depth-first traversal from the leaf device models to the root device models to determine whether there is a power supply path between the leaf device models and the root device models according to the operating states of the traversed device models; wherein, if there is a power supply path between the leaf device models and the root device models, then each device model on the power supply path is in a live state.
5. The method according to claim 3, wherein Determining the actual power corresponding to the device models included in the multiple power supply paths respectively includes: respectively determining the leaf device models included in the multiple power supply paths, where the leaf device model refers to a device model with no other device models connected downstream; reading the actual power of the electrical device corresponding to the leaf device model from the real power system as the actual power corresponding to the leaf device model; determining the allocated power of the leaf device model in the target power supply path according to the total number of occurrences of the leaf device model in the multiple power supply paths, where the target power supply path refers to any power supply path including the leaf device model; and determining the actual power of each device model on the target power supply path according to the allocated power of the leaf device model in the target power supply path. Among them, the actual power corresponding to the root device model included in the multiple power supply paths is obtained by accumulating the actual powers of the device models connected downstream of the root device model, where the root device model refers to a device model with no other device models connected upstream.
6. The method according to any one of claims 1-5 further comprises: Collect the operating states of each electrical device in the real power system at the target moment. Perform initialization processing on the operating states of each device model in the simulation power system according to the operating states of each electrical device at the target moment.
7. The method according to any one of claims 3-5, wherein Performing the first simulation operation in the first simulation engine includes: obtaining a first simulation operation sequence, where the first simulation operation sequence includes the first simulation operation and the execution moment corresponding to the first simulation operation; in the first simulation engine, executing the first simulation operation at the execution moment; inputting the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine, including: determining the execution moment of the second simulation operation, and sending the second simulation operation and the execution moment corresponding to the second simulation operation to the first simulation engine, so that the first simulation engine updates the first simulation operation sequence to obtain a second simulation operation sequence.
8. The method according to claim 7, further comprising: Obtain the simulation results corresponding to each of the multiple simulation operations in the second simulation operation sequence, where the simulation results include the multiple power supply paths existing in the simulation power system after executing any simulation operation and the actual powers of the device models included in the multiple power supply paths. Determine the stability index information of the real power system according to the simulation results.
9. The method according to claim 8, wherein Determining the stability index information of the real power system according to the simulation results includes: for any device model included in the simulated power system, determining a target actual power that meets the set conditions from the actual power corresponding to the any device model included in the simulation results, so as to determine the power risk information of the electrical device according to the ratio of the target actual power to the rated power of the electrical device corresponding to the any device model; and / or, for any device model included in the simulated power system, determining the power-off duration of the any device model according to the simulation results, so as to determine the power-off risk information of the electrical device corresponding to the any device model according to the power-off duration; and / or, for the battery device model included in the simulated power system, determining the discharge duration of the battery device model according to the simulation results, so as to determine the discharge risk information of the battery according to the discharge duration and the remaining power information of the battery corresponding to the battery device model; and / or, for the device model that supplies power to the server in the simulated power system, determining the power supply distribution information of the device model according to the simulation results, so as to determine the power supply risk information of the server according to the power supply distribution; wherein, the power supply distribution information includes the single-path power supply duration and the dual-path power supply duration, and single-path and dual-path refer to the number of power supply paths of the device model.
10. A power system simulation method, comprising: Receiving a request triggered by a client device by invoking a power system simulation service provided by the cloud, where the request includes the description information of each electrical device of the real power system and the device topology relationship; generating a simulated power system corresponding to the real power system in a simulation environment, and the simulated power system includes device models corresponding to each electrical device in the real power system, and the connection relationship between the device models is determined according to the device topology relationship of the real power system; Obtaining the comprehensive protection logic models corresponding to different device models in the simulated power system, where the comprehensive protection logic models are used to describe the simulation operations that need to be executed when the operating state of the corresponding device models undergoes a set change; In the first simulation engine, performing a first simulation operation and determining the operating state of the simulated power system after performing the first simulation operation; In the second simulation engine, if it is determined according to the operating state that the comprehensive protection logic model corresponding to the target device model is satisfied, inputting the second simulation operation included in the comprehensive protection logic model corresponding to the target device model into the first simulation engine; In the first simulation engine, performing the second simulation operation and determining the operating state of the simulated power system after performing the second simulation operation.
11. An electronic device, comprising: A memory, a processor, and a communication interface; wherein, executable code is stored on the memory, and when the executable code is executed by the processor, the processor executes the power system simulation method according to any one of claims 1 to 9 or claim 10.
12. A non-transitory machine-readable storage medium, wherein, An executable code is stored on the non-transitory machine-readable storage medium, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the power system simulation method according to any one of claims 1 to 9 or claim 10. 19
Citation Information
Patent Citations
All-digital dynamic simulation system of power system
CN102209074A
Area backup automatic switch testing system based on digital simulation technology
CN102508053A
Power system fault monitoring method and system
CN103760440A
Power distribution automation simulation system and simulation method for power distribution DTS (dispatcher training simulator)
CN107025344A
Power grid relay protection constant value online monitoring, real-time analysis and early warning method
CN112670944A