Data interaction method of simulation system, controller, storage medium and processor

By determining the target time to receive and store simulation data in the power system simulation system, and using a buffer to store data by type, the problem of low utilization of fiber optic transmission channels is solved, and more efficient data transmission is achieved.

CN116595053BActive Publication Date: 2026-04-28ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
Filing Date
2023-05-19
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

In existing technologies, the utilization rate of fiber optic transmission channels in multi-rate real-time simulation of power systems is low, and fiber optic transmission channels can only transmit fixed types of simulation data, resulting in resource waste.

Method used

In the simulation system, the controller determines whether the current time is the target time, receives simulation data from the high-speed system and stores it in the buffer. The buffer area of ​​the buffer stores the simulation data by type, including current and voltage. The label is transmitted through the optical fiber transmission channel to determine the data type, thereby improving the optical fiber transmission efficiency.

Benefits of technology

This improved the utilization rate of the fiber optic transmission channel, increasing its efficiency to 63/64*N times the original, solving the problem of low utilization of the fiber optic transmission channel, and achieving more efficient data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116595053B_ABST
    Figure CN116595053B_ABST
Patent Text Reader

Abstract

The application provides a data interaction method of a simulation system, a controller, a storage medium and a processor. The method comprises the following steps: determining whether a current time is a target time in a process in which the simulation system simulates a power system, the target time being an initial time of a target simulation step length, the target simulation step length being any one of a plurality of first simulation step lengths, and the first simulation step length being a simulation step length of a high-speed system; and in the case where the current time is the target time, starting to receive simulation data of the high-speed system transmitted through an optical fiber transmission channel and storing the simulation data in a buffer. The method solves the problem of low utilization of a multi-rate real-time simulation optical fiber transmission channel for the power system in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system technology, and more specifically, to a data interaction method, controller, storage medium, processor, and simulation system for a simulation system. Background Technology

[0002] A power system consists of subsystems with fast state updates and subsystems with slow state updates. In multi-rate real-time simulation of a power system, a high-speed system is used to simulate the subsystems with fast state updates, and a low-speed system is used to simulate the subsystems with fast state updates. The update rate and response time of the high-speed and low-speed systems can be adjusted as needed to ensure synchronization and coordination between the high-speed and low-speed systems.

[0003] In existing schemes, for multi-rate real-time simulation of power systems, the simulation step size of the high-speed system is Th, and the simulation step size of the low-speed system is Tl. The ratio of the simulation step size of the low-speed system to that of the high-speed system is N = Tl / Th. The simulation time of the high-speed system advances by N simulation steps Th, and the simulation time of the low-speed system advances by 1 simulation step Tl. At each simulation step Th of the high-speed system, the high-speed system will exchange data with the low-speed system once. The low-speed system will only use the data exchanged during the Nth simulation step Th of the high-speed system. The data exchanged during the 1st to N-1th simulation steps Th of the high-speed system will be directly discarded. Therefore, the utilization rate of the optical fiber transmission channel is only 1 / N. For multi-rate real-time simulation of power systems, the utilization rate of the optical fiber transmission channel is low.

[0004] Furthermore, in the existing scheme, for multi-rate real-time simulation of power systems, the data exchanged by each fiber optic transmission channel is a fixed type of simulation data (e.g., voltage or current), and the 64 bidirectional transmission channels can only transmit exactly 64 types of simulation data. Summary of the Invention

[0005] The main objective of this application is to provide a data interaction method, controller, storage medium, processor, and simulation system for a simulation system, so as to at least solve the problem of low utilization of fiber optic transmission channels for multi-rate real-time simulation of power systems in the prior art.

[0006] To achieve the above objectives, according to one aspect of this application, a data interaction method for a simulation system is provided. The simulation system is a simulation model of a power system, which includes multiple subsystems. The simulation system includes a low-speed system and a high-speed system. The low-speed system is a simulation model of the subsystem whose state is updated at a first rate, and the high-speed system is a simulation model of the subsystem whose state is updated at a second rate greater than the first rate. The low-speed system includes a controller and a buffer. The controller is communicatively connected to the buffer, and the controller is communicatively connected to the high-speed system via an optical fiber transmission channel. The data interaction method of the simulation system is applied to the controller. The method includes: during the simulation of the power system by the simulation system, determining whether the current time is a target time, where the target time is the initial time of a target simulation step size, and the target simulation step size is any one of a plurality of first simulation step sizes, where the first simulation step size is the simulation step size of the high-speed system; if the current time is the target time, starting to receive simulation data of the high-speed system transmitted through the optical fiber transmission channel, and storing the simulation data in the buffer.

[0007] Optionally, the buffer includes multiple buffer areas. Storing the simulation data in the buffer includes: determining the type of the simulation data and storing the simulation data in the buffer area corresponding to the type to which the simulation data belongs. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer area.

[0008] Optionally, determining the type of the simulation data includes: obtaining a label, wherein the label is represented as V = N1%N2. Wherein, V is the label, N1 is used to characterize that the current time is at the N1th first simulation step, T1 is the second simulation step, T2 is the first simulation step, and the second simulation step is the simulation step of the low-speed system; the type of the simulation data is determined according to the first mapping relationship and the label, and the first mapping relationship is the mapping relationship between the type of the simulation data and the label.

[0009] Optionally, there are multiple optical fiber transmission channels. Obtaining a label includes setting a first target optical fiber transmission channel, where the first target optical fiber transmission channel is one of the optical fiber transmission channels; and obtaining the label from the first target optical fiber transmission channel.

[0010] Optionally, starting to receive simulation data of the high-speed system transmitted through the optical fiber transmission channel includes: starting to receive simulation data of the high-speed system transmitted through a second target optical fiber transmission channel, wherein the second target optical fiber channel is an optical fiber transmission channel that is different from the first target optical fiber transmission channel.

[0011] Optionally, determining whether the current time is the target time includes: obtaining a target ratio, wherein the target ratio is the ratio of the current time to the first simulation step size; if the target ratio is an integer, determining that the current time is the target time; if the target ratio is not an integer, determining that the current time is not the target time.

[0012] According to another aspect of this application, a controller is provided, which is applied to a data interaction method of any of the simulation systems described above. The controller includes: a determining unit, configured to determine whether the current time is a target time during the simulation of the power system by the simulation system, wherein the target time is the initial time of a target simulation step size, and the target simulation step size is any one of a plurality of first simulation step sizes, wherein the first simulation step size is the simulation step size of the high-speed system; and a receiving unit, configured to, when the current time is the target time, start receiving simulation data of the high-speed system transmitted through the optical fiber transmission channel, and store the simulation data in the buffer.

[0013] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the data interaction methods of the simulation system described above.

[0014] According to another aspect of this application, a processor is provided for running a program, wherein the program executes any of the data interaction methods of the simulation system described above.

[0015] According to one aspect of this application, a simulation system is provided, comprising: a high-speed system; and a low-speed system, the low-speed system including a controller and a buffer, the controller being communicatively connected to the buffer, and the controller being communicatively connected to the high-speed system via an optical fiber transmission channel, the controller being used to execute any of the data interaction methods of the simulation system described above.

[0016] By applying the technical solution of this application, compared with the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the optical fiber transmission channel, this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system), that is, it receives the simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the optical fiber transmission channel for multi-rate real-time simulation of power systems in the prior art. Attached Figure Description

[0017] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 A hardware structure block diagram of a mobile terminal for performing a data interaction method of a simulation system according to an embodiment of this application is shown;

[0019] Figure 2 A flowchart illustrating a data interaction method for a simulation system according to an embodiment of this application is shown.

[0020] Figure 3 A structural block diagram of a controller provided according to an embodiment of this application is shown. Detailed Implementation

