Electric power simulation data interaction system and method
By introducing power system simulation modules, communication network simulation modules and power system monitoring modules into the power simulation data interaction system, the problem that the existing technology cannot effectively collect, store and analyze simulated data, and efficient data interaction and analysis are achieved, and timely management and control of the power system is supported.
Patent Information
- Application Number
- CN202411964526.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-29
AI Technical Summary
The prior art cannot effectively collect, store and analyze simulation data in a timely manner, resulting in the inability to effectively manage and control complex power systems.
Provide a power simulation data interaction system, including power system simulation module, communication network simulation module and power system monitoring module, through these modules, configure system parameters, build power system models, perform real-time simulation, simulate communication network environment, analyze data packets and display operating status, and realize efficient data interaction and analysis.
It improves the speed of data packet processing, reduces the latency of data interaction, and can collect, store and analyze simulated data in a timely manner, thereby better managing and controlling the power system.
Smart Images

Figure CN119903568A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication data transmission, and in particular to a power simulation data interaction system and method. Background Art
[0002] With the development of smart grids and the continuous improvement of the informationization and automation level of power systems, the amount of grid operation data has increased dramatically and the complexity has increased. In order to better manage and control the increasingly complex power systems, efficient and accurate real-time simulation tools are needed to assist in decision-making and technology research and development. However, real-time simulation generates a large amount of data, and existing technologies cannot effectively collect, store and analyze simulation data in a timely manner.
[0003] Therefore, how to improve it is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0004] Based on this, the purpose of this application is to provide a power simulation data interaction system and method to solve at least one of the technical problems mentioned in the above background technology.
[0005] In a first aspect, the present application provides a power simulation data interaction system, including a power system simulation module, a communication network simulation module and a power system monitoring module which are sequentially connected in communication:
[0006] The power system simulation module is used to configure system parameters to build a power system model and perform real-time simulation on the power system model to obtain simulation data corresponding to the current operating status;
[0007] The communication network simulation module is used to configure the simulation network parameters, obtain the simulated communication network environment, make the simulation data or control instructions pass through the simulated communication network environment, obtain the simulation data packet, and parse the simulation data packet to obtain the network simulation data or control instruction;
[0008] The power system monitoring module is used to display the operating status of the power system model according to the network simulation data, and send control instructions to the power system simulation module to change the system parameters.
[0009] Furthermore, the power system simulation module includes:
[0010] A model building unit, used for configuring system parameters to build a power system model;
[0011] A real-time simulation unit is used to simulate the power system model in real time and obtain simulation data corresponding to the current operating state;
[0012] Physical network interface, used to send simulation data or receive control instructions.
[0013] Furthermore, the communication network simulation module includes:
[0014] Several physical network interfaces, used for receiving simulation data sent by the power system simulation module and control instructions sent by the power system monitoring module, and sending network simulation data to the power system monitoring module or sending control instructions to the power system simulation module;
[0015] A DPDK data conversion unit is used to parse the simulation data or control instructions to convert the simulation data or control instructions to obtain communication network data packets, and to parse the simulation data packets to obtain network simulation data or control instructions;
[0016] The communication network model is used to configure simulation network parameters to simulate the communication network environment, so that the communication network data packets experience the simulated communication network environment to obtain simulated data packets.
[0017] Furthermore, the DPDK data conversion unit includes:
[0018] Initialization element, used to initialize the operating environment, memory buffer, memory pool and data port;
[0019] Data port, used to receive or send data;
[0020] Memory buffers and memory pools for storing data received by the data ports;
[0021] The data processing element is used to convert simulation data or control instructions into communication network data packets, or to parse simulation data packets to obtain network simulation data or control instructions.
[0022] Furthermore, the initialization unit comprises:
[0023] The environment abstraction layer is used to set parameters according to the function rte_eal_init to initialize the operating environment;
[0024] The memory initialization component is used to initialize the memory buffer and memory pool queue according to the function init_mbuf_pools;
[0025] The data port initialization component is used to initialize the port configuration according to the function init_port, set the port attributes according to the function rte_eth_dev_configure, start the port sending and receiving queues according to the function rte_eth_rx / tx_queue_setup, activate the port work according to the function rte_eth_dev_start, and set the callback function to send and receive data.
[0026] Furthermore, the data processing element comprises:
[0027] A data parsing component is used to parse simulation data to obtain pointers to protocol data structures at each layer of simulation data, or to parse simulation data packets to obtain network simulation data or control instructions;
[0028] A data conversion component is used to convert the protocol data structure pointers or control instructions of each layer of simulation data to obtain communication network data packets, or convert simulation data packets to obtain network simulation data or control instructions according to the prior communication network data packet format;
[0029] The data transmission component is used to transmit control instructions or network simulation data to the data port.
[0030] Furthermore, the communication network model includes:
[0031] A network parameter configuration unit, used to configure the simulation network parameters of each virtual node;
[0032] Several virtual nodes are used to simulate corresponding network nodes in a real communication network environment.
[0033] Furthermore, the power system monitoring module includes:
[0034] A physical network interface, used to receive network simulation data sent by the communication network simulation module and send control instructions;
[0035] An analysis unit, used to analyze all received network simulation data and generate data reports, trend graphs and fault reports;
[0036] A display unit is used to display the operating status of the power system model, as well as current system parameters, data reports and trend graphs based on network simulation data;
[0037] A monitoring unit, used to record the operating status and fault reports of the power system model;
[0038] The early warning unit is used to determine whether the network simulation data is greater than the alarm threshold according to the set alarm threshold. If not, it remains unchanged. If so, it notifies the scheduled staff;
[0039] The control unit is used to input control instructions to the power system model.
[0040] In a second aspect, the present application further provides a power simulation data interaction method, which is applied to the power simulation data interaction system as described in the first aspect or any one of the implementations thereof, comprising:
[0041] S1: Configure system parameters to build a power system model;
[0042] S2: Perform real-time simulation on the power system model to obtain simulation data corresponding to the current operating state;
[0043] S3: configuring simulation network parameters to obtain a simulated communication network environment, subjecting simulation data to the simulated communication network environment, and obtaining network simulation data;
[0044] S4: Display the operating status of the power system model according to the network simulation data, and send control instructions to the power system model to change system parameters, and return to step S2.
[0045] Further, the steps of configuring simulation network parameters to obtain a simulated communication network environment, subjecting simulation data to the simulated communication network environment, and obtaining network simulation data include:
[0046] Configure simulation network parameters to obtain a simulated communication network environment;
[0047] Parse the simulation data and obtain the protocol data structure pointers of each layer of the simulation data;
[0048] According to the a priori communication network data packet format, convert the protocol data structure pointers of each layer of the simulation data to obtain the communication network data packet;
[0049] Allowing a communication network data packet to undergo a simulated communication network environment to obtain a simulated data packet;
[0050] Parse the simulated data packets to obtain network simulation data.
[0051] The present invention provides a power simulation data interaction system and method, which configures system parameters through a power system simulation module to construct a power system model, and performs real-time simulation on the power system model to obtain simulation data corresponding to the current operating state, and then configures simulation network parameters through a communication network simulation module to obtain a simulated communication network environment, so that simulation data or control instructions undergo a simulated communication network environment to obtain a simulated data packet, and parses the simulated data packet to obtain network simulation data or control instructions, thereby increasing the data packet processing speed and reducing the delay in data interaction, and finally displays the operating state of the power system model according to the network simulation data through a power system monitoring module, and sends control instructions to the power system simulation module to change system parameters to obtain the operating state of the power system under different system parameters. The present invention solves the problem that the prior art cannot effectively collect, store and analyze simulation data in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is an architecture diagram of a power simulation data interaction system according to an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of the structure of a power simulation data interaction system according to an embodiment of the present invention;
[0054] Figure 3Schematic diagram of the flow of the power simulation data interaction method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] It should be noted that if the embodiments of the present invention involve directional indications, such as up, down, left, right, front, back, etc., then the directional indication is only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly. In addition, if the embodiments of the present invention involve descriptions of "first, second", "S1, S2", "step one, step two", etc., then such descriptions are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features or indicating the execution order of the method, etc. Those skilled in the art can understand that anything that does not violate the gist of the invention under the technical concept of the invention should be included in the protection scope of the present invention.
[0057] Glossary:
[0058] Cyber-physical system (CPS) is a hybrid autonomous system with multi-dimensional heterogeneity in time and space formed by the deep integration of information resources and physical systems. It involves multiple disciplines such as computational science, network communication, and control theory, and is widely present in various fields such as aerospace and energy industry. With the interconnection of a large number of data acquisition equipment, computing equipment, and electrical equipment through two physical networks, the power grid and the communication network, the power system has the basic characteristics of CPS and has become a power cyber-physical fusion system. The power cyber-physical system is a complex system with deep integration and real-time interaction between information space and physical space. The analysis of the interaction mechanism at the specific power business level will help to conduct a panoramic mechanism study on the power cyber-physical system in the next step.
[0059] OPAL-RT real-time simulator: OPAL-RT's real-time simulator is widely used in the development and testing of power electronics, energy systems, and control systems. Its system can run large-scale physical models in real time through the combination of high-performance computing hardware and simulation software, thereby realizing hardware-in-the-loop and software-in-the-loop (SIL, Software-in-the-Loop) simulation. OPAL-RT is a company that provides real-time simulation and hardware-in-the-loop (HIL, Hardware-in-the-Loop) solutions, focusing on real-time simulation of complex systems such as power systems, autonomous driving, aerospace, etc.
[0060] RT-LAB real-time simulation management software: It is a software product of OPAL-RT, the same as the OPAL-RT real-time simulator. As the host software of the OPAL-RT real-time simulator, RT-LAB is integrated with MATLAB / Simulink to provide users with a seamless distributed computing execution platform for real-time synchronization, user interface, real-time hardware interface and data interaction.
[0061] OMNet++ (Objective Modular Network Test Bed in C++) is an open source multi-protocol network simulation software. As an open network simulation platform based on component modularization, it has a complete graphical interface and an embeddable simulation kernel, and can be used for simulation of distributed systems and communication networks.
[0062] INET is a very commonly used network protocol and component model library on the OMNet++ platform, covering a variety of protocols and technologies from the network layer to the application layer. Its main functions and features include Internet stack models (TCP, UDP, IPv4, IPv6, OSPF, BGP, etc.), wired and wireless link layer protocols (Ethernet, PPP, IEEE 802.11, etc.), INET also contains some high-level application protocol models that can help simulate the traffic behavior of actual network applications, such as HTTP, FTP, etc.
[0063] DPDK (Data Plane Development Kit): Developed by 6WIND, Intel and other companies, it is a collection of function libraries and drivers for fast data packet processing, which can greatly improve data processing performance and throughput, and improve the efficiency of data plane applications.
[0064] Figure 1 FIG. 1 is a schematic diagram of the architecture of the power simulation data interaction system of the present invention, wherein NIC1 ... NIC4 are physical network interfaces, Node1 ... Noden are virtual nodes, such as Figure 2As shown, the present invention provides a power simulation data interaction system, including a power system simulation module 101, a communication network simulation module 102 and a power system monitoring module 103 which are communicatively connected in sequence.
[0065] Specifically, the power system simulation module 101 is used to configure the system parameters of the power cyber-physical system to construct a power cyber-physical system model, referred to as the power system model, and to perform real-time simulation on the power system model to obtain simulation data corresponding to the current operating state;
[0066] In one possible implementation, the power system simulation module 101 also includes a model building unit, which is used to configure system parameters to build a power system model; a real-time simulation unit, which is used to simulate the power system model in real time to obtain simulation data corresponding to the current operating status; and a physical network interface, which is used to send simulation data or receive control instructions.
[0067] As an example, a technician in this field can choose to arbitrarily configure the system parameters, and then obtain key components in the power system such as generators, transformers, transmission lines and loads from any existing component library, and then build a power system model through platforms such as MATLAB / Simulink to simulate the current operating status of the power system; system parameters include the rated power of the generator, voltage level, capacity of the transformer, length and impedance of the line and other parameters.
[0068] As an example, the RT-LAB real-time simulation platform is used as a real-time simulation unit, which is responsible for executing real-time simulation of the power system model, obtaining simulation data corresponding to the current operating state of the simulated power system, and then outputting it to the physical network interface through the IO module or IOInterface function.
[0069] Specifically, the communication network simulation module 102 is used to configure simulation network parameters, obtain a simulated communication network environment, make simulation data or control instructions pass through the simulated communication network environment, obtain simulation data packets, and parse the simulation data packets to obtain network simulation data or control instructions.
[0070] In a possible implementation, the communication network simulation module 102 further includes:
[0071] Several physical network interfaces, used for receiving simulation data sent by the power system simulation module and control instructions sent by the power system monitoring module, and sending network simulation data to the power system monitoring module or sending control instructions to the power system simulation module;
[0072] A DPDK data conversion unit is used to parse the simulation data or control instructions to convert the simulation data or control instructions to obtain communication network data packets, and to parse the simulation data packets to obtain network simulation data or control instructions;
[0073] The communication network model is used to configure simulation network parameters to construct a communication network model, thereby simulating the communication network environment, allowing the communication network data packets to experience the simulated communication network environment to obtain simulated data packets.
[0074] As an example, before configuring the simulation network parameters, it is optional to configure the simulation network parameters based on network simulation software such as OPNET or OMNet++ to build an initial communication network model.
[0075] In a possible implementation, the DPDK data conversion unit includes:
[0076] Initialization element, used to initialize the operating environment, memory buffer, memory pool and data port;
[0077] Data port, used to receive or send data;
[0078] Memory buffers and memory pools for storing data received by the data ports;
[0079] The data processing element is used to convert simulation data or control instructions into communication network data packets, or to parse simulation data packets to obtain network simulation data or control instructions.
[0080] As an example, the DPDK data conversion unit adopts polling mode instead of interrupt-driven mode. In polling mode, the packet processing thread continuously checks whether new data packets have arrived at the network interface instead of waiting for interrupt signals, so as to reduce the interrupt processing overhead and control the processing of data packets in a more fine-grained manner.
[0081] As an example, the DPDK data conversion unit runs in user space and directly accesses the network interface through user space, avoiding frequent switching between kernel space and user space, so DPDK applications can interact directly with the hardware without making system calls.
[0082] As an example, the DPDK data conversion unit uses large page memory allocation and ring buffers to manage data packets. When a data packet arrives, it is directly stored in the large page memory without the need to copy it from kernel space to user space. This zero-copy technology reduces the consumption of CPU cycles and the pressure on memory bandwidth.
[0083] As an example, the buffer management in the DPDK data conversion unit adopts a lock-free design, which can reduce lock contention and context switching overhead when processing packets in a multi-threaded environment.
[0084] As an example, the DPDK data conversion unit supports the non-uniform memory access (NUMA) architecture, allowing packet processing threads to prioritize access to local memory, reducing the latency of accessing memory across nodes.
[0085] As an example, the DPDK data conversion unit loads the user space I / O (UIO) driver so that the DPDK data conversion unit can interact directly with the network interface card in user space, bypassing the kernel network stack to improve the performance of packet processing and further reduce the data processing time in kernel space.
[0086] As an example, the DPDK data conversion unit provides a series of high-performance libraries, such as rte_memcpy(), which use the SIMD instruction set of modern CPUs to accelerate memory operations and further improve performance.
[0087] In a possible implementation, the initialization unit includes:
[0088] The environment abstraction layer is used to set parameters according to the function rte_eal_init to initialize the operating environment;
[0089] The memory initialization component is used to initialize the memory buffer and memory pool queue according to the function init_mbuf_pools;
[0090] The data port initialization component is used to initialize the port configuration according to the function init_port, set the port attributes according to the function rte_eth_dev_configure, start the port sending and receiving queues according to the function rte_eth_rx / tx_queue_setup, activate the port work according to the function rte_eth_dev_start, and set the callback function to send and receive data.
[0091] In a possible implementation, the data processing element includes:
[0092] A data parsing component is used to parse simulation data to obtain pointers to protocol data structures at each layer of simulation data, or to parse simulation data packets to obtain network simulation data or control instructions;
[0093] A data conversion component is used to convert the protocol data structure pointers or control instructions of each layer of simulation data to obtain communication network data packets, or convert simulation data packets to obtain network simulation data or control instructions according to the prior communication network data packet format;
[0094] The data transmission component is used to transmit control instructions or network simulation data to the data port.
[0095] As an example, since DPDK technology supports standard network protocol stack data packet parsing, it is possible to optionally obtain pointers to protocol data structures at each layer of the data packet through the corresponding interface; preferably, if the data packet contains a custom protocol header, a technician in this field can optionally customize and develop parsing logic according to actual needs to identify the custom protocol header.
[0096] As an example, the data conversion component converts the parsed data packet into a priori communication network data packet format according to the structure definition of the simulation data, and finally transmits the communication network data packet to the network port through the ring buffer queue.
[0097] In a possible implementation, the communication network model includes:
[0098] A network parameter configuration unit, used to configure the simulation network parameters of each virtual node;
[0099] Several virtual nodes are used to simulate each network node in the communication network environment.
[0100] As an example, each virtual node is mapped to each physical network interface one by one, and mapping configuration information is set for the corresponding virtual node according to the physical network interface to ensure that the data received from the physical network interface can be correctly transmitted to the corresponding virtual node, and the data sent from the virtual node can be sent out through the correct physical network interface, and ensure that the DPDK data conversion module can convert the received data into the correct format; mapping configuration information includes information such as port name, IP and data interaction protocol definition. Among them, the port name and IP address are used to identify the physical port and virtual node, and the data interaction protocol definition specifies the structure and transmission rules of the data packet to ensure that the DPDK data conversion unit correctly processes and converts the data packet.
[0101] Specifically, the power system monitoring module 103 is used to display the operating status of the power system model according to the network simulation data, and send control instructions to the power system simulation module to change system parameters.
[0102] In a possible implementation, the power system monitoring module 103 includes:
[0103] A physical network interface, used to receive network simulation data sent by the communication network simulation module and send control instructions;
[0104] The analysis unit is used to analyze all received network simulation data and generate data reports, trend charts and fault reports; it is worth noting that data reports, trend charts and fault reports are only a form of data presentation, and can also be presented as any chart such as bar charts, bar charts and area charts, but is not limited to this.
[0105] A display unit is used to display the operating status of the power system model, as well as current system parameters, data reports and trend graphs based on network simulation data;
[0106] A monitoring unit, used to record the operating status and fault reports of the power system model;
[0107] The early warning unit is used to determine whether the network simulation data is greater than the alarm threshold according to the set alarm threshold. If not, it remains unchanged. If so, it notifies the scheduled staff;
[0108] The control unit is used to input control instructions to the power system model.
[0109] As an example, each data in the network simulation data is set with a corresponding alarm threshold, such as a voltage threshold, a current threshold, a power threshold, and a frequency threshold.
[0110] As an example, the early warning unit pre-binds several staff members, and then determines in real time whether the received network simulation data is greater than the corresponding set alarm threshold. If not, it remains unchanged. If so, the predetermined staff members can be notified through any communication method such as SMS, email and phone.
[0111] In this embodiment, a power simulation data interaction system of the present invention is provided. The system parameters are configured through the power system simulation module to construct a power system model, and the power system model is simulated in real time to obtain simulation data corresponding to the current operating state. Then, the simulation network parameters are configured through the communication network simulation module to obtain a simulated communication network environment, so that the simulation data or control instructions are subjected to the simulated communication network environment to obtain a simulated data packet, and the simulated data packet is parsed to obtain network simulation data or control instructions, thereby improving the data packet processing speed and reducing the delay of data interaction. Finally, the operating state of the power system model is displayed according to the network simulation data through the power system monitoring module, and control instructions are sent to the power system simulation module to change the system parameters to obtain the operating state of the power system under different system parameters. The problem that the existing technology cannot effectively collect, store and analyze simulation data in a timely manner is solved.
[0112] On the other hand, the present invention further provides a method for interacting with power simulation data. Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, the method in this embodiment is applied to the above power simulation data interaction system. Figure 3 As shown, the method provided in this embodiment includes the following steps:
[0113] S1: Configure system parameters to build a power system model;
[0114] Specifically, it is optional but not limited to that the technical personnel in this field can arbitrarily configure the system parameters, and then obtain the key components of the power system such as generators, transformers, transmission lines and loads from any existing component library, and then build a power system model through platforms such as MATLAB / Simulink to simulate the current operating status of the power system; system parameters include the rated power of the generator, the voltage level, the capacity of the transformer, the length and impedance of the line and other parameters.
[0115] S2: Perform real-time simulation on the power system model to obtain simulation data corresponding to the current operating state;
[0116] Specifically, it is optional but not limited to simulate the power system model constructed in step S1 according to any existing real-time simulation platform to obtain simulation data of the power system model; the simulation data includes voltage, current, power, frequency, load, generator status, equipment status (transformer, switch, line, etc.), etc.
[0117] Preferably, the simulation platform adopts the RT-LAB real-time simulation platform.
[0118] S3: configuring simulation network parameters to obtain a simulated communication network environment, subjecting simulation data to the simulated communication network environment, and obtaining network simulation data;
[0119] Specifically, it is optional but not limited to that the technical personnel in this field pre-configure the simulation network parameters to obtain a simulated communication network environment, and then transmit the simulation data in the virtual nodes in the simulated communication network environment to simulate various network characteristics and problems in the network transmission process, obtain simulated data packets, and parse them to obtain network simulation data; network characteristics and problems, including common network problems such as unrestricted delay jitter, network transmission bandwidth, and network attacks.
[0120] Preferably, the step of configuring simulation network parameters to obtain a simulated communication network environment, subjecting simulation data to the simulated communication network environment, and obtaining network simulation data may optionally include:
[0121] S31: configure simulation network parameters to obtain a simulated communication network environment;
[0122] Specifically, it is optional but not limited to constructing several blank virtual nodes, and configuring simulation network parameters for each blank node, so that each virtual node corresponds one-to-one with a real communication node, so as to simulate each communication node in the real communication environment and obtain a simulated communication network environment; simulation network parameters, optionally including common network parameters such as network topology parameters, link parameters, protocol parameters, and traffic parameters.
[0123] S32: parse the simulation data to obtain the protocol data structure pointers of each layer of the simulation data;
[0124] S33: according to the a priori communication network data packet format, convert the protocol data structure pointers of each layer of the simulation data to obtain the communication network data packet;
[0125] S34: subjecting the communication network data packet to a simulated communication network environment to obtain a simulated data packet;
[0126] S35: Parse the simulated data packet to obtain network simulation data.
[0127] Specifically, it is optional but not limited to parsing the simulation data to obtain the pointers of the protocol data structures of each layer of the simulation data, and then converting the pointers of the protocol data structures of each layer of the simulation data according to the a priori communication network data packet format to obtain the communication network data packet, and then making the communication network data packet transmit data in each virtual node in the simulated communication network environment, simulating various common network characteristics and problems such as various packet loss that may occur during data transmission in the real communication environment, to obtain the simulation data packet, and finally parsing the simulation data packet to obtain the simulation data that has experienced the simulated communication network environment, that is, the network simulation data.
[0128] S4: Display the operating status of the power system model according to the network simulation data, and send control instructions to the power system model to change system parameters, and return to step S2.
[0129] Specifically, it is optional but not limited to obtaining the operating status of the power system model based on the network simulation data and displaying it, and then the technical personnel in this field send control instructions to the power system model according to the simulation requirements to change the system parameters of the power system model, thereby changing the operating status of the power system, and returning to step S2 to obtain updated simulation data.
[0130] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A power simulation data interaction system, characterized in that: It includes a power system simulation module, a communication network simulation module and a power system monitoring module which are connected in sequence: The power system simulation module is used to configure system parameters to build a power system model and perform real-time simulation on the power system model to obtain simulation data corresponding to the current operating status; The communication network simulation module is used to configure the simulation network parameters, obtain the simulated communication network environment, make the simulation data or control instructions pass through the simulated communication network environment, obtain the simulation data packet, and parse the simulation data packet to obtain the network simulation data or control instruction; The power system monitoring module is used to display the operating status of the power system model according to the network simulation data, and send control instructions to the power system simulation module to change the system parameters.
2. The system according to claim 1, characterized in that Power system simulation module, including: A model building unit, used for configuring system parameters to build a power system model; A real-time simulation unit is used to simulate the power system model in real time and obtain simulation data corresponding to the current operating state; Physical network interface, used to send simulation data or receive control instructions.
3. The system according to claim 1, characterized in that Communication network simulation module, including: Several physical network interfaces, used for receiving simulation data sent by the power system simulation module and control instructions sent by the power system monitoring module, and sending network simulation data to the power system monitoring module or sending control instructions to the power system simulation module; A DPDK data conversion unit is used to parse the simulation data or control instructions to convert the simulation data or control instructions to obtain communication network data packets, and to parse the simulation data packets to obtain network simulation data or control instructions; The communication network model is used to configure simulation network parameters to simulate the communication network environment, so that the communication network data packets experience the simulated communication network environment to obtain simulated data packets.
4. The system according to claim 3, characterized in that DPDK data conversion unit, including: Initialization element, used to initialize the operating environment, memory buffer, memory pool and data port; Data port, used to receive or send data; Memory buffers and memory pools for storing data received by the data ports; The data processing element is used to convert simulation data or control instructions into communication network data packets, or to parse simulation data packets to obtain network simulation data or control instructions.
5. The system according to claim 4, characterized in that Initialization components, including: The environment abstraction layer is used to set parameters according to the function rte_eal_init to initialize the operating environment; The memory initialization component is used to initialize the memory buffer and memory pool queue according to the function init_mbuf_pools; The data port initialization component is used to initialize the port configuration according to the function init_port, set the port attributes according to the function rte_eth_dev_configure, start the port sending and receiving queues according to the function rte_eth_rx / tx_queue_setup, activate the port work according to the function rte_eth_dev_start, and set the callback function to send and receive data.
6. The system according to claim 4, characterized in that Data processing components, including: A data parsing component is used to parse simulation data to obtain pointers to protocol data structures at each layer of simulation data, or to parse simulation data packets to obtain network simulation data or control instructions; A data conversion component is used to convert the protocol data structure pointers or control instructions of each layer of simulation data to obtain communication network data packets, or convert simulation data packets to obtain network simulation data or control instructions according to the prior communication network data packet format; The data transmission component is used to transmit control instructions or network simulation data to the data port.
7. The system according to claim 3, characterized in that Communication network models, including: A network parameter configuration unit, used to configure the simulation network parameters of each virtual node; Several virtual nodes are used to simulate corresponding network nodes in a real communication network environment.
8. The system according to claim 1, characterized in that Power system monitoring module, including: A physical network interface, used to receive network simulation data sent by the communication network simulation module and send control instructions; An analysis unit, used to analyze all received network simulation data and generate data reports, trend graphs and fault reports; A display unit is used to display the operating status of the power system model, as well as current system parameters, data reports and trend graphs based on network simulation data; A monitoring unit, used to record the operating status and fault reports of the power system model; The early warning unit is used to determine whether the network simulation data is greater than the alarm threshold according to the set alarm threshold. If not, it remains unchanged. If so, it notifies the scheduled staff; The control unit is used to input control instructions to the power system model.
9. A method for interacting with power simulation data, characterized in that: The electric power simulation data interaction system according to any one of claims 1 to 8 comprises: S1: Configure system parameters to build a power system model; S2: Perform real-time simulation on the power system model to obtain simulation data corresponding to the current operating state; S3: configuring simulation network parameters to obtain a simulated communication network environment, subjecting simulation data to the simulated communication network environment, and obtaining network simulation data; S4: Display the operating status of the power system model according to the network simulation data, and send control instructions to the power system model to change system parameters, and return to step S2.
10. The method according to claim 9, characterized in that The steps of configuring simulation network parameters to obtain a simulated communication network environment, subjecting simulation data to the simulated communication network environment, and obtaining network simulation data include: Configure simulation network parameters to obtain a simulated communication network environment; Parse the simulation data and obtain the protocol data structure pointers of each layer of the simulation data; According to the a priori communication network data packet format, convert the protocol data structure pointers of each layer of the simulation data to obtain the communication network data packet; Allowing a communication network data packet to undergo a simulated communication network environment to obtain a simulated data packet; Parse the simulated data packets to obtain network simulation data.