Data interaction method and device for field-circuit coupling simulation
By adopting a universal data interaction interface in the field-circuit coupling simulation system, joint simulation of the power system and multi-physics field simulation is realized, which solves the problems of loss of simulation accuracy and insufficient platform versatility in existing technologies and improves simulation efficiency and accuracy.
Patent Information
- Application Number
- CN202411430737.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-10-12
AI Technical Summary
The existing data interaction method for field-circuit coupling simulation uses a coupled equivalent model, which leads to loss of simulation accuracy and lacks platform versatility and flexibility, making it difficult to meet the simulation requirements of multiple physical fields in new distribution systems.
By adopting a universal data interaction interface in the field-circuit coupling simulation system, simulation start instructions are sent to the power system simulation platform and the multi-physics field simulation platform respectively, the simulation pause status is detected, and the simulation results are stored in the database, thereby realizing the joint simulation of the power system and multi-physics fields and avoiding the equivalent processing of the coupling models.
It improves the accuracy and efficiency of field-circuit coupling simulation, reduces the loss of simulation accuracy, has platform versatility and compatibility, and simplifies modeling difficulty.
Smart Images

Figure CN119416455B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power system simulation, and in particular to a data interaction method and device for field-circuit coupling simulation. Background Art
[0002] With the massive access to distributed renewable energy and the rapid advancement of power electronics, the morphological structure and dynamic characteristics of distribution systems are rapidly evolving, with "source, grid, load, and storage" becoming the core component of the new distribution system. However, due to the more frequent coordinated interaction between sources, grids, loads, and storage, and the increased uncertainty in power sources and loads, higher requirements are placed on the control and optimization capabilities of the distribution network. Furthermore, to improve the distribution network's carrying capacity, it is necessary to analyze the coupled characteristics of multiple physical fields, such as electromagnetics, temperature, fluids, structures, and humidity, to enable rapid calculation of equipment performance nonlinearities and saturation thresholds. Therefore, in the new distribution network, the field and circuit characteristics are coupled, and a single power system simulation platform server or device physical field simulation platform server can no longer meet the requirements. It is necessary to study the data interaction between the power system simulation platform server and the multi-physics simulation platform server to achieve joint simulation of the power system and multiple physical fields.
[0003] Currently, existing data exchange methods for field-circuit coupled simulation typically use coupled equivalent models, which make it difficult to balance the accuracy of simulation results from both the power system model and the physical field model. The equivalence process can also lead to a loss of simulation precision. Furthermore, existing data exchange methods for field-circuit coupled simulation require the customized development of a communication interface between the two simulation platform servers. This interface specifies communication protocols such as the number of data channels and data format, making it less versatile and flexible, hindering the modification and maintenance of coupled simulation models. Summary of the Invention
[0004] The present application provides a data interaction method and device for field-circuit coupling simulation, wherein a terminal device in a field-circuit coupling simulation system sends a simulation start instruction to a power system simulation platform server and a multi-physics field simulation platform server; then, at a third time node, it is detected that the power system simulation platform server has paused simulation; then, a first simulation result of the power system simulation platform server at the third time node is received; and the first simulation result is stored in a database; secondly, a second simulation result of the multi-physics field simulation platform server at a second time node is received; and the second simulation result is stored in a database; thirdly, a field-circuit coupling simulation result from the power system simulation platform server is received; finally, when it is detected that the field-circuit coupling simulation has been completed, the field-circuit coupling simulation result is output. The method realizes calling the power system simulation platform server and the multi-physics field simulation platform server through a universal data interaction interface, has platform versatility and compatibility, and does not require equivalent or simplified processing of the coupling model, thereby reducing the loss of field-circuit coupling simulation accuracy, which is beneficial for greatly reducing the difficulty of modeling while retaining key model characteristics.
[0005] In a first aspect, an embodiment of the present application provides a data interaction method for field-circuit coupling simulation, which is applied to a terminal device in a field-circuit coupling simulation system, wherein the field-circuit coupling simulation system further includes a power system simulation platform server and a multi-physics field simulation platform server, wherein the power system simulation platform server is communicatively connected to the multi-physics field simulation platform server, and the method includes the following steps:
[0006] Sending a simulation start instruction to the power system simulation platform server and the multi-physics simulation platform server, wherein the simulation start instruction is used to instruct the power system simulation platform server to perform simulation according to a first preset simulation step size at a first time node, and is used to instruct the multi-physics simulation platform server to perform simulation according to a second preset simulation step size at a second time node, where the first time node is before the second time node;
[0007] detecting that the power system simulation platform server suspends simulation at a third time node, the third time node being before the second time node;
[0008] receiving a first simulation result from the power system simulation platform server at the third time node; and storing the first simulation result in a database; and,
[0009] receiving a second simulation result of the multi-physics simulation platform server at the second time node; and storing the second simulation result in the database, where the second simulation result is obtained by the multi-physics simulation platform server obtaining the first simulation result from the database and performing multi-physics simulation based on the first simulation result; and,
[0010] receiving a field-circuit coupling simulation result from the power system simulation platform server, wherein the field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the first simulation result based on the second simulation result;
[0011] If it is detected that the power system simulation platform server has completed the field-circuit coupling simulation, the field-circuit coupling simulation result is output.
[0012] In a second aspect, an embodiment of the present application provides a data interaction device for field-circuit coupling simulation, which is applied to a terminal device in a field-circuit coupling simulation system. The field-circuit coupling simulation system further includes a power system simulation platform server and a multi-physics field simulation platform server. The power system simulation platform server is communicatively connected to the multi-physics field simulation platform server. The device includes:
[0013] a sending unit, configured to send a simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, wherein the simulation start instruction is used to instruct the power system simulation platform server to perform simulation according to a first preset simulation step size at a first time node, and to instruct the multi-physics field simulation platform server to perform simulation according to a second preset simulation step size at a second time node, wherein the first time node is before the second time node;
[0014] A detection unit, configured to detect that the power system simulation platform server suspends simulation at a third time node, the third time node being before the second time node;
[0015] A first receiving unit is configured to receive a first simulation result of the power system simulation platform server at the third time node; and store the first simulation result in a database; and
[0016] A second receiving unit is configured to receive a second simulation result of the multi-physics simulation platform server at the second time node; and store the second simulation result in the database, where the second simulation result is obtained by the multi-physics simulation platform server obtaining the first simulation result from the database and performing multi-physics simulation based on the first simulation result; and
[0017] a third receiving unit, configured to receive a field-circuit coupling simulation result from the power system simulation platform server, wherein the field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the first simulation result based on the second simulation result;
[0018] The output unit is configured to output the field-circuit coupling simulation result if it is detected that the power system simulation platform server has completed the field-circuit coupling simulation.
[0019] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the first aspect of the embodiment of the present application.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, which is executed by a processor to implement the steps of the method described in the first aspect above.
[0021] It can be seen that in the embodiment of the present application, the terminal device in the field-circuit coupling simulation system sends a simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server; then, at the third time node, it is detected that the power system simulation platform server has paused the simulation; then, the first simulation result of the power system simulation platform server at the third time node is received; and the first simulation result is stored in the database; secondly, the second simulation result of the multi-physics field simulation platform server at the second time node is received; and the second simulation result is stored in the database; again, the field-circuit coupling simulation result from the power system simulation platform server is received; finally, it is detected that the field-circuit coupling simulation has been completed, and the field-circuit coupling simulation result is output. Compared with the existing solution of using a coupling equivalent model for coupling simulation and performing data interaction through a dedicated communication interface between customized simulation platforms, a universal data interface is used for data interaction, and there is no need for coupling model equivalent processing, which is conducive to improving the efficiency and accuracy of field-circuit coupling simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] Figure 1 This is a schematic diagram of the communication connection of a field-circuit coupling simulation platform provided in an embodiment of the present application;
[0024] Figure 2 This is a flowchart of the steps of a data interaction method for field-circuit coupling simulation provided by an embodiment of the present application;
[0025] Figure 3 This is a schematic diagram of the principle of a field-circuit coupling simulation data interaction mechanism provided in an embodiment of the present application;
[0026] Figure 4 This is a schematic diagram of a field-circuit coupling simulation data interaction time sequence provided by an embodiment of the present application;
[0027] Figure 5 This is an overall flow chart of a field-circuit coupling simulation data interaction method provided by an embodiment of the present application;
[0028] Figure 6 This is a block diagram of the functional units of a data interaction device for field-circuit coupling simulation provided by an embodiment of the present application;
[0029] Figure 7 This is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 this application.
[0031] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0032] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0033] Currently, the existing data interaction scheme for field-circuit coupling simulation mainly uses a coupled equivalent model for coupling simulation, and performs data interaction through a dedicated communication interface between customized simulation platforms. It lacks platform universality and flexibility, and the equivalent process will lose simulation accuracy, which is not conducive to improving the efficiency and accuracy of field-circuit coupling simulation.
[0034] In response to the above problems, an embodiment of the present application provides a data interaction method and device for field-circuit coupling simulation. The embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0035] See also Figure 1 , Figure 1 This is a schematic diagram of a communication connection of a field-circuit coupling simulation platform provided in an embodiment of the present application. Figure 1 As shown, the field-circuit coupling simulation platform includes a power system simulation platform server 110 , a multi-physics field simulation platform server 120 and a data interaction interface 130 .
[0036] Among them, the data interaction interface 130 calls the simulation engine through the API interface provided by the power system simulation platform server 110 and the multi-physics field simulation platform server 120, and issues simulation process control instructions through the API interface to control the simulation process of the two simulation platform servers respectively.
[0037] Among them, the power system simulation platform server 110 can obtain instructions from the data interaction interface 130 through the API interface, perform power system simulation in the power system simulation platform, and generate a power system simulation model; and can receive the multi-physics field simulation model from the multi-physics field simulation platform server 120 and read the results, thereby adjusting the power system simulation model according to the reading results to generate a field-circuit coupling simulation model.
[0038] Among them, the multi-physics field simulation platform server 120 can obtain instructions from the data interaction interface 130 through the API interface, obtain simulation results from the power system simulation platform server 110, and read the power system simulation results, thereby performing multi-physics field simulation in the multi-physics field simulation platform and generating a multi-physics field simulation model.
[0039] It is understood that data interaction interface 130 can be developed based on the Python language, possessing platform versatility and compatibility. Besides data interaction, it can perform other additional applications such as data processing, control calculations, and machine learning. It is scalable and does not require the custom development of a one-to-one communication interface between simulation platform servers. It does not require a fixed number and content of data channels, and is flexible and easy to maintain. Furthermore, data interaction interface 130 can simultaneously call power system simulation platform server 110 and multi-physics simulation platform server 120, retaining the detailed power system simulation models and multi-physics simulation models in both simulation platform servers. This eliminates the need for equivalent or simplified processing of coupled models, thus reducing the loss of accuracy in field-circuit coupling simulations.
[0040] It can be seen that in this embodiment, the data interaction interface 130 requires the power system simulation platform server 110 and the multi-physics field simulation platform server 120 that participate in the field-circuit coupling simulation to provide an API interface that can be called by Python. The data interaction interface 130 has the functions of calling the simulation engine through Python, controlling the start, pause, end of the simulation, parameter writing, and result reading.
[0041] See also Figure 2 , Figure 2 This is a flow chart of the steps of a data interaction method for field-circuit coupling simulation provided by an embodiment of the present application. Figure 2 As shown, the method includes the following steps:
[0042] Step S210, sending a simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, the simulation start instruction is used to instruct the power system simulation platform server to perform simulation according to a first preset simulation step at a first time node, and to instruct the multi-physics field simulation platform server to perform simulation according to a second preset simulation step at a second time node, the first time node being before the second time node.
[0043] Among them, the field-circuit coupling simulation system also includes a data interaction interface. The power system simulation platform server and the multi-physics field simulation platform server are communicated through the data interaction interface. The data interaction interface receives simulation process control instructions from the terminal device and controls the simulation processes of the two simulation platform servers.
[0044] In a possible embodiment, before sending the simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, the method further includes:
[0045] Simultaneously calling the simulation engines of the power system simulation platform server and the multi-physics field simulation platform server through the data interaction interface;
[0046] Sending a preset first initial value to the simulation engine of the power system simulation platform server through the data interaction interface to implement simulation initialization settings for the power system simulation platform server; and
[0047] The preset second initial value is sent to the simulation engine of the multi-physics field simulation platform server through the data interaction interface to implement the simulation initialization setting of the multi-physics field simulation platform server.
[0048] Among them, the first initial value and the second initial value may include the initial values of power system structure parameters, initial operating status, simulation time parameters, load characteristic parameters, new energy access parameters, fault setting parameters, control strategy parameters, market environment parameters, and meteorological and environmental conditions.
[0049] Among them, the power system structure parameters include parameters of power equipment such as power sources, transmission lines, transformers, and loads, such as capacity, impedance, and rated current; the initial operating state includes operating parameters such as voltage, current, and frequency; simulation time parameters include the start time, end time, and step size of the simulation; load characteristic parameters include the type of power load (such as industrial load, residential load, etc.), the power factor of the load, the load curve, etc.; new energy access parameters include access points, power output characteristics, etc.; fault setting parameters include the type of fault (such as single-phase grounding fault, three-phase short circuit fault, etc.), the time and location of the fault, etc.; control strategy parameters include the control strategy of the generator, the frequency response characteristics of the load, and the parameters of control equipment such as the automatic voltage regulator; market environment parameters include electricity prices, market demand, etc.; meteorological and environmental conditions include temperature, humidity, wind speed, etc.
[0050] It can be understood that the first preset simulation step of the power system simulation platform server is usually smaller than the second preset simulation step of the multi-physics field simulation platform server. The power system simulation platform server will first start the simulation at the first time node, trigger the enable signal for data interaction, and then pause the power system simulation at the third time node. Then, after obtaining the simulation results of the power system simulation platform server at the third time node, the multi-physics field simulation platform server reads the results, obtains the data required for the simulation, and then starts the multi-physics field simulation again at the second time node.
[0051] It can be seen that in this embodiment, the data interaction interface first calls the simulation engines of the two simulation platform servers at the same time, and sets the simulation initial values in the models of the two platform servers respectively; then, by receiving instructions (simulation process control instructions) from the terminal device, the simulation processes of the two simulation platform servers are controlled, thereby retaining the detailed power system simulation models and multi-physical field simulation models in the two simulation platform servers, without the need for equivalent or simplified processing of the coupling model, which is beneficial to reducing the loss of field-circuit coupling simulation accuracy.
[0052] Step S220: It is detected at a third time node that the power system simulation platform server suspends simulation, and the third time node is before the second time node.
[0053] The frequency of data exchange is determined by the enable signal in the simulation platform server. During data exchange, the two simulation platform servers are in a simulation pause or stop state. The enable signal can be a pulse signal, and the pulse frequency is the frequency of data exchange. The synchronization module is used to receive the enable signal. When the enable terminal of the synchronization module is 1, the simulation is paused. Data exchange can continue during the pause until the synchronization signal changes, and the simulation resumes.
[0054] The synchronization module's enable pin subscribes to a channel in the database by default, representing the synchronization signal channel. When the enable pin is set to 1, the simulation pauses. Simulation continues until the received synchronization signal data changes. If no different data is received after a certain period of time, the simulation is forced to stop. The data in the synchronization signal channel can be changed to control the pause and resume of the simulation.
[0055] It can be understood that the first preset simulation step of the power system simulation platform server is usually smaller than the second preset simulation step of the multi-physics field simulation platform server. The power system simulation platform server will first start the simulation at the first time node, trigger the enable signal for data interaction, and then pause the power system simulation at the third time node.
[0056] As can be seen, in this embodiment, because the step size of power system simulation is smaller than that of multiphysics simulation, the power system simulation platform server begins simulation first. After triggering the data exchange enable signal, the power system simulation is paused. During the simulation pause, data exchange occurs between the power system simulation platform server and the multiphysics simulation platform server, and between the terminal device and the two simulation platform servers. This helps ensure data consistency, improves simulation result accuracy and efficiency, simplifies data processing, and avoids complex synchronization during operation.
[0057] Step S230: receiving a first simulation result from the power system simulation platform server at the third time node; and storing the first simulation result in a database.
[0058] The database can be a Redis database, and data interaction is implemented based on the Redis service. The Redis database is a high-performance key-value database with fast read and write speeds, flexible data structures, support for publish and subscribe models, and suitability for low-latency scenarios. The advantage of using a data interaction mechanism based on the Redis service is that it can be applied to remotely deployed simulation platform servers. The two simulation platform servers involved in field-circuit coupling do not need to be deployed locally, which provides convenience and flexibility.
[0059] The Redis service and Redis database can be deployed on a remote server on the terminal device. The Redis service includes a data sender and a data receiver. The data sender sends and saves data to a channel in the Redis database. If the channel already has a value in the database, it overwrites and updates it. The data receiver subscribes to a channel and reads the data in it.
[0060] In a possible embodiment, receiving the first simulation result from the power system simulation platform server at the third time node; and storing the first simulation result in a database includes:
[0061] The power system simulation platform server subscribes to a first channel, and the first channel is located in the database;
[0062] The power system simulation platform server obtains the first simulation result at the third time node;
[0063] The power system simulation platform server sends the first simulation result to the terminal device;
[0064] The terminal device stores the first simulation result in the first channel in the database.
[0065] Wherein, the power system simulation platform server controls the power system simulation platform server to perform simulation, and the power system simulation platform server includes a data input module, a data output module and a synchronization module.
[0066] The data output module consists of an input terminal and an enable terminal. When the enable terminal is set to 1, the data output module transfers the input data and saves it to the Redis database. The data input module continuously receives data from the Redis service subscription channel and inputs it into the simulation system. The synchronization module has an enable terminal and, by default, subscribes to a channel in the Redis database, which is the synchronization signal channel. When the enable terminal is set to 1, the simulation is paused. It continues until the received synchronization signal data changes. If no different data is received after a certain period of time, the simulation is forced to stop. The simulation can be paused and resumed by changing the data in the synchronization signal channel.
[0067] The enable signal can be a pulse signal, and the pulse frequency is the frequency of data exchange. When the enable terminal of the synchronization module is 1, the simulation is paused. Data exchange can continue during the simulation pause. The simulation continues until the synchronization signal changes.
[0068] Exemplarily, in the field-circuit coupling simulation, the power system simulation platform server can output the first simulation result through the data output module and store it in the first channel of the Redis database; and the power system simulation platform server can subscribe to the second channel in the Redis database through the data input module to obtain the simulation result from the multi-physics field simulation platform server, and the second channel can be used to store the multi-physics field simulation results; and the power system simulation platform server continuously triggers the simulation pause and resume through the synchronization module, thereby performing data interaction during the simulation pause.
[0069] As can be seen, in this embodiment, during a simulation pause, the power system simulation platform server sends the first simulation result in the data output module to the terminal device via the Redis service and saves it to the Redis database. Furthermore, the power system simulation platform server can retrieve the data to be interacted with from the Redis database. Once the data interaction is complete, the value of the synchronization signal is simultaneously changed to allow the simulation to continue. This enables the terminal device to remotely control the simulation platform server, eliminating the need for local deployment of the two simulation platform servers involved in field-circuit coupling, providing convenience and flexibility.
[0070] Step S240, receiving the second simulation result of the multi-physics field simulation platform server at the second time node; and storing the second simulation result in the database, where the second simulation result is obtained by the multi-physics field simulation platform server obtaining the first simulation result from the database and performing multi-physics field simulation based on the first simulation result.
[0071] In a possible embodiment, the database includes multiple channels, and the first simulation result and the second simulation result are stored in the first channel and the second channel respectively; and receiving the second simulation result of the multi-physics field simulation platform server at the second time node includes:
[0072] The multi-physics field simulation platform server obtains the first simulation result by subscribing to the first channel;
[0073] The multi-physics field simulation platform server performs a multi-physics field simulation according to the first simulation result at the second time node to obtain the second simulation result;
[0074] The multi-physics field simulation platform server sends the second simulation result to the terminal device through the data interaction interface;
[0075] The terminal device receives the second simulation result.
[0076] Among them, the multi-physics field simulation platform server controls the multi-physics field simulation platform server to perform simulation, and the multi-physics field simulation platform server includes a data input module, a data output module and a synchronization module.
[0077] For example, in field-circuit coupling simulation, the multi-physics field simulation platform server can subscribe to the first channel through the data input module and obtain the first simulation result stored in the first channel; then, the first simulation result is read to obtain the data required for the simulation, and then a multi-physics field simulation is performed to generate a second simulation result. The second simulation result is sent to the terminal device through the data output module and stored in the subscribed second channel.
[0078] It can be seen that in this embodiment, during the simulation pause, the multi-physics field simulation platform server obtains the first simulation result from the power system simulation platform server through the subscription database channel, and starts the multi-physics field simulation after reading the first simulation result, thereby generating a second simulation result, and sends the second simulation result to the terminal device through another channel in the subscription database and stores it in the other channel, thereby completing the power system simulation and multi-physics field simulation, realizing the remote deployment of the simulation platform server, and is conducive to improving the efficiency and convenience of field-circuit coupling simulation.
[0079] Step S250: receiving a field-circuit coupling simulation result from the power system simulation platform server, wherein the field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the first simulation result based on the second simulation result.
[0080] In a possible embodiment, the receiving of the field-circuit coupling simulation result from the power system simulation platform server includes:
[0081] The power system simulation platform server obtains the second simulation result by subscribing to the second channel;
[0082] The power system simulation platform server obtains the power system simulation model in the first simulation result;
[0083] The power system simulation platform server modifies the power system simulation model according to the second simulation result to obtain the field-circuit coupling simulation result, wherein the field-circuit coupling simulation result includes the modified power system simulation model;
[0084] The power system simulation platform server sends the field-circuit coupling simulation result to the terminal device;
[0085] The terminal device receives the field-circuit coupling simulation result.
[0086] In a possible embodiment, the power system simulation platform server modifies the power system simulation model according to the second simulation result to obtain the field-circuit coupling simulation result, including:
[0087] performing data extraction and data processing on the second simulation result to obtain parameter data, wherein the parameter data is used to adjust the first simulation result;
[0088] The first simulation result is updated according to the parameter data to obtain an updated power system simulation model.
[0089] Among them, the data extraction refers to the extraction of key parameters related to the power system model, including electromagnetic field distribution, such as electric field strength, magnetic field strength, electromagnetic force, etc.; thermal field distribution, such as temperature, heat flux density, etc.; mechanical field distribution, such as stress, strain, displacement, etc.; data processing includes data format conversion and data processing, and data processing includes averaging, filtering and interpolation, etc.
[0090] Specifically, adjusting the first simulation result includes parameter updating, model adding and model verification. The parameter updating refers to using the extracted simulation result data as parameters to update the power system model. The model adding refers to adding new elements or modules to the power system model as needed, such as electromagnetic field models, thermal models and mechanical models. The model verification refers to verifying whether the modified power system model meets expectations, such as running simulations and comparative analysis.
[0091] The primary simulation results generated by the power system simulation platform server are primarily used to analyze and optimize power system operation and control. This involves modeling the power network, including generation, transmission, distribution, and load components. Through simulation, system performance can be evaluated under different operating conditions, fault conditions can be predicted, power flow can be optimized, and stability analysis can be performed. Commonly used power system simulation platform servers include PSCAD and MATLAB / Simulink.
[0092] The generation of secondary simulation results by a multi-physics simulation platform server refers to a simulation that simultaneously considers the interactions between multiple physical fields (such as electric fields, magnetic fields, thermal fields, and fluid fields). This simulation method can more comprehensively describe the behavior of complex systems, especially when multiple physical phenomena are coupled, such as the coupling of electromagnetic and thermal fields in motors and thermal management of electronic equipment. Common multi-physics simulation platform servers include COMSOL Multiphysics and ANSYS.
[0093] It is understandable that by inputting the second simulation result into the power system simulation platform server and adjusting the parameters of the first simulation result, field-circuit coupling simulation can be achieved to obtain field-circuit coupling simulation results. Field-circuit coupling simulation is a method that combines power system simulation and multi-physics field simulation. In this simulation, the circuit part of the power system (such as lines, transformers, motors, etc.) interacts with the electromagnetic field part (such as magnetic fields, electric fields, etc.) to form a coupled system. Through field-circuit coupling simulation, the electromagnetic phenomena and circuit characteristics in the power system, as well as their mutual influence, can be more comprehensively considered, which is conducive to improving simulation accuracy and optimizing system performance.
[0094] Step S260: If it is detected that the power system simulation platform server has completed the field-circuit coupling simulation, the field-circuit coupling simulation result is output.
[0095] In a possible embodiment, the database includes a status flag and a progress flag, the status flag is used to identify the simulation status of the field-circuit coupling simulation, the simulation status includes not started, in progress and completed, and the progress flag is used to store the simulation progress of the field-circuit coupling simulation; if it is detected that the power system simulation platform server has completed the field-circuit coupling simulation, the field-circuit coupling simulation result is output, and the method includes:
[0096] Querying the progress flag in real time to obtain the field-circuit coupling simulation progress of the power system simulation platform;
[0097] Update the simulation status in real time according to the field-circuit coupling simulation progress of the power system simulation platform;
[0098] When it is detected that the simulation status is completed, the field-circuit coupling simulation result is output.
[0099] For example, the status flag can use a string or integer to represent different states, such as 0 for not started, 1 for in progress, and 2 for completed. The progress flag can be expressed as a percentage. The terminal device will monitor and obtain the simulation progress in real time, and store the simulation progress in the progress flag, presenting it as a percentage. When the simulation progress is detected to be 100%, the status flag is updated from 1 to 2. When the terminal device detects that the status flag is 2, it outputs the field-circuit coupling simulation results.
[0100] In a possible embodiment, the method further includes:
[0101] When it is detected that the simulation state is in progress, a third simulation result is received from the power system simulation platform server; and the third simulation result is stored in the database; the third simulation result is obtained by the power system simulation platform server continuing to simulate according to the field-circuit coupling simulation result; and,
[0102] receiving a fourth simulation result from the multi-physics simulation platform server; and storing the fourth simulation result in the database, wherein the fourth simulation result is obtained by the multi-physics simulation platform server from the database and performing multi-physics simulation based on the third simulation result; and
[0103] receiving a target field-circuit coupling simulation result from the power system simulation platform server, wherein the target field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the third simulation result based on the fourth simulation result;
[0104] When it is detected that the simulation status is completed, the target field-circuit coupling simulation result is output.
[0105] In a possible embodiment, when it is detected that the simulation state is in progress, a third simulation result is received from the power system simulation platform server, and the method includes:
[0106] Determining that the field-circuit coupling simulation is not completed according to the simulation status being in progress;
[0107] Controlling the power system simulation platform server to continue simulation through the synchronization module;
[0108] Detecting at a fourth time point that the power system simulation platform server suspends simulation;
[0109] The power system simulation platform server obtains the third simulation result at the fourth time node;
[0110] The power system simulation platform server sends the third simulation result to the terminal device;
[0111] The terminal device receives the third simulation result.
[0112] It can be understood that after adjusting the first simulation result according to the second simulation result to obtain the field-circuit coupling simulation result, if it is detected that the power system simulation platform server has completed the simulation, the field-circuit coupling simulation result is output; and, if it is detected that the power system simulation platform server has only paused but has not ended the simulation process, an enable signal is sent through the synchronization model, the power system simulation server resumes the simulation and generates a simulation result based on the field-circuit coupling simulation result, and continues to interact with the multi-physics field simulation platform server to obtain the target field-circuit coupling result until it is detected that the simulation is completed.
[0113] It can be seen that in this embodiment, the terminal device can realize remote dynamic control of the field-circuit coupling simulation, decide whether to continue or end the simulation according to the data interaction situation, and output the simulation results in a timely manner, which helps to improve the continuity and automation of the field-circuit coupling simulation.
[0114] See also Figure 3 , Figure 3 A schematic diagram of a field-circuit coupling simulation data interaction mechanism provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the data interaction mechanism is a mechanism for data interaction between the terminal device and the power system simulation platform server.
[0115] The data interaction mechanism for field-circuit coupled simulations is implemented using the Redis service. Redis is a high-performance key-value database with fast read and write speeds, flexible data structures, support for publish and subscribe models, and suitability for low-latency scenarios. The Redis service and database can be deployed on a remote server on the terminal device.
[0116] Among them, the power system simulation platform server realizes simulation through the power system simulation tool, and the power system simulation tool includes a data input module, a data output module and a synchronization module.
[0117] The data input module is used to continuously receive data from the Redis service subscription channel and input it into the simulation system; the data output module has an input terminal and an enable terminal. When the enable terminal is 1, the data output module will pass the data from the input terminal and save it to the Redis database; and the synchronization module has an enable terminal and, by default, subscribes to a channel in the Redis database, which means the synchronization signal channel. When the enable terminal is 1, the simulation is paused until the received synchronization signal data changes, at which point the simulation continues. If no different data is received after a certain period of time, the simulation will be forced to stop. The pause and resume of the simulation can be controlled by changing the data in the synchronization signal channel.
[0118] Specifically, during the data interaction between the power system simulation platform server and the terminal device, the enable signal is input into the synchronization module, and the synchronization module detects whether the synchronization signal has changed. If a change is detected, the simulation continues; if no change is detected, the simulation is paused; then, during the simulation pause, the enable end is 1, and the power system simulation platform server sends the data to be interacted to the terminal device through the data output module; the terminal device then receives the data and saves it to the Redis database. When it is detected that the power system simulation platform server obtains the data to be interacted from the database, the synchronization signal is changed; then the synchronization signal and the interactive data are sent, the data to be interacted are sent to the data input module, and the synchronization signal is sent to the synchronization module.
[0119] It's understandable that terminal devices can interact with the simulation platform server through a data interaction interface developed in Python. Python acts as a relay, responsible for transferring data between the terminal device and the simulation platform server, sending, receiving, and processing data, enabling terminal devices to communicate effectively with different simulation platform servers.
[0120] As can be seen, in this embodiment, in Python, data from the data output module is received through the Redis service and saved to the Redis database. The data to be interacted with is retrieved from the Redis database, and the value of the synchronization signal is changed. The data to be interacted with and the synchronization signal are sent to the data input module and the synchronization module respectively through the Redis service to complete the data interaction. Using a universal data interaction interface can improve the versatility and flexibility of data interaction.
[0121] See also Figure 4 , Figure 4 This is a schematic diagram of a field-circuit coupling simulation data interaction sequence provided by an embodiment of the present application, such as Figure 4 As shown, the data interaction timing refers to the data interaction timing between the multi-physics field simulation platform server and the power system simulation platform server.
[0122] Understandably, power system simulations typically operate on short timescales, such as every 50 μs, while multiphysics simulations typically operate on longer timescales, such as every 0.02 seconds. These differences in timescales between simulation platform servers place demands on the frequency and volume of data exchange. Therefore, it is necessary to design the data exchange timing between the multiphysics simulation platform server and the power system simulation platform server to meet the requirements of field-circuit coupled simulations.
[0123] The frequency of data interaction is determined by an enable signal in the simulation platform server. During the data interaction, the two simulation platform servers are in a simulation pause or simulation stop state.
[0124] Among them, the multi-physics field simulation platform server contains multiple multi-physics field simulation nodes, the power system simulation node contains multiple power system simulation nodes, the interval between each two power system simulation nodes is the power system simulation step dt, and the interval between each two multi-physics field simulation nodes is the data interaction period dT.
[0125] Among them, the waiting time tw refers to the time waiting for the multi-physics field simulation to run and obtain the current results, data1 is the data transmitted from the power system simulation platform server to the multi-physics field simulation platform server, and data2 is the data transmitted from the multi-physics field simulation platform server to the power system simulation platform server.
[0126] Specifically, the data exchange period dT is determined by the calculation interval of the multiphysics simulation. The power system simulation runs according to the set simulation step size dt. When the data exchange enable signal is triggered, the simulation is paused. During data exchange, the power system simulation platform server transmits data1 to the multiphysics simulation platform server and waits for the multiphysics simulation to end. After the multiphysics simulation ends, the simulation results and other data data2 are transmitted to the power system simulation platform server. After receiving data2, the power system simulation platform server writes the parameters and updates the model, continuing the simulation until the simulation ends.
[0127] See also Figure 5 , Figure 5 This is an overall flow chart of a field-circuit coupling simulation data interaction method provided by an embodiment of the present application, which is applied to terminal devices, such as Figure 5 As shown, the terminal device is connected to the power system simulation platform server and the multi-physics field simulation platform server through a data interaction interface.
[0128] Among them, when starting the entire simulation process, the terminal device first calls the simulation engine for the simulation tools corresponding to the power system simulation platform server and the multi-physics field simulation platform server at the same time, sets the initial values in the models of the two simulation tools, and initializes the field-circuit coupling simulation; then, it controls the simulation process of the two simulation tools by sending instructions.
[0129] Furthermore, since the step size of power system simulation is smaller than that of multi-physics field simulation, the power system simulation tool will start the simulation first. After the enable signal is triggered, the simulation tool corresponding to the power system simulation platform server will suspend the simulation and generate the current simulation results.
[0130] Furthermore, during the simulation pause, the data interaction interface receives the current results of the power system simulation through the Redis service, and saves the data to the Redis database by subscribing to the data channel. The database publishes the data for the multi-physics field simulation tool to obtain; then, after obtaining the data required for simulation, the multi-physics field simulation tool starts the simulation again and generates the current simulation results; then, the data interaction interface obtains the results of the multi-physics field simulation through the Redis service, saves the results to the Redis database for the power system simulation tool to obtain, writes the data and modifies the model to obtain the modified power system simulation model.
[0131] Furthermore, after completing the current data interaction, the terminal device determines whether the field-circuit coupling simulation is completed. If so, it outputs the result, that is, the field-circuit coupling simulation result containing the modified power system simulation model; if not, it continues the simulation and continues to trigger the enable signal for the next cycle of data interaction.
[0132] It can be seen that in this embodiment, the power system simulation tool and the multi-physics field simulation tool can be called simultaneously through a universal data interaction interface, and the simulation results generated by the simulation tool are stored in the Redis database through the Redis service to perform data interaction and realize field-circuit coupling simulation. The detailed power system simulation model and multi-physics field simulation model in the two simulation tools can be retained, and there is no need to equate or simplify the coupling model, thereby reducing the loss of field-circuit coupling simulation accuracy and greatly reducing the difficulty of modeling while retaining key model characteristics.
[0133] See also Figure 6 , Figure 6 This is a block diagram of the functional units of a data interaction device 600 for field-circuit coupling simulation provided in an embodiment of the present application. The device is applied to a terminal device in a field-circuit coupling simulation system. The field-circuit coupling simulation system also includes a power system simulation platform server and a multi-physics field simulation platform server. The power system simulation platform server is communicatively connected to the multi-physics field simulation platform server, such as Figure 6 As shown, the data interaction device 600 for field-circuit coupling simulation includes the following units:
[0134] A sending unit 610 is configured to send a simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, wherein the simulation start instruction is used to instruct the power system simulation platform server to perform simulation according to a first preset simulation step size at a first time node, and to instruct the multi-physics field simulation platform server to perform simulation according to a second preset simulation step size at a second time node, where the first time node is before the second time node;
[0135] A detection unit 620 is configured to detect that the power system simulation platform server suspends simulation at a third time node, where the third time node is before the second time node;
[0136] The first receiving unit 630 is configured to receive a first simulation result of the power system simulation platform server at the third time node; and store the first simulation result in a database; and
[0137] The second receiving unit 640 is configured to receive a second simulation result of the multi-physics simulation platform server at the second time node; and store the second simulation result in the database, where the second simulation result is obtained by the multi-physics simulation platform server obtaining the first simulation result from the database and performing multi-physics simulation based on the first simulation result; and
[0138] A third receiving unit 650 is configured to receive a field-circuit coupling simulation result from the power system simulation platform server, where the field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the first simulation result based on the second simulation result;
[0139] The output unit 660 is configured to output the field-circuit coupling simulation result if it is detected that the power system simulation platform server has completed the field-circuit coupling simulation.
[0140] In one embodiment, the database includes a status flag and a progress flag, the status flag is used to identify the simulation status of the field-circuit coupling simulation, the simulation status includes not started, in progress and completed, and the progress flag is used to store the simulation progress of the field-circuit coupling simulation; if it is detected that the power system simulation platform server has completed the field-circuit coupling simulation, the field-circuit coupling simulation result is output, and the method includes:
[0141] Querying the progress flag in real time to obtain the field-circuit coupling simulation progress of the power system simulation platform;
[0142] Update the simulation status in real time according to the field-circuit coupling simulation progress of the power system simulation platform;
[0143] When it is detected that the simulation status is completed, the field-circuit coupling simulation result is output.
[0144] In one embodiment, the method further comprises:
[0145] When it is detected that the simulation state is in progress, a third simulation result is received from the power system simulation platform server; and the third simulation result is stored in the database; the third simulation result is obtained by the power system simulation platform server continuing to simulate according to the field-circuit coupling simulation result; and,
[0146] receiving a fourth simulation result from the multi-physics simulation platform server; and storing the fourth simulation result in the database, wherein the fourth simulation result is obtained by the multi-physics simulation platform server from the database and performing multi-physics simulation based on the third simulation result; and
[0147] receiving a target field-circuit coupling simulation result from the power system simulation platform server, wherein the target field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the third simulation result based on the fourth simulation result;
[0148] When it is detected that the simulation status is completed, the target field-circuit coupling simulation result is output.
[0149] In one embodiment, when the simulation state is detected to be in progress, a third simulation result is received from the power system simulation platform server, and the method includes:
[0150] Determining that the field-circuit coupling simulation is not completed according to the simulation status being in progress;
[0151] Controlling the power system simulation platform server to continue simulation through the synchronization module;
[0152] Detecting at a fourth time point that the power system simulation platform server suspends simulation;
[0153] The power system simulation platform server obtains the third simulation result at the fourth time node;
[0154] The power system simulation platform server sends the third simulation result to the terminal device;
[0155] The terminal device receives the third simulation result.
[0156] In one embodiment, the field-circuit coupling simulation system further includes a data interaction interface, and the power system simulation platform server and the multi-physics field simulation platform server are communicatively connected through the data interaction interface; before sending the simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, the method further includes:
[0157] Simultaneously calling the simulation engines of the power system simulation platform server and the multi-physics field simulation platform server through the data interaction interface;
[0158] Sending a preset first initial value to the simulation engine of the power system simulation platform server through the data interaction interface to implement simulation initialization settings for the power system simulation platform server; and
[0159] The preset second initial value is sent to the simulation engine of the multi-physics field simulation platform server through the data interaction interface to implement the simulation initialization setting of the multi-physics field simulation platform server.
[0160] In one embodiment, the database includes multiple channels, and the first simulation result and the second simulation result are stored in the first channel and the second channel respectively; receiving the second simulation result of the multi-physics field simulation platform server at the second time node includes:
[0161] The multi-physics field simulation platform server obtains the first simulation result by subscribing to the first channel;
[0162] The multi-physics field simulation platform server performs a multi-physics field simulation according to the first simulation result at the second time node to obtain the second simulation result;
[0163] The multi-physics field simulation platform server sends the second simulation result to the terminal device through the data interaction interface;
[0164] The terminal device receives the second simulation result.
[0165] In one embodiment, the receiving of the field-circuit coupling simulation result from the power system simulation platform server includes:
[0166] The power system simulation platform server obtains the second simulation result by subscribing to the second channel;
[0167] The power system simulation platform server obtains the power system simulation model in the first simulation result;
[0168] The power system simulation platform server modifies the power system simulation model according to the second simulation result to obtain the field-circuit coupling simulation result, wherein the field-circuit coupling simulation result includes the modified power system simulation model;
[0169] The power system simulation platform server sends the field-circuit coupling simulation result to the terminal device;
[0170] The terminal device receives the field-circuit coupling simulation result.
[0171] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0172] As can be seen, the terminal device of the device first sends a simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server through the sending unit 610; then, the detection unit 620 detects that the power system simulation platform server has paused the simulation at the third time node; then, the first simulation result of the power system simulation platform server at the third time node is received through the first receiving unit 630; and the first simulation result is stored in the database; secondly, the second simulation result of the multi-physics field simulation platform server at the second time node is received through the second receiving unit 640; and the second simulation result is stored in the database; thirdly, the field-circuit coupling simulation result from the power system simulation platform server is received through the third receiving unit 650; finally, the output unit 660 detects that the power system simulation platform server has completed the field-circuit coupling simulation, and then outputs the field-circuit coupling simulation result. This implements the use of a universal data interaction interface for data interaction, eliminating the need for coupling model equivalent processing, which is beneficial to improving the efficiency and accuracy of field-circuit coupling simulation.
[0173] See also Figure 7 , Figure 7 This is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 700 may include one or more of the following components: a processor 701, and a memory 702 coupled to the processor 701, wherein the memory 702 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 701.
[0174] The processor 701 may include one or more processing cores. The processor 701 utilizes various interfaces and circuits to connect various components within the electronic device 700. It executes instructions, programs, code sets, or instruction sets stored in the memory 702, and accesses data stored in the memory 702 to perform various functions and process data within the electronic device 700. Optionally, the processor 701 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 701 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 701 and may be implemented separately via a communication chip.
[0175] The memory 702 may include a random access memory (RAM) or a read-only memory (ROM). The memory 702 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 700 during use.
[0176] It is understandable that the electronic device 700 may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a Wi-Fi module, a speaker, a Bluetooth module, a sensor, etc., which are not limited here.
[0177] In addition, an embodiment of the present application also provides a computer storage medium, which stores a computer program that can be loaded by a processor and executes a data interaction method such as the above-mentioned field-circuit coupling simulation. The computer-readable storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0178] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and units involved are not necessarily required by this application.
[0179] This is merely a logical functional division; actual implementations may employ different divisions; for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. Furthermore, any coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via some interface, device, or unit, and may be electrical, mechanical, or other.
[0180] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0181] In addition, the functional units in various embodiments of the present invention may be integrated into a single processing unit, each unit may be physically included separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional units.
[0182] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DR RAM), among other media that can store program code.
[0183] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0184] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0185] Although the present application discloses the above, the present application is not limited thereto. Any person skilled in the art may readily conceive of variations or substitutions, and may make various changes and modifications, including combinations of the above-mentioned functions and implementation steps, including software and hardware implementations, without departing from the spirit and scope of the present application, and all are within the scope of protection of the present application.
Claims
1. A data interaction method for field-circuit coupling simulation, characterized in that: A terminal device used in a field-circuit coupling simulation system, wherein the field-circuit coupling simulation system further includes a power system simulation platform server and a multi-physics field simulation platform server, wherein the power system simulation platform server is communicatively connected to the multi-physics field simulation platform server, and the method includes: Sending a simulation start instruction to the power system simulation platform server and the multi-physics simulation platform server, wherein the simulation start instruction is used to instruct the power system simulation platform server to perform simulation according to a first preset simulation step size at a first time node, and is used to instruct the multi-physics simulation platform server to perform simulation according to a second preset simulation step size at a second time node, where the first time node is before the second time node; detecting that the power system simulation platform server suspends simulation at a third time node, the third time node being before the second time node; receiving a first simulation result from the power system simulation platform server at the third time node; and storing the first simulation result in a database; and, receiving a second simulation result of the multi-physics simulation platform server at the second time node; and storing the second simulation result in the database, where the second simulation result is obtained by the multi-physics simulation platform server obtaining the first simulation result from the database and performing multi-physics simulation based on the first simulation result; and, receiving a field-circuit coupling simulation result from the power system simulation platform server, wherein the field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the first simulation result based on the second simulation result; If it is detected that the power system simulation platform server has completed the field-circuit coupling simulation, the field-circuit coupling simulation result is output.
2. The method according to claim 1, characterized in that The database includes a status flag and a progress flag, the status flag is used to identify the simulation status of the field-circuit coupling simulation, the simulation status includes not started, in progress and completed, and the progress flag is used to store the simulation progress of the field-circuit coupling simulation; If it is detected that the power system simulation platform server has completed the field-circuit coupling simulation, then the field-circuit coupling simulation result is output, and the method includes: Querying the progress flag in real time to obtain the field-circuit coupling simulation progress of the power system simulation platform; Update the simulation status in real time according to the field-circuit coupling simulation progress of the power system simulation platform; When it is detected that the simulation status is completed, the field-circuit coupling simulation result is output.
3. The method according to claim 2, characterized in that The method further comprises: When it is detected that the simulation state is in progress, a third simulation result is received from the power system simulation platform server; and the third simulation result is stored in the database; the third simulation result is obtained by the power system simulation platform server continuing to simulate according to the field-circuit coupling simulation result; and, receiving a fourth simulation result from the multi-physics simulation platform server; and storing the fourth simulation result in the database, wherein the fourth simulation result is obtained by the multi-physics simulation platform server from the database and performing multi-physics simulation based on the third simulation result; and receiving a target field-circuit coupling simulation result from the power system simulation platform server, wherein the target field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the third simulation result based on the fourth simulation result; When it is detected that the simulation status is completed, the target field-circuit coupling simulation result is output.
4. The method according to claim 3, characterized in that When it is detected that the simulation state is in progress, a third simulation result is received from the power system simulation platform server, and the method includes: Determining that the field-circuit coupling simulation is not completed according to the simulation status being in progress; Controlling the power system simulation platform server to continue simulation through the synchronization module; Detecting at a fourth time point that the power system simulation platform server suspends simulation; The power system simulation platform server obtains the third simulation result at the fourth time node; The power system simulation platform server sends the third simulation result to the terminal device; The terminal device receives the third simulation result.
5. The method according to any one of claims 1 to 4, characterized in that The field-circuit coupling simulation system further includes a data interaction interface, and the power system simulation platform server and the multi-physics field simulation platform server are communicatively connected via the data interaction interface; Before sending the simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, the method further includes: Simultaneously calling the simulation engines of the power system simulation platform server and the multi-physics field simulation platform server through the data interaction interface; Sending a preset first initial value to the simulation engine of the power system simulation platform server through the data interaction interface to implement simulation initialization settings for the power system simulation platform server; and The preset second initial value is sent to the simulation engine of the multi-physics field simulation platform server through the data interaction interface to implement the simulation initialization setting of the multi-physics field simulation platform server.
6. The method according to claim 5, characterized in that The database includes a plurality of channels, and the first simulation result and the second simulation result are stored in the first channel and the second channel respectively; The receiving a second simulation result of the multi-physics field simulation platform server at the second time node includes: The multi-physics field simulation platform server obtains the first simulation result by subscribing to the first channel; The multi-physics field simulation platform server performs a multi-physics field simulation according to the first simulation result at the second time node to obtain the second simulation result; The multi-physics field simulation platform server sends the second simulation result to the terminal device through the data interaction interface; The terminal device receives the second simulation result.
7. The method according to claim 6, characterized in that The receiving of the field-circuit coupling simulation result from the power system simulation platform server includes: The power system simulation platform server obtains the second simulation result by subscribing to the second channel; The power system simulation platform server obtains the power system simulation model in the first simulation result; The power system simulation platform server modifies the power system simulation model according to the second simulation result to obtain the field-circuit coupling simulation result, wherein the field-circuit coupling simulation result includes the modified power system simulation model; The power system simulation platform server sends the field-circuit coupling simulation result to the terminal device; The terminal device receives the field-circuit coupling simulation result.
8. A data interaction device for field-circuit coupling simulation, characterized in that: A terminal device used in a field-circuit coupling simulation system, wherein the field-circuit coupling simulation system further includes a power system simulation platform server and a multi-physics field simulation platform server, wherein the power system simulation platform server is communicatively connected to the multi-physics field simulation platform server, and the device includes: a sending unit, configured to send a simulation start instruction to the power system simulation platform server and the multi-physics field simulation platform server, wherein the simulation start instruction is used to instruct the power system simulation platform server to perform simulation according to a first preset simulation step size at a first time node, and to instruct the multi-physics field simulation platform server to perform simulation according to a second preset simulation step size at a second time node, wherein the first time node is before the second time node; A detection unit, configured to detect that the power system simulation platform server suspends simulation at a third time node, the third time node being before the second time node; A first receiving unit is configured to receive a first simulation result of the power system simulation platform server at the third time node; and store the first simulation result in a database; and A second receiving unit is configured to receive a second simulation result of the multi-physics simulation platform server at the second time node; and store the second simulation result in the database, where the second simulation result is obtained by the multi-physics simulation platform server obtaining the first simulation result from the database and performing multi-physics simulation based on the first simulation result; and a third receiving unit, configured to receive a field-circuit coupling simulation result from the power system simulation platform server, wherein the field-circuit coupling simulation result is obtained by the power system simulation platform server from the database and adjusting the first simulation result based on the second simulation result; The output unit is configured to output the field-circuit coupling simulation result if it is detected that the power system simulation platform server has completed the field-circuit coupling simulation.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: The computer program / instructions are executed by a processor to implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Real-time hybrid simulation platform of power system
CN110879543A
Power distribution network state evaluation, regulation and control method and system based on field-circuit coupling simulation
CN117895516A