[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:

[0025] Multi-rate real-time simulation is a real-time simulation technique that can simultaneously handle multiple events and processes at different time scales. In multi-rate real-time simulation, the power system is modeled as multiple subsystems operating in parallel, each corresponding to a different time scale.

[0026] RTDS (Real Time Digital Simulator), developed and manufactured by RTDS Inc. in Manitoba, Canada, is a real-time simulation device specifically designed for studying electromagnetic transient phenomena in power systems. This simulation device is currently widely used in the field of power research in China.

[0027] GTFPGA: An optional RTDS auxiliary hardware component that enhances the functionality of certain RTDS applications. GTFPGA communicates with RTDS in real time via fiber optic cables. Each fiber optic channel can transmit 64 32-bit integers or floating-point numbers bidirectionally at each real-time simulation step. GTFPGA also has strong computing power and can perform joint multi-rate real-time simulations with RTDS. RTDS simulates subsystems with fast-updating states, while GTFPGA simulates subsystems with slow-updating states, and the two communicate in real time via fiber optic cables.

[0028] Simulation step size: refers to the time step or spatial step size used in numerical simulation. In numerical simulation, the model is usually discretized, that is, the continuous physical quantities (such as time and space) in the model are divided into a series of discrete points or time steps, and the numerical solution is calculated at each point or time step. The simulation step size is the distance or interval between these discrete points or time steps.

[0029] As described in the background section, the utilization rate of fiber optic transmission channels for multi-rate real-time simulation of power systems is low in the prior art. To address the problem of low utilization rate of fiber optic transmission channels for multi-rate real-time simulation of power systems in the prior art, embodiments of this application provide a data interaction method, controller, storage medium, processor, and simulation system for a simulation system.

[0030] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0031] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a data interaction method of a simulation system according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0032] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device information display method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] This embodiment provides a data interaction method for a simulation system running on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0034] The simulation system is a simulation model of a power system, which includes multiple subsystems. The simulation system includes a low-speed system and a high-speed system. The low-speed system is a simulation model of the subsystem whose state is updated at a first rate, and the high-speed system is a simulation model of the subsystem whose state is updated at a second rate, which is greater than the first rate. The low-speed system includes a controller and a buffer. The controller is communicatively connected to the buffer. The controller is communicatively connected to the high-speed system through an optical fiber transmission channel. The data interaction method of the simulation system is applied to the controller.

[0035] Specifically, in one embodiment, the high-speed system is RTDS, used to simulate a subsystem in a power system whose state is updated at a second rate, and the low-speed system is GTFPGA, used to simulate a subsystem in a power system whose state is updated at a first rate.

[0036] Figure 2 This is a flowchart of a data interaction method for a simulation system according to an embodiment of this application. For example... Figure 2 As shown, the method includes the following steps:

[0037] Step S201: During the simulation of the power system by the above simulation system, determine whether the current time is the target time. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system.

[0038] Specifically, in existing technologies, low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system, while the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system is directly discarded. Therefore, the utilization rate of the optical fiber transmission channel is only 1 / N. For multi-rate real-time simulation of power systems, the utilization rate of the optical fiber transmission channel is low. To solve this technical problem, it is first necessary to determine whether the simulation time has reached the start time of each first simulation step (the simulation step of the high-speed system).

[0039] The above step S201 can be implemented as follows:

[0040] Obtain the target ratio, which is the ratio of the current time to the first simulation step size;

[0041] If the target ratio is an integer, the current time is determined to be the target time; if the target ratio is not an integer, the current time is determined not to be the target time.

[0042] In this embodiment, in some implementations, for multi-rate real-time simulation of a power system, the simulation time includes M first simulation steps (simulation steps of a high-speed system). If the ratio of the current time to the first simulation step is an integer, the simulation time is determined to have reached the initial time of a first simulation step. If the ratio of the current time to the first simulation step is not an integer, the simulation time is determined to have reached a moment within the first simulation step.

[0043] Step S202: When the current time is the target time, start receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel and store the simulation data in the buffer.

[0044] Specifically, in some implementations, compared to the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system, and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the optical fiber transmission channel, this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system), that is, it receives simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the optical fiber transmission channel for multi-rate real-time simulation of power systems in the prior art.

[0045] The aforementioned buffer includes multiple buffer areas, and the process of storing the simulation data in the aforementioned buffer in step S202 can be implemented as follows:

[0046] Step S2021: Determine the type of the simulation data and store the simulation data in the buffer corresponding to the type of the simulation data. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer.

