Non-real-time semi-physical simulation synchronization method and device for power grid information-physical fusion system
By using timestamp data packets and global event axes in the power grid information physical fusion system, non-real-time power simulation and real-time communication simulation are synchronized, which solves the problem of synchronization in the existing technology, improves the synchronization and external control capabilities of the simulation system, and supports the intelligentization of the power grid.
Patent Information
- Application Number
- CN201810378098.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-04-25
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2038-04-25
AI Technical Summary
In the existing power grid information physical fusion system, it is difficult to synchronize non-real-time power simulation with real-time physical equipment and communication simulation, and the simulation process of communication simulation software is difficult to control through external programs.
When a new power simulation event is found on the global event axis, the power simulation process is suspended and the simulation packet with a timestamp is sent to the communication simulation system. The communication simulation system uses the power simulation timestamp as the start time to simulate, and sends the timetamp data packet to the main console after the simulation is completed. After the main console calculates the communication transmission delay, the power simulation system starts the simulation process after the delay.
It effectively solves the synchronization problem of power simulation and communication simulation, realizes synchronization of non-real-time semi-physical simulation systems, and can effectively manage the simulation process through external control programs, supporting the goal of intelligent power grids.
Smart Images

Figure CN110399623B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information-physical fusion systems and computer simulation technology, and in particular to a non-real-time semi-physical simulation synchronization method and device for an information-physical fusion system of a power grid. Background Art
[0002] With the rapid development of network communication technology and computer science technology, their applications have been continuously infiltrated into multidisciplinary fields including automatic control, electricity, medical treatment, and construction, and the requirements for intelligence in various fields have been continuously improved. Based on this demand, cyber-physical fusion systems have emerged and quickly gained wide attention and high attention from all walks of life. Cyber-physical fusion systems (CPS) are multi-dimensional complex systems that integrate computing, network, and physical environment. Through the organic integration and deep collaboration of 3C (Computation, Communication, Control) technologies, they can realize real-time perception, dynamic control, and information services of large-scale engineering systems.
[0003] CPS systems deeply embed computing and communication into physical processes and make them interact closely with physical processes, thereby adding new capabilities to physical systems, especially in the field of national power grids. Today's power grids have entered the era of intelligence. Smart grids widely use technologies such as wide-area sensing and measurement, high-speed information communication, advanced computing and flexible control to achieve informatization, automation and interaction in the six major links of power generation, transmission, transformation, distribution, power consumption and dispatching. As more and more power equipment adopts embedded system structures, a large number of electrical equipment, data acquisition equipment and computing equipment are interconnected through two physical networks, the power grid and the communication network. Smart grids already have the basic characteristics of CPS. With the construction of power grid automation systems, large-capacity transmission networks, and ubiquitous sensor networks, and the deep integration with the Internet, energy networks, etc., smart grids will continue to evolve to form a complex network with wide-area collaboration and autonomous behavior, thus forming a grid cyber-physical fusion system GCPS (Grid Cyber-Physical Systems). GCPS expands new functions through the deep integration and real-time interaction of the grid information space and the physical space, and monitors or controls the physical equipment or systems of the grid in a safe, reliable, efficient and real-time manner.
[0004] At present, many research institutions have carried out research on GCPS simulation and have made certain progress in the field of joint simulation of power grid and communication network. However, a common problem currently exists that the power simulation is generally slower than the actual physical clock, while the running speed of the communication simulation software is synchronized with the physical clock. In the semi-physical joint simulation system composed of power simulation software and communication simulation software connected to the physical system, it is difficult to achieve the simulation synchronization of non-real-time power simulation with real-time physical equipment and real-time communication simulation; in addition, considering that the simulation process of some communication simulation software is difficult to be controlled by external programs, this will increase the difficulty of synchronizing power simulation with communication simulation. Summary of the invention
[0005] In order to solve the problem of synchronization between non-real-time power simulation and real-time physical equipment and real-time communication simulation, as well as the problem that communication simulation software and physical equipment are difficult to control the simulation process through external control programs, the present invention proposes a non-real-time semi-physical simulation synchronization method and device for a power grid information-physical fusion system. Through this method, the synchronization problem of power simulation and communication simulation can be effectively solved, providing a new idea and implementation path for achieving the goal of power grid intelligence.
[0006] The non-real-time semi-physical simulation synchronization method of the power grid information-physical fusion system provided by the present invention has the following improvements:
[0007] Step 1: When a new power simulation event is found sequentially on the global event axis, the power simulation system suspends the power simulation process and sends a simulation data packet with a power simulation timestamp and a power timestamp added to the communication simulation system;
[0008] Step 2: The communication simulation system uses the power simulation timestamp in the simulation data packet as the communication simulation start time, and after the communication simulation is finished, sends the simulation data packet with the communication simulation system packet receiving timestamp and the communication simulation timestamp added to the main console;
[0009] Step 3: The main control console adds a receiving timestamp to the simulation data packet containing the power simulation timestamp, the power timestamp, the communication simulation packet receiving timestamp and the communication simulation timestamp, and calculates the communication transmission delay based on the power timestamp, the communication simulation packet receiving timestamp, the communication simulation timestamp and the receiving timestamp. The power simulation system starts the power simulation process after the communication transmission delay.
[0010] Preferably, the power simulation timestamp is the simulation time TE read from the global event axis when the power simulation system sends data to the communication simulation system;
[0011] The power timestamp is the computer current time information TG read after GPS synchronization when the main control console sends data to the communication simulation system;
[0012] The communication simulation packet receiving timestamp is the current time information TR of the computer after the communication simulation system receives the data packet and reads the time synchronized by GPS;
[0013] The communication simulation timestamp is to read the current time information TC of the computer after the GPS is synchronized while the communication simulation system completes the initialization of the expected fault and realizes synchronization with the simulation time TE;
[0014] The receiving timestamp is when the main console receives the data packet sent by the communication simulation system, and the main console reads the computer current time information TA after the time is synchronized by GPS.
[0015] Preferably, in step 3, the communication transmission delay T is calculated according to the following formula:
[0016] T=(TR–TG)+(TA–TC).
[0017] The improvement of the non-real-time semi-physical simulation synchronization device of the power grid information-physical fusion system is as follows:
[0018] The general control module is used to add a receiving timestamp to the simulation data packet including the power simulation timestamp, the power timestamp, the communication simulation packet receiving timestamp and the communication simulation timestamp, and calculate the communication transmission delay according to the power timestamp, the communication simulation packet receiving timestamp, the communication simulation timestamp and the receiving timestamp;
[0019] Power simulation module: used to suspend the power simulation process when a new power simulation event appears in the global event axis, send the simulation data packet with the power simulation timestamp and power timestamp added to the communication simulation system, and start the power simulation process after the communication transmission delay;
[0020] Communication simulation module: used to use the power simulation timestamp in the simulation data packet as the communication simulation start time, and send the simulation data packet with the communication simulation packet receiving timestamp and the communication simulation timestamp added to the main console after the communication simulation ends;
[0021] Physical communication device A: used to receive simulation data packets containing power simulation timestamp and power timestamp from the main control console and forward them to the communication simulation module;
[0022] Physical communication device B: used to receive simulation data packets including power simulation timestamp, power timestamp, communication simulation packet receiving timestamp and communication simulation timestamp from the communication simulation module, and forward them to the main console.
[0023] Preferably, the power simulation timestamp is the simulation time TE read from the global event axis when the power simulation system sends data to the communication simulation system;
[0024] The power timestamp is the computer current time information TG read after GPS synchronization when the main control console sends data to the communication simulation system;
[0025] The communication simulation packet receiving timestamp is the current time information TR of the computer after the communication simulation system receives the data packet and reads the time synchronized by GPS;
[0026] The communication simulation timestamp is to read the current time information TC of the computer after the GPS is synchronized while the communication simulation system completes the initialization of the expected fault and realizes synchronization with the simulation time TE;
[0027] The receiving timestamp is when the main console receives the data packet sent by the communication simulation system, and the main console reads the computer current time information TA after the time is synchronized by GPS.
[0028] Preferably, the communication transmission delay T is calculated as follows:
[0029] T=(TR–TG)+(TA–TC).
[0030] Compared with the closest prior art, the technical solution provided by the present invention has the following excellent effects:
[0031] The present invention provides a non-real-time semi-physical simulation synchronization method and device for a power grid information-physical fusion system. By transmitting simulation data packets with timestamps between the power simulation system and the communication simulation system, the synchronization between the power simulation system and the communication simulation system is improved, effectively solving the problem that real-time simulation software and physical equipment cannot be controlled by external programs, and providing new ideas and implementation methods for achieving the goal of intelligent power grids. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flow chart of a non-real-time semi-physical simulation synchronization method for a power grid information-physical fusion system provided by the present invention;
[0033] Figure 2 The data packet format defined in the present invention;
[0034] Figure 3 A structural diagram of a non-real-time semi-physical simulation synchronization device for a power grid information-physical fusion system provided by the present invention;
[0035] Figure 4 It is a simulation flow diagram of a non-real-time semi-physical simulation system in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0037] Embodiment 1
[0038] The embodiment of the present invention proposes a non-real-time semi-physical simulation synchronization method for a power grid information-physical fusion system, the flow chart of which is as follows: Figure 1 As shown, the following steps are included:
[0039] Step 1: Add communication simulation events and power simulation events to the global event axis in the order of occurrence;
[0040] Step 2: When new power simulation events are found in sequence on the global event axis, the power simulation system suspends the power simulation process and sends a simulation data packet with a power simulation timestamp to the main control console;
[0041] The data format of the data packet sent by the power simulation system is as follows: Figure 2 As shown, the simulation data and the timestamp table together constitute the simulation data packet, and the structure of the timestamp table includes 5 parts:
[0042] 1) Power simulation timestamp: the simulation time when the power simulation system sends data to the communication simulation system, read from the global event axis (not the physical time of the simulation system, but the simulation time in the simulation scenario) TE;
[0043] 2) Power timestamp: The physical time when the main console sends data to the communication simulation system. The main console reads the current time information TG of the computer after GPS synchronization;
[0044] 3) Communication simulation packet receiving timestamp: After receiving the data packet, the communication simulation system reads the computer current time information TR after being synchronized by GPS;
[0045] 4) Communication simulation timestamp: When the communication simulation system completes the initialization of the expected fault and realizes synchronization with the power simulation system at the simulation time TE, it reads the computer current time information TC after being synchronized by GPS;
[0046] 5) Receiving timestamp: When the main console receives the data packet sent by the communication simulation system, the main console reads the computer's current time information TA after being synchronized by GPS.
[0047] Step 3: The main control console adds a power timestamp to the simulation data packet and sends the simulation data packet to the communication simulation system;
[0048] Step 4: The communication simulation system uses the power simulation timestamp in the simulation data packet as the communication simulation start time in the global event axis, adds the communication simulation system packet receiving timestamp and the communication simulation timestamp to the simulation data packet after the communication simulation is completed, and forwards the simulation data packet to the main console;
[0049] Step 5: The main control console adds a receiving timestamp to the simulation data packet, calculates the communication transmission delay according to the timestamp in the simulation data packet, and returns the simulation data packet to the power simulation system, and the power simulation system starts the power simulation process after the communication transmission delay;
[0050] The communication transmission delay is calculated as follows:
[0051] T=(TR–TG)+(TA–TC)
[0052] Among them, the TR–TG time is the transmission time of the data packet from the main control console through the communication physical device to the communication simulation system, and the TA–TC time is the transmission time of the data packet through the communication simulation software and then through the communication physical device to the main control console. The sum of the two is the communication semi-physical simulation time.
[0053] The embodiment of the present invention also proposes a non-real-time semi-physical simulation synchronization device for a power grid information-physical fusion system, such as Figure 3 As shown, including:
[0054] The general control module is used to add a receiving timestamp to the simulation data packet including the power simulation timestamp, the power timestamp, the communication simulation packet receiving timestamp and the communication simulation timestamp, and calculate the communication transmission delay according to the power timestamp, the communication simulation packet receiving timestamp, the communication simulation timestamp and the receiving timestamp;
[0055] Power simulation module: used to suspend the power simulation process when a new power simulation event appears in the global event axis, send the simulation data packet with the power simulation timestamp and power timestamp added to the communication simulation system, and start the power simulation process after the communication transmission delay;
[0056] Communication simulation module: used to use the power simulation timestamp in the simulation data packet as the communication simulation start time, and send the simulation data packet with the communication simulation packet receiving timestamp and the communication simulation timestamp added to the main console after the communication simulation ends;
[0057] Physical communication device A: used to receive simulation data packets containing power simulation timestamp and power timestamp from the main control console and forward them to the communication simulation module;
[0058] Physical communication device B: used to receive simulation data packets including power simulation timestamp, power timestamp, communication simulation packet receiving timestamp and communication simulation timestamp from the communication simulation module, and forward them to the main console.
[0059] Specifically, the power simulation timestamp is the simulation time TE read from the global event axis when the power simulation system sends data to the communication simulation system;
[0060] The power timestamp is the computer current time information TG read after GPS synchronization when the main control console sends data to the communication simulation system;
[0061] The communication simulation packet receiving timestamp is the current time information TR of the computer after the communication simulation system receives the data packet and reads the time synchronized by GPS;
[0062] The communication simulation timestamp is to read the current time information TC of the computer after the GPS is synchronized while the communication simulation system completes the initialization of the expected fault and realizes synchronization with the simulation time TE;
[0063] The receiving timestamp is when the main console receives the data packet sent by the communication simulation system, and the main console reads the computer current time information TA after the time is synchronized by GPS.
[0064] Specifically, the communication transmission delay T is calculated as follows:
[0065] T=(TR–TG)+(TA–TC).
[0066] Embodiment 2
[0067] The following is a further detailed description using an actual non-real-time semi-physical simulation system.
[0068] The non-real-time semi-physical simulation system consists of four parts, including Digsilent power simulation software, QualNet communication simulation software, physical communication equipment and a main console. The physical communication equipment and QualNet communication simulation software cannot be paused or continued through an external control program during the simulation process. The non-real-time semi-physical simulation system is used to realize the simulation of the information-physical fusion system of the power grid.
[0069] The simulation process of the non-real-time semi-physical simulation system is described in detail below. The simulation process diagram is as follows: Figure 4 shown.
[0070] Before starting the simulation, first define a data packet format with a timestamp table, which will be transmitted between the software as a whole; define a global event axis, and add the communication and power simulation events to the global event axis in sequence according to the chronological order of occurrence. The global event axis can insert or delete simulation events according to simulation requirements;
[0071] Use Digsilent to build a stable control simulation scenario, use QualNet to build an SDH communication ring network, and replace the two nodes at the communication service sending and receiving ends with physical communication devices A and B. Connect Digsilent and QualNet to the main console respectively, and then start Digsilent and QualNet at the same time from the main console to start simulation, and display the simulation progress on the interface;
[0072] The global event axis manages the Digsilent simulation process. When encountering the first power event Event1, Digsilent pauses the simulation, reads the power simulation time at that moment (the logical time on the global event axis) as the power simulation timestamp TE1, writes it into the timestamp table, and sends the data packet to the main console.
[0073] After receiving the data packet, the main console displays that Digsilent has paused the simulation, uses GPS to synchronize the time to obtain the current computer time (physical time) as the power timestamp TG1, writes it into the timestamp table, and then forwards the data packet to the physical communication device A;
[0074] Physical communication device A sends the data packet to QualNet;
[0075] After QualNet receives the data packet, it uses GPS to synchronize the time to obtain the current computer time (physical time) as the communication simulation packet receiving timestamp TR1;
[0076] QualNet performs the initialization of the expected fault (handles the fault of the communication system, such as line interruption, channel congestion, etc., and the fault initialization time is not included in the communication simulation transmission delay). After the fault initialization is completed, the power simulation timestamp TE1 in the data packet is read and used as the start time of the communication simulation event on the virtual communication timeline. The current computer time (physical time) is obtained by using GPS synchronization as the communication simulation timestamp TC1 and written into the timestamp table;
[0077] QualNet performs communication simulation and sends a data packet containing the communication simulation results to the physical communication device B;
[0078] The main control console receives the data packet containing the communication simulation results, uses GPS to synchronize the time to obtain the current computer time (physical time) as the receiving timestamp TA1, writes it into the timestamp table, reads the timestamp table, calculates the communication simulation transmission delay T1 = (TR1-TG1) + (TA1-TC1), and forwards the data packet to Digsilent;
[0079] Digsilent reads the timestamp table and obtains the transmission delay T1 in the communication simulation. On the premise of maintaining the power simulation state unchanged, the power simulation time is advanced to TE1+T1, and the power simulation is continued until the event simulation is completed.
[0080] Repeat the above process until all power simulation events on the global event axis are completed.
[0081] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0082] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0083] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0085] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.
Claims
1. A non-real-time semi-physical simulation synchronization method for a power grid information-physical fusion system, characterized in that: The method comprises: Step 1: When a new power simulation event is found sequentially on the global event axis, the power simulation system suspends the power simulation process and sends a simulation data packet with a power simulation timestamp and a power timestamp added to the communication simulation system; Step 2: The communication simulation system uses the power simulation timestamp in the simulation data packet as the communication simulation start time, and after the communication simulation is finished, sends the simulation data packet with the communication simulation packet receiving timestamp and the communication simulation timestamp added to the main console; Step 3: The main control console adds a receiving timestamp to the simulation data packet containing the power simulation timestamp, the power timestamp, the communication simulation packet receiving timestamp and the communication simulation timestamp, and calculates the communication transmission delay based on the power timestamp, the communication simulation packet receiving timestamp, the communication simulation timestamp and the receiving timestamp. The power simulation system starts the power simulation process after the communication transmission delay.
2. The method according to claim 1, characterized in that The power simulation timestamp is the simulation time TE read from the global event axis when the power simulation system sends data to the communication simulation system; The power timestamp is the computer current time information TG read after GPS synchronization when sending data to the communication simulation system; The communication simulation packet receiving timestamp is the current time information TR of the computer after the communication simulation system receives the data packet and reads the time synchronized by GPS; The communication simulation timestamp is to read the current time information TC of the computer after the GPS is synchronized while the communication simulation system completes the initialization of the expected fault and realizes synchronization with the simulation time TE; The receiving timestamp is the computer current time information TA read after being synchronized by GPS when the main control console receives the data packet sent by the communication simulation system.
3. The method according to claim 2, characterized in that In step 3, the communication transmission delay T is calculated as follows: T=(TR–TG)+(TA–TC).
4. A non-real-time semi-physical simulation synchronization device for a power grid information-physical fusion system, characterized in that: include: The general control module is used to add a receiving timestamp to a simulation data packet including a power simulation timestamp, a power timestamp, a communication simulation packet receiving timestamp and a communication simulation timestamp, and calculate the communication transmission delay according to the power timestamp, the communication simulation packet receiving timestamp, the communication simulation timestamp and the receiving timestamp; Power simulation module: used to suspend the power simulation process when a new power simulation event appears in the global event axis, send the simulation data packet with the power simulation timestamp and power timestamp added to the communication simulation system, and start the power simulation process after the communication transmission delay; Communication simulation module: used to use the power simulation timestamp in the simulation data packet as the communication simulation start time, and send the simulation data packet with the communication simulation packet receiving timestamp and the communication simulation timestamp added to the main console after the communication simulation ends; Physical communication device A: used to receive simulation data packets containing power simulation timestamp and power timestamp from the main control console and forward them to the communication simulation module; Physical communication device B: used to receive simulation data packets including power simulation timestamp, power timestamp, communication simulation packet receiving timestamp and communication simulation timestamp from the communication simulation module, and forward them to the main console.
5. The device according to claim 4, characterized in that The power simulation timestamp is the simulation time TE read from the global event axis when the power simulation system sends data to the communication simulation system; The power timestamp is the computer current time information TG read after GPS synchronization when the main control console sends data to the communication simulation system; The communication simulation packet receiving timestamp is the current time information TR of the computer after the communication simulation system receives the data packet and reads the time synchronized by GPS; The communication simulation timestamp is to read the current time information TC of the computer after the GPS is synchronized while the communication simulation system completes the initialization of the expected fault and realizes synchronization with the simulation time TE; The receiving timestamp is when the main console receives the data packet sent by the communication simulation system, and the main console reads the computer current time information TA after the time is synchronized by GPS.
6. The device according to claim 5, characterized in that The communication transmission delay T is calculated as follows: T=(TR–TG)+(TA–TC).
Citation Information
Patent Citations
Distributed semi-physical network simulation system and controlling method of semi-physical port thereof
CN101645813A
Power and communication system coupling simulation platform and method based on application integration
CN102999674A