[0047] In this embodiment, to facilitate the use of simulation data from the high-speed system, simulation data of the same type are stored in the same cache area of ​​the cache.

[0048] The above step S2021 can be implemented as follows:

[0049] Step S20211, obtain the label, which is represented as V = N1%N2. Wherein, V is the aforementioned label, N1 is used to characterize that the current time is at the N1th aforementioned first simulation step, T1 is the second simulation step, T2 is the aforementioned first simulation step, and the aforementioned second simulation step is the aforementioned simulation step of the low-speed system.

[0050] Step S20212: Determine the type of the simulation data according to the first mapping relationship and the above-mentioned label. The first mapping relationship is the mapping relationship between the type of the simulation data and the above-mentioned label.

[0051] In this embodiment, in the existing scheme, for multi-rate real-time simulation of power systems, the data exchanged by each optical fiber transmission channel is a fixed type of simulation data (e.g., voltage or current). The bidirectional 64 optical fiber transmission channels can only transmit exactly 64 types of simulation data. In some implementations, when the label is 0, the type of simulation data is current, and when the label is 1, the type of simulation data is voltage. For multi-rate real-time simulation of power systems, the first simulation step is 2 minutes, the second simulation step is 4 minutes, and the simulation time is 8 minutes. The simulation time includes 4 first simulation steps (simulation step of high-speed system), that is, the simulation time includes 2 second simulation steps (simulation step of low-speed system). When the simulation time reaches the initial moment of the 3rd first simulation step, the label is determined to be 1 (3%2=1). At this time, the type of simulation data from the high-speed system is determined to be voltage, so that the same optical fiber transmission channel transmits different types of simulation data in each first simulation step.

[0052] There are multiple fiber optic transmission channels mentioned above, and step S20211 can be implemented as follows:

[0053] A first target optical fiber transmission channel is defined, wherein the first target optical fiber transmission channel is one of the aforementioned optical fiber transmission channels;

[0054] The aforementioned label is obtained from the first target optical fiber transmission channel.

[0055] In this embodiment, in some implementations, there are 64 fiber optic transmission channels. One of the 64 fiber optic transmission channels is selected for transmitting the label, so that the controller of the low-speed system can quickly determine the type of simulation data from the high-speed system.

[0056] The process of receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel in step S202 above can be implemented as follows:

[0057] The system begins receiving simulation data of the high-speed system transmitted through a second target optical fiber transmission channel, which is distinct from the first target optical fiber transmission channel.

[0058] In this embodiment, in some implementations, there are 64 fiber optic transmission channels. One fiber optic transmission channel is selected from the 64 fiber optic transmission channels to transmit the label, so that the controller of the low-speed system can quickly determine the type of simulation data from the high-speed system. The other 63 fiber optic transmission channels are used to transmit simulation data, so that the transmission efficiency of the fiber optic transmission channels is increased to 63 / 64*N times the original transmission efficiency, where N is the ratio of the second simulation step size to the first simulation step size.

[0059] Through the above embodiments, compared with the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the optical fiber transmission channel, this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system), that is, it receives simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the optical fiber transmission channel for multi-rate real-time simulation of power systems in the prior art.

[0060] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0061] This application also provides a controller. It should be noted that the controller in this application can be used to execute the data interaction method for a simulation system provided in this application. This controller is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the controller described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0062] The controller provided in the embodiments of this application will be described below.

[0063] Figure 3 This is a schematic diagram of a controller according to an embodiment of this application. Figure 3 As shown, the controller includes:

[0064] The determining unit 10 is used to determine whether the current time is the target time during the simulation of the power system by the simulation system. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system.

[0065] Specifically, in existing technologies, low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system, while the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system is directly discarded. Therefore, the utilization rate of the optical fiber transmission channel is only 1 / N. For multi-rate real-time simulation of power systems, the utilization rate of the optical fiber transmission channel is low. To solve this technical problem, it is first necessary to determine whether the simulation time has reached the start time of each first simulation step (the simulation step of the high-speed system).

[0066] The aforementioned determining unit includes:

[0067] A sub-unit is used to obtain a target ratio, which is the ratio of the current time to the first simulation step size.

[0068] The first determining subunit is used to determine that the current time is the target time when the target ratio is an integer, and to determine that the current time is not the target time when the target ratio is not an integer.

[0069] In this embodiment, in some implementations, for multi-rate real-time simulation of a power system, the simulation time includes M first simulation steps (simulation steps of a high-speed system). If the ratio of the current time to the first simulation step is an integer, the simulation time is determined to have reached the initial time of a first simulation step. If the ratio of the current time to the first simulation step is not an integer, the simulation time is determined to have reached a moment within the first simulation step.

[0070] The receiving unit 20 is configured to, when the current time is the target time, start receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel, and store the simulation data in the buffer.

[0071] Specifically, in some implementations, compared to the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system, and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the optical fiber transmission channel, this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system), that is, it receives simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the optical fiber transmission channel for multi-rate real-time simulation of power systems in the prior art.

[0072] The aforementioned buffer includes multiple buffer areas, and the aforementioned receiving unit includes:

[0073] The second determining subunit is used to determine the type of the simulation data and store the simulation data in the buffer corresponding to the type to which the simulation data belongs. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer.

[0074] In this embodiment, to facilitate the use of simulation data from the high-speed system, simulation data of the same type are stored in the same cache area of ​​the cache.

[0075] The aforementioned second determining subunit includes:

[0076] The acquisition module is used to acquire the label, which is represented as V = N1%N2. Wherein, V is the aforementioned label, N1 is used to characterize that the current time is at the N1th aforementioned first simulation step, T1 is the second simulation step, T2 is the aforementioned first simulation step, and the aforementioned second simulation step is the aforementioned simulation step of the low-speed system.

[0077] The determining module is used to determine the type of the simulation data based on the first mapping relationship and the aforementioned label, wherein the first mapping relationship is the mapping relationship between the type of the simulation data and the aforementioned label.

[0078] In this embodiment, in the existing scheme, for multi-rate real-time simulation of power systems, the data exchanged by each optical fiber transmission channel is a fixed type of simulation data (e.g., voltage or current). The bidirectional 64 optical fiber transmission channels can only transmit exactly 64 types of simulation data. In some implementations, when the label is 0, the type of simulation data is current, and when the label is 1, the type of simulation data is voltage. For multi-rate real-time simulation of power systems, the first simulation step is 2 minutes, the second simulation step is 4 minutes, and the simulation time is 8 minutes. The simulation time includes 4 first simulation steps (simulation step of high-speed system), that is, the simulation time includes 2 second simulation steps (simulation step of low-speed system). When the simulation time reaches the initial moment of the 3rd first simulation step, the label is determined to be 1 (3%2=1). At this time, the type of simulation data from the high-speed system is determined to be voltage, so that the same optical fiber transmission channel transmits different types of simulation data in each first simulation step.

[0079] There are multiple fiber optic transmission channels mentioned above, and the acquisition module includes:

[0080] A setting submodule is used to set a first target optical fiber transmission channel, wherein the first target optical fiber transmission channel is one of the aforementioned optical fiber transmission channels;

[0081] The acquisition submodule is used to acquire the aforementioned label from the aforementioned first target optical fiber transmission channel.

[0082] In this embodiment, in some implementations, there are 64 fiber optic transmission channels. One of the 64 fiber optic transmission channels is selected for transmitting the label, so that the controller of the low-speed system can quickly determine the type of simulation data from the high-speed system.

[0083] The aforementioned receiving unit also includes:

[0084] The receiving subunit is used to start receiving the simulation data of the high-speed system transmitted through the second target optical fiber transmission channel, wherein the second target optical fiber transmission channel is the optical fiber transmission channel that is different from the optical fiber transmission channel in the first target optical fiber transmission channel.

[0085] In this embodiment, in some implementations, there are 64 fiber optic transmission channels. One fiber optic transmission channel is selected from the 64 fiber optic transmission channels to transmit the label, so that the controller of the low-speed system can quickly determine the type of simulation data from the high-speed system. The other 63 fiber optic transmission channels are used to transmit simulation data, so that the transmission efficiency of the fiber optic transmission channels is increased to 63 / 64*N times the original transmission efficiency, where N is the ratio of the second simulation step size to the first simulation step size.

[0086] Through the above embodiments, compared with the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the optical fiber transmission channel, this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system), that is, it receives simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the optical fiber transmission channel for multi-rate real-time simulation of power systems in the prior art.

[0087] The controller includes a processor and a memory. The determining unit and receiving unit, etc., are all stored as program units in the memory. The processor executes the program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0088] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the low utilization rate of fiber optic transmission channels for multi-rate real-time simulation of power systems in existing technologies.

[0089] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0090] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the data interaction method of the simulation system.

[0091] Specifically, the data interaction methods of the simulation system include:

[0092] Step S201: During the simulation of the power system by the above simulation system, determine whether the current time is the target time. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system.

[0093] Step S202: When the current time is the target time, start receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel and store the simulation data in the buffer.

[0094] This invention provides a processor for running a program, wherein the program executes the data interaction method of the simulation system.

[0095] Specifically, the data interaction methods of the simulation system include:

[0096] Step S201: During the simulation of the power system by the above simulation system, determine whether the current time is the target time. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system.

[0097] Step S202: When the current time is the target time, start receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel and store the simulation data in the buffer.

[0098] This invention provides a simulation system, including: a high-speed system; and a low-speed system. The low-speed system includes a controller and a buffer. The controller is communicatively connected to the buffer, and the controller is communicatively connected to the high-speed system via an optical fiber transmission channel. The controller is used to execute the data interaction method of the simulation system.

[0099] Specifically, the data interaction methods of the simulation system include:

[0100] Step S201: During the simulation of the power system by the above simulation system, determine whether the current time is the target time. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system.

[0101] Step S202: When the current time is the target time, start receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel and store the simulation data in the buffer.

[0102] Optionally, the buffer includes multiple buffer areas. Storing the simulation data in the buffer includes: determining the type of the simulation data and storing the simulation data in the buffer area corresponding to the type to which the simulation data belongs. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer area.

[0103] Optionally, determining the type of the above simulation data includes: obtaining labels, where the labels are represented as V = N1%N2. Wherein, V is the aforementioned label, N1 is used to characterize that the current time is at the N1th of the aforementioned first simulation step, T1 is the second simulation step, T2 is the aforementioned first simulation step, and the aforementioned second simulation step is the simulation step of the aforementioned low-speed system; according to the first mapping relationship and the aforementioned label, the aforementioned type of the aforementioned simulation data is determined, and the aforementioned first mapping relationship is the mapping relationship between the aforementioned type of the aforementioned simulation data and the aforementioned label.

[0104] Optionally, there are multiple optical fiber transmission channels. Obtaining a label includes setting a first target optical fiber transmission channel, where the first target optical fiber transmission channel is one of the optical fiber transmission channels; and obtaining the label from the first target optical fiber transmission channel.

[0105] Optionally, starting to receive simulation data of the high-speed system transmitted through the aforementioned optical fiber transmission channel includes: starting to receive simulation data of the high-speed system transmitted through a second target optical fiber transmission channel, wherein the second target optical fiber channel is the optical fiber transmission channel that is different from the first target optical fiber transmission channel.

[0106] Optionally, determining whether the current time is the target time includes obtaining a target ratio, wherein the target ratio is the ratio of the current time to the first simulation step size; if the target ratio is an integer, the current time is determined to be the target time; if the target ratio is not an integer, the current time is determined not to be the target time.

[0107] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0108] Step S201: During the simulation of the power system by the above simulation system, determine whether the current time is the target time. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system.

[0109] Step S202: When the current time is the target time, start receiving the simulation data of the high-speed system transmitted through the optical fiber transmission channel and store the simulation data in the buffer.

[0110] Optionally, the buffer includes multiple buffer areas. Storing the simulation data in the buffer includes: determining the type of the simulation data and storing the simulation data in the buffer area corresponding to the type to which the simulation data belongs. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer area.

[0111] Optionally, determining the type of the above simulation data includes: obtaining labels, where the labels are represented as V = N1%N2. Wherein, V is the aforementioned label, N1 is used to characterize that the current time is at the N1th of the aforementioned first simulation step, T1 is the second simulation step, T2 is the aforementioned first simulation step, and the aforementioned second simulation step is the simulation step of the aforementioned low-speed system; according to the first mapping relationship and the aforementioned label, the aforementioned type of the aforementioned simulation data is determined, and the aforementioned first mapping relationship is the mapping relationship between the aforementioned type of the aforementioned simulation data and the aforementioned label.

[0112] Optionally, there are multiple optical fiber transmission channels. Obtaining a label includes setting a first target optical fiber transmission channel, where the first target optical fiber transmission channel is one of the optical fiber transmission channels; and obtaining the label from the first target optical fiber transmission channel.

[0113] Optionally, starting to receive simulation data of the high-speed system transmitted through the aforementioned optical fiber transmission channel includes: starting to receive simulation data of the high-speed system transmitted through a second target optical fiber transmission channel, wherein the second target optical fiber channel is the optical fiber transmission channel that is different from the first target optical fiber transmission channel.

[0114] Optionally, determining whether the current time is the target time includes obtaining a target ratio, wherein the target ratio is the ratio of the current time to the first simulation step size; if the target ratio is an integer, the current time is determined to be the target time; if the target ratio is not an integer, the current time is determined not to be the target time.

[0115] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0116] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0117] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0121] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0122] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0123] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0124] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0125] 1) The data interaction method of the simulation system in this application, compared with the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the optical fiber transmission channel, this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system), that is, it receives the simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the optical fiber transmission channel for multi-rate real-time simulation of power systems in the prior art.

[0126] 2) Compared to the prior art where low-speed systems only utilize the data exchanged during the Nth simulation step Th of the high-speed system and directly discard the data exchanged during the 1st to N-1th simulation steps Th of the high-speed system, resulting in low utilization of the fiber optic transmission channel, the controller of this application starts receiving simulation data from the high-speed system when the simulation time reaches the start time of each first simulation step (the simulation step of the high-speed system). That is, it receives simulation data from each simulation step of the high-speed system and stores the simulation data in the buffer, thereby solving the problem of low utilization of the fiber optic transmission channel for multi-rate real-time simulation of power systems in the prior art.

[0127] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A data interaction method for a simulation system, characterized in that, The simulation system is a simulation model of a power system, which includes multiple subsystems. The simulation system includes a low-speed system and a high-speed system. The low-speed system is a simulation model of the subsystem whose state is updated at a first rate, and the high-speed system is a simulation model of the subsystem whose state is updated at a second rate, which is greater than the first rate. The low-speed system includes a controller and a buffer. The controller is communicatively connected to the buffer, and the controller is communicatively connected to the high-speed system via an optical fiber transmission channel. The data interaction method of the simulation system is applied to the controller, and the method includes: During the simulation of the power system by the simulation system, it is determined whether the current time is the target time. The target time is the initial time of the target simulation step size. The target simulation step size is any one of a plurality of first simulation step sizes. The first simulation step size is the simulation step size of the high-speed system. If the current time is the target time, begin receiving simulation data of the high-speed system transmitted through the optical fiber transmission channel, and store the simulation data in the buffer. Determining whether the current time is the target time includes: obtaining a target ratio, wherein the target ratio is the ratio of the current time to the first simulation step size; if the target ratio is an integer, determining that the current time is the target time; if the target ratio is not an integer, determining that the current time is not the target time. The target ratio being an integer indicates that the simulation time has progressed to the initial moment of a first simulation step size, and the target ratio being not an integer indicates that the simulation time has progressed to a moment within the first simulation step size. The simulation time includes multiple first simulation steps. The buffer includes multiple buffer areas. Storing the simulation data in the buffer includes: determining the type of the simulation data and storing the simulation data in the buffer area corresponding to the type to which the simulation data belongs. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer area. Determining the type of the simulation data includes: obtaining a label, wherein the label is represented as... , ,in, For the label, the Used to characterize the current time as being in the [number]th [stage]. The first simulation step size, This is the second simulation step size. The first simulation step size is defined as the first simulation step size, and the second simulation step size is defined as the simulation step size of the low-speed system. The type of the simulation data is determined according to the first mapping relationship and the label, wherein the first mapping relationship is the mapping relationship between the type of the simulation data and the label.

2. The method according to claim 1, characterized in that, The buffer includes multiple buffer areas, and storing the simulation data in the buffer includes: The type of the simulation data is determined, and the simulation data is stored in the buffer corresponding to the type to which the simulation data belongs. The type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer.

3. The method according to claim 2, characterized in that, Determining the type of the simulation data includes: Obtain the label, which is represented as , ,in, For the label, the Used to characterize the current time as being in the [number]th [stage]. The first simulation step size, This is the second simulation step size. The first simulation step size is defined as the first simulation step size, and the second simulation step size is defined as the simulation step size of the low-speed system. The type of the simulation data is determined based on the first mapping relationship and the label, wherein the first mapping relationship is the mapping relationship between the type of the simulation data and the label.

4. The method according to claim 3, characterized in that, There are multiple optical fiber transmission channels, whose identifiers are obtained, including... A first target optical fiber transmission channel is defined, wherein the first target optical fiber transmission channel is one of the optical fiber transmission channels; The label is obtained from the first target optical fiber transmission channel.

5. The method according to claim 4, characterized in that, Begin receiving simulation data of the high-speed system transmitted through the optical fiber transmission channel, including: The system begins receiving simulation data of the high-speed system transmitted through a second target optical fiber transmission channel, which is a different optical fiber transmission channel from the first target optical fiber transmission channel.

6. A controller, characterized in that, The controller is applied to the data interaction method of the simulation system according to any one of claims 1 to 5, the controller comprising: The determining unit is used to determine whether the current time is the target time during the simulation of the power system by the simulation system. The target time is the initial time of the target simulation step size, and the target simulation step size is any one of a plurality of first simulation step sizes, where the first simulation step size is the simulation step size of the high-speed system. The receiving unit is configured to, when the current time is the target time, begin receiving simulation data of the high-speed system transmitted through the optical fiber transmission channel, and store the simulation data in the buffer. The determining unit includes: an acquisition subunit, configured to acquire a target ratio, wherein the target ratio is the ratio of the current time to the first simulation step size; and a first determining subunit, configured to determine that the current time is the target time when the target ratio is an integer, and to determine that the current time is not the target time when the target ratio is not an integer, wherein the target ratio being an integer represents the simulation time reaching the initial time of a first simulation step size, and the target ratio being not an integer represents the simulation time reaching a moment within a first simulation step size, and the simulation time includes multiple first simulation steps. The buffer includes multiple buffer areas, and the receiving unit includes: a second determining subunit, used to determine the type of the simulation data and store the simulation data in the buffer area corresponding to the type to which the simulation data belongs, wherein the type of the simulation data includes at least current and voltage, and the type corresponds one-to-one with the buffer area; The second determining subunit includes: an acquisition module, used to acquire a label, wherein the label is represented as... , ,in, For the label, the Used to characterize the current time as being in the [number]th [stage]. The first simulation step size, This is the second simulation step size. The first simulation step size is defined as the first simulation step size, and the second simulation step size is defined as the simulation step size of the low-speed system. The determining module is configured to determine the type of the simulation data based on the first mapping relationship and the label, wherein the first mapping relationship is the mapping relationship between the type of the simulation data and the label.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the data interaction method of the simulation system according to any one of claims 1 to 5.

8. A processor, characterized in that, The processor is used to run a program, wherein the program executes the data interaction method of the simulation system according to any one of claims 1 to 5 when it runs.

9. A simulation system, characterized in that, include: High-speed system; A low-speed system, comprising a controller and a buffer, wherein the controller is communicatively connected to the buffer and to the high-speed system via an optical fiber transmission channel, and the controller is used to execute the data interaction method of the simulation system according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Time division multiplex access method used in real-time simulation communication of electric system

    CN104238373A

  • Power system simulation method, power system simulation device and electronic device

    CN109066669A