Method, system, device and medium for coupled computing and simulation

By unifying the scheduling of thermal and hydraulic analysis programs and mathematical modeling tools on the simulation control platform, the synchronization problem between calculation and simulation in traditional methods is solved, and the efficiency and flexibility of nuclear power plant design verification are improved.

CN117077397BActive Publication Date: 2024-09-27SHANGHAI HERMES TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311029654.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-15
Publication Date
2024-09-27
Estimated Expiration
2043-08-15

AI Technical Summary

Technical Problem

The traditional calculation and simulation methods used to couple nuclear power system design are difficult to synchronize the calculation of thermal hydraulic analysis programs and the simulation of simulation tools, resulting in low design verification efficiency.

Method used

Through the simulation control platform, start, stop, freeze, snapshot and reset instructions are sent to the thermal hydraulic analysis program and mathematical modeling tools to achieve unified scheduling and real-time database control of the thermal hydraulic analysis program and mathematical modeling tools to ensure calculation and Simulation synchronicity.

Benefits of technology

It improves the efficiency of nuclear power plant design verification, simplifies the model construction and calculation process, realizes real-time cycle synchronization of thermal hydraulic analysis programs and mathematical modeling tools, and enhances the flexibility and repeatability of the simulation platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device and medium for calculation and simulation of coupled nuclear power system design, comprising: a simulation control platform, sending a start instruction to a thermal-hydraulic analysis program and a mathematical modeling tool, thereby starting the thermal-hydraulic analysis program and the mathematical modeling tool, wherein the simulation control platform is connected to the thermal-hydraulic analysis program and the mathematical modeling tool; executing the following steps once or multiple times until the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions, thereby sending a stop instruction to the thermal-hydraulic analysis program and the mathematical modeling tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the processing of nuclear power information, and in particular, to methods, computing devices, and computer storage media for coupled calculation and simulation of nuclear power system design. Background Art

[0002] In the process of nuclear power plant design verification, due to the long test cycle, high cost and high risk of actual scenarios, design verification is usually carried out based on digital simulation models. Digital simulation refers to expressing the relevant parameters of an actual object or system in digital or geometric form, and then using computer technology to simulate the results that originally required physical tests to obtain, thereby realizing the process of conducting tests in a virtual environment. This method is called digital simulation. The present invention can achieve a highly efficient, risk-free and repeatable design verification method for nuclear power plants by coupling multiple scientific computing software to a simulation platform.

[0003] In summary, the traditional calculation and simulation methods used for coupled nuclear power system design have difficulty in synchronizing the calculation of thermal hydraulic analysis programs and the simulation of simulation tools. Summary of the invention

[0004] The present invention provides a method, a computing device and a computer storage medium for calculation and simulation of coupled nuclear power system design, which can realize functions such as scheduling of coupled programs, real-time database, simulation time step control, etc. through a coupling interface.

[0005] According to a first aspect of the present invention, a method for coupled calculation and simulation of nuclear power system design is provided, characterized in that it includes: a simulation control platform sends a start instruction to a thermal-hydraulic analysis program and a mathematical modeling tool, thereby starting the thermal-hydraulic analysis program and the mathematical modeling tool, and the simulation control platform is connected to the thermal-hydraulic analysis program and the mathematical modeling tool; executes the following steps once or multiple times until the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions, thereby sending a stop instruction to the thermal-hydraulic analysis program and the mathematical modeling tool: sends control parameters related to the nuclear power system to the thermal-hydraulic analysis program, so that the thermal-hydraulic analysis program calculates the operating parameters of the nuclear power system based on the control parameters; receives the operating parameters calculated by the thermal-hydraulic analysis program and sends the operating parameters to the mathematical modeling tool, so that the mathematical modeling tool simulates the nuclear power system based on the operating parameters and generates simulation control parameters of the nuclear power system; and receives the simulation control parameters generated by the mathematical modeling tool and sends the simulation control parameters to the thermal-hydraulic analysis program, so that the thermal-hydraulic analysis program calculates refreshed operating parameters based on the simulation control parameters.

[0006] According to a second aspect of the present invention, a computing device is also provided, comprising: a memory configured to store one or more computer programs; and a processor coupled to the memory and configured to execute the one or more programs so that the device performs the method of the first aspect of the present invention.

[0007] According to a third aspect of the present invention, a non-transitory computer-readable storage medium is further provided, wherein machine-executable instructions are stored on the non-transitory computer-readable storage medium, and when the machine-executable instructions are executed, the machine executes the method of the first aspect of the present invention.

[0008] In some embodiments, the method further includes: sending a freeze instruction to the thermal-hydraulic analysis program and / or the mathematical modeling tool, so that calculation and / or simulation of the thermal-hydraulic analysis program and / or the mathematical modeling tool is temporarily terminated.

[0009] In some embodiments, the method also includes: sending a snapshot instruction to the thermal-hydraulic analysis program and the mathematical modeling tool, so that the thermal-hydraulic analysis program and / or the mathematical modeling tool saves the data used to restart the current calculation and / or simulation into a database related to the thermal-hydraulic analysis program and / or the mathematical modeling tool.

[0010] In some embodiments, the method also includes: sending a reset instruction to the thermal-hydraulic analysis program and the mathematical modeling tool, so that the thermal-hydraulic analysis program and / or the mathematical modeling tool stop the current calculation and / or simulation, and read the previous data in the database related to the thermal-hydraulic analysis program and / or the mathematical modeling tool, thereby starting to continue the calculation and / or simulation related to the previous data.

[0011] In some embodiments, the method further comprises: determining a real-time cycle for executing calculations of the thermal-hydraulic analysis program and simulations of the mathematical modeling tool, so that the calculation time of the thermal-hydraulic analysis program is synchronized with the simulation time of the mathematical modeling tool.

[0012] In some embodiments, determining the real-time cycle for executing the calculation of the thermal-hydraulic analysis program and the simulation of the mathematical modeling tool includes: initializing the calculation and / or simulation cycle of the thermal-hydraulic analysis program and / or the mathematical modeling tool, thereby obtaining a common initial real-time cycle for the thermal-hydraulic analysis program and / or the mathematical modeling tool; recording a first time point at which the thermal-hydraulic analysis program and / or the mathematical modeling tool starts calculation and / or simulation; recording a second time point at which the thermal-hydraulic analysis program and / or the mathematical modeling tool ends calculation and / or simulation; in response to the difference between the second time point and the first time point being less than the initial real-time cycle, putting the thermal-hydraulic analysis program and / or the mathematical modeling tool into hibernation until a simulation cycle is completed; and in response to the difference between the second time point and the first time point being greater than the initial real-time cycle, updating the difference between the second time point and the first time point to a new real-time cycle.

[0013] In some embodiments, synchronizing the calculation time of the thermal-hydraulic analysis program with the simulation time of the mathematical modeling tool also includes: determining the real-time calculation cycle and / or real-time simulation cycle of the thermal-hydraulic analysis program and / or the mathematical modeling tool; in response to the real-time calculation cycle and / or the real-time simulation cycle being less than the initial real-time cycle, the thermal-hydraulic analysis program and / or the mathematical modeling tool performs cyclic calculation and / or cyclic simulation within the initial real-time cycle; and in response to the real-time calculation cycle and / or the real-time simulation cycle being greater than the initial real-time cycle, recording the second time point at which the thermal-hydraulic analysis program and / or the mathematical modeling tool ends the calculation and / or simulation.

[0014] In some embodiments, a system coupling a thermal-hydraulic analysis program and a mathematical modeling tool is provided, the system comprising: a thermal-hydraulic analysis program configured to calculate operating parameters of a nuclear power system based on control parameters; a mathematical modeling tool configured to simulate the nuclear power system based on the operating parameters and generate control parameters for nuclear power system simulation; and a simulation control platform connected to the thermal-hydraulic analysis program and the mathematical modeling tool, the simulation control platform configured to execute the method as described above for calculation and simulation of nuclear power system design.

[0015] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the invention, nor is it intended to limit the scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a system 100 for implementing a method for coupling calculation and simulation of nuclear power system design according to an embodiment of the present invention is shown.

[0017] Figure 2A flow chart of a method 200 for coupling calculation and simulation of nuclear power system design according to an embodiment of the present invention is shown.

[0018] Figure 3 A flow chart of a method 300 for coupling calculation and simulation of nuclear power system design according to an embodiment of the present invention is shown.

[0019] Figure 4 A schematic diagram of a system 400 for coupled nuclear power system design simulation according to an embodiment of the present invention is shown.

[0020] Figure 5 The block diagram of an electronic device suitable for implementing the embodiments of the present invention is schematically shown.

[0021] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0022] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0023] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects.

[0024] As described above, the traditional calculation and simulation methods used for coupled nuclear power system design have difficulty in synchronizing the calculation of thermal hydraulic analysis programs and the simulation of simulation tools.

[0025] The user builds the thermal system and control system model of the nuclear power plant by editing the program input file in text form. The control system model based on text form is relatively complex and has poor readability. At the same time, due to the independence of the program, the program can only calculate one physical problem at a time, and it is impossible to judge the trend of the model changing with the simulation time step before the end of the calculation. The calculation time step is a key parameter for the stability of the program calculation. The calculation time step of the program is specified by the user. During the calculation, the time step will be automatically adjusted within the specified range according to the complexity of the physical problem. In this case, when the program calculates the simulation time for a long time or the model is more complex, it will consume a lot of natural time, and even the natural time consumed is much greater than the simulation time. The above three shortcomings will greatly affect the efficiency of design verification.

[0026] Although the mathematical modeling tool Simulink has a simple control system modeling method, it does not contain the nuclear power plant process system fluid system model and the basic equipment model library. If users want to implement it based on Matlab language programming, they will need a huge amount of knowledge and workload.

[0027] The present invention combines the functional advantages of the above two software for nuclear power plant design verification. The thermal system of the nuclear power plant is built by a thermal hydraulic analysis program, and the control system of the nuclear power plant is built by a mathematical modeling tool Simulink program. By modifying or developing the coupling interface of the above two programs, the two are coupled to a simulation platform, and the simulation platform realizes unified scheduling of the above two software, thereby inventing a coupling method for a simulation platform for nuclear power plant design verification.

[0028] Figure 1 FIG. 1 is a schematic diagram of a system 100 for implementing a method for coupling calculation and simulation of nuclear power system design according to an embodiment of the present invention. Figure 1 As shown in FIG. 1 , the system 100 includes a computing device 110, a network 140, and a nuclear power data management server 124. The computing device 110 and the nuclear power data management server 124 can perform data exchange through the network 140 (eg, the Internet) including a gateway.

[0029] The nuclear power data management server 124 may be a one-stop storage computing structure running on one or more computer nodes for implementing high-concurrency, high-throughput query services. The nuclear power data management server 124 may send, receive or store multiple copies of nuclear power data or a collection of nuclear power data, the nuclear power data including but not limited to plain text information, cipher text information and key information, etc., and the information may include text files, image files or scanned files.

[0030] The computing device 110 may be configured to receive nuclear power data or a collection of nuclear power data from the nuclear power data management server 124, for example, via the network 140. By performing corresponding processing on the received nuclear power data or a collection of nuclear power data, the computing device 110 may encrypt and decrypt the information and generate a key.

[0031] The computing device 110 may have one or more processing units, including dedicated processing units such as GPU, FPGA and ASIC, and general processing units such as CPU. In addition, one or more virtual machines may also be running on each computing device 110. In some embodiments, the computing device 110 and the nuclear power data management server 124 may be integrated or separately arranged. In some embodiments, the computing device 110 includes a sending module 112, a receiving module 114 and a control module 116.

[0032] The sending module 112 is configured to send a start instruction to the thermal hydraulic analysis program and the mathematical modeling tool, thereby starting the thermal hydraulic analysis program and the mathematical modeling tool.

[0033] The sending module 112 is configured to send control parameters related to the nuclear power system to the thermal-hydraulic analysis program, so that the thermal-hydraulic analysis program calculates operating parameters of the nuclear power system based on the control parameters.

[0034] A receiving module 114 is configured to receive the operating parameters calculated by the thermal-hydraulic analysis program and send the operating parameters to the mathematical modeling tool, so that the mathematical modeling tool simulates the nuclear power system based on the operating parameters and generates control parameters for the nuclear power system simulation.

[0035] The receiving module 114 is configured to receive the simulated control parameters generated by the mathematical modeling tool and send the simulated control parameters to the thermal hydraulic analysis program, so that the thermal hydraulic analysis program calculates updated operating parameters based on the simulated control parameters.

[0036] The control module 116 is configured to execute the above steps once or multiple times until the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions, thereby sending a stop instruction to the thermal hydraulic analysis program and the mathematical modeling tool.

[0037] The following will be combined Figure 2 A method for coupled calculation and simulation of nuclear power system design according to an embodiment of the present invention is described. Figure 2FIG. 2 is a flow chart of a method 200 for coupling calculation and simulation of nuclear power system design according to an embodiment of the present invention. It should be understood that the method 200 can be implemented in Figure 5 The electronic device 500 described above is executed. Figure 1 The method 200 is executed at the described computing device 110. It should be understood that the method 200 may also include additional actions not shown and / or may omit the actions shown, and the scope of the present invention is not limited in this respect.

[0038] Method 200 is applicable to a simulation control platform connected to a thermal hydraulic analysis program and a mathematical modeling tool. In the present invention, the thermal hydraulic analysis program can perform physical simulation calculations based on two fluid six equations. The program has general component models such as pumps, pipelines, branches, injection boxes, valves, jet pumps, steam turbines, separators and control system components, as well as special process models such as reflooding heat transfer model, vapor-liquid reverse flow restriction model, critical flow model, flow channel area mutation model, cross flow model, non-condensable gas model, air gap heat conduction, etc. The program can be used to simulate accidents such as LOCA, ATWS, SGTR, MSLB, LOFW of light water reactor systems and thermal hydraulic transient behaviors of certain steam systems. It is one of the large-scale programs with relatively complete physical models. The main features of the thermal hydraulic analysis program can be summarized as follows: modularization. Users can combine common components of the program to model the nuclear power plant system. The modeling method is very flexible and the detail and scope of the model can be adjusted as needed; complex input. The parameters of the program input file are organized in the form of strings and numbers. The order and format must follow the set rules. Usually, the input parameters for the modeling of the first and second circuits of a pressurized water reactor nuclear power plant will reach several thousand lines. Even for experienced users, the probability of error is very high; non-real-time calculation. The speed of the thermal hydraulic analysis program calculation is mainly determined by the time step, and the time step is The adaptive adjustment scheme belongs to non-real-time calculation; the simple restart operation mode, during each calculation process, the user can set the restart data saving frequency, so that the user can restart the calculation from the time point where the data has been saved as needed, but these starting points cannot be flexibly dynamically controlled; text data viewing, the calculation results of the RELAP5 program are all in offline text mode, and the parameter evolution process cannot be dynamically observed during the calculation process; simple control and protection simulation function, through addition, subtraction, multiplication, division, differentiation, integration and other components, the control and protection logic of the nuclear power plant can be constructed, but its modeling is very cumbersome and subject to quite a lot of restrictions.

[0039] In the present invention, the mathematical modeling tool can be Simulink. Simulink is a software tool for building and simulating model-based design, and it is one of the flagship products of MathWorks. Simulink uses a visual block diagram to represent the system model, allowing users to model and simulate the system more easily and intuitively. By using Simulink to design the system model, users can build, test and verify the system functions more quickly, thereby greatly shortening the development cycle of the system. Simulink also allows users to add custom code to the model to fine-tune and optimize the system. After the model is built, Simulink can automatically generate code or compile the model into the target hardware for embedded control and processing applications. Simulink supports multiple physical system fields, including control systems, communication systems, signal processing, images, network systems and embedded systems, etc., which can help users build and verify complex systems faster and quickly develop prototypes. The advantage of Simulink is that it is easy to use and does not require a lot of programming experience to quickly build and verify complex systems. However, due to the coverage of the module library, it is temporarily not available for scientific research on physical problems such as fluid mechanics and heat transfer.

[0040] The simulation control platform can be a nuclear power plant operation simulation platform S-Manager, such as Simulink-manager, which can realize the scheduling of coupling programs, real-time database, simulation time step control and other functions through the coupling interface.

[0041] At step 202 , the computing device 110 causes the simulation control platform to send a startup instruction to the thermal-hydraulic analysis program and the mathematical modeling tool, thereby starting the thermal-hydraulic analysis program and the mathematical modeling tool, and the simulation control platform is connected to the thermal-hydraulic analysis program and the mathematical modeling tool.

[0042] The computing device 110 can use the console program of the simulation control platform as the main program to send a startup instruction to the thermal hydraulic analysis program and the mathematical modeling tool to start them, wherein the thermal hydraulic analysis program and the mathematical modeling tool are called as subroutines. Specifically, after successful startup, the thermal hydraulic analysis program and the mathematical modeling tool send a startup success message to the console program of the simulation control platform to notify the simulation control platform that the thermal hydraulic analysis program and the mathematical modeling tool are available. In the subsequent calculation cycle, the console program's instructions will be received and processed at a certain frequency.

[0043] The computing device 110 may cause the simulation control platform to execute the following steps once or multiple times until the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions, thereby sending a stop instruction to the thermal hydraulic analysis program and the mathematical modeling tool:

[0044] At step 204, the computing device 110 causes the simulation control platform to send control parameters related to the nuclear power system to the thermal-hydraulic analysis program, so that the thermal-hydraulic analysis program calculates operating parameters of the nuclear power system based on the control parameters.

[0045] In one embodiment, in a calculation cycle, when the thermal hydraulic analysis program receives a "run" instruction sent by the console program, the program enters the next calculation cycle. In the initial stage of the calculation cycle, dynamically input control parameters are received. Then the cycle calculation is performed, and after the calculation is completed, the parameters of the nuclear power plant digital simulation model are dynamically output.

[0046] At step 206, the computing device 110 enables the simulation control platform to receive the operating parameters calculated by the thermal-hydraulic analysis program and send the operating parameters to the mathematical modeling tool, so that the mathematical modeling tool simulates the nuclear power system based on the operating parameters and generates simulation control parameters of the nuclear power system.

[0047] In one embodiment, the simulation control platform receives the operating parameters calculated by the thermal hydraulic analysis program and sends the operating parameters to the mathematical modeling tool. The mathematical modeling tool simulates the nuclear power system based on the operating parameters and generates control parameters for the nuclear power system simulation.

[0048] In a preferred embodiment, the simulation control platform determines the real-time period for executing the calculation of the thermal hydraulic analysis program and the simulation of the mathematical modeling tool, so that the calculation time of the thermal hydraulic analysis program is synchronized with the simulation time of the mathematical modeling tool. The specific method for synchronizing the simulation time will be described below.

[0049] At step 208 , the computing device 110 enables the simulation control platform to receive the simulation control parameters generated by the mathematical modeling tool and send the simulation control parameters to the thermal-hydraulic analysis program, so that the thermal-hydraulic analysis program calculates updated operating parameters based on the simulation control parameters.

[0050] In one embodiment, the simulation control platform receives the simulation control parameters generated by the mathematical modeling tool, and sends the simulation control parameters to the thermal hydraulic analysis program. The thermal hydraulic analysis program calculates updated operating parameters based on these simulation control parameters. Condition check and stop command sending: Check whether the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions. If the conditions are met, a stop command is sent to the thermal hydraulic analysis program and the mathematical modeling tool. If the conditions are not met, the above steps are repeated until the expected conditions are met.

[0051] The computing device 110 causes the simulation control platform to execute the above steps once or multiple times until the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions, thereby sending a stop instruction to the thermal-hydraulic analysis program and the mathematical modeling tool.

[0052] In one embodiment, the computing device 110 may send a freeze instruction to the thermal-hydraulic analysis program and / or the mathematical modeling tool, so that the calculation and / or simulation of the thermal-hydraulic analysis program and / or the mathematical modeling tool is temporarily terminated.

[0053] In one embodiment, the computing device 110 may send a snapshot instruction to the thermal-hydraulic analysis program and the mathematical modeling tool, so that the thermal-hydraulic analysis program and / or the mathematical modeling tool will restart the current calculation and / or simulation data and save it into a database associated with the thermal-hydraulic analysis program and / or the mathematical modeling tool.

[0054] In one embodiment, the computing device 110 may send a reset instruction to the thermal-hydraulic analysis program and the mathematical modeling tool, so that the thermal-hydraulic analysis program and / or the mathematical modeling tool stop the current calculation and / or simulation, and read the previous data in the database related to the thermal-hydraulic analysis program and / or the mathematical modeling tool, thereby starting to continue the calculation and / or simulation related to the previous data.

[0055] Taking the thermal hydraulic program as an example, in response to the console program of the simulation control platform sending a "freeze" command, the thermal hydraulic analysis program of the simulation control platform will pause at the current position and wait for the next command until it encounters a non-"freeze" command to continue the program execution. During the calculation process, if the console needs to save the current calculation results, it will send a "snapshot" command, and the thermal hydraulic program will save the information required for restarting, such as all parameters of the simulation model and the thermal hydraulic state parameters at the current moment, etc., for restarting the calculation at this point in the future.

[0056] In one embodiment, no matter what state the program is running in, the console of the simulation control platform can restore the program to the state that has been saved by the "snapshot" instruction by sending a "reset" instruction. The reset operation first ends the current calculation, exits the thermal-hydraulic analysis program, and returns to the console program to re-enter it again. The program will read the information saved by the "snapshot", reinitialize the thermal-hydraulic analysis program, and then enter the calculation loop to continue the calculation at the restart point. Finally, the console sends a "stop" instruction for the thermal-hydraulic analysis program calculation. Before terminating, the program will send a program termination message to the console program to notify other programs in the system that the thermal-hydraulic analysis program is no longer available. Note that the above instructions also apply to mathematical modeling tools.

[0057] Based on the above technical means, the thermal hydraulic analysis program provides a restart function, and the user can wait for the end of the program and perform other process control operations until the end conditions are met and the program automatically terminates. In the digital simulation model calculation of the nuclear power plant, the thermal hydraulic analysis program and / or mathematical modeling tools can quickly and flexibly respond to the start, stop, run, freeze, snapshot, and reset instructions issued by the simulation platform to perform the above actions.

[0058] In one embodiment, the computing device 110 can also realize the dynamic interaction function of parameters. The real-time state parameters of the digital simulation model of the nuclear power system usually need to be dynamically output to the instrument panel, large screen for display or used by other systems such as control and protection systems. At the same time, some thermal hydraulic parameters such as flow, valve status, heating power, control rod position and other parameters also need to be dynamically controlled according to actual needs to observe the response of the nuclear power plant system. Therefore, the computing device 110 can enable the simulation control platform to interact with the calculation and simulation parameters of the thermal hydraulic analysis program and / or mathematical modeling tool.

[0059] The following will be combined Figure 3 A method for coupled calculation and simulation of nuclear power system design according to an embodiment of the present invention is described. Figure 3 FIG. 3 is a flow chart of a method 300 for coupling calculation and simulation of nuclear power system design according to an embodiment of the present invention. It should be understood that the method 300 can be implemented in Figure 5 The electronic device 500 described above is executed. Figure 1 The method 200 is executed at the described computing device 110. It should be understood that the method 200 may also include additional actions not shown and / or may omit the actions shown, and the scope of the present invention is not limited in this respect.

[0060] In the physical monitoring time interval of a simulation control platform, excluding the equation solving time, communication interaction time and intermediate variable output time of the thermal hydraulic analysis program and / or mathematical modeling tool, the extra time is the computer waiting time. In a physical monitoring time interval, if the actual time consumed by the thermal hydraulic analysis program and / or mathematical modeling tool is less than a uniform step size, the computer is put into hibernation and waits until the computer time consumption is the same as the physical time. In this way, the physical monitoring time interval of each simulation control platform is consistent with the calculation and / or simulation time step of each thermal hydraulic analysis program and / or mathematical modeling tool, so that the overall calculation time is synchronized with the actual physical problem time, and the real-time calculation function is realized.

[0061] At step 302 , the computing device 110 initializes a calculation and / or simulation cycle of the thermal-hydraulic analysis program and / or mathematical modeling tool, thereby obtaining a common initial real-time cycle for the thermal-hydraulic analysis program and / or mathematical modeling tool.

[0062] In one embodiment, the computing device 110 may set an initial real-time period, for example, 10 seconds. The initial implementation period is a predetermined time required to perform a set of calculations or simulations. After receiving the calculation and / or simulation period for initializing the thermal hydraulic analysis program and / or mathematical modeling tool, the initialization operation of the thermal hydraulic analysis program and / or mathematical modeling tool is performed.

[0063] At step 304 , the computing device 110 records a first time point of starting calculation and / or simulation of the thermal-hydraulic analysis program and / or mathematical modeling tool.

[0064] In one embodiment, the computing device 110 records the first time point at which the calculation and / or simulation of the thermal-hydraulic analysis program and / or mathematical modeling tool is started, and performs the calculation and / or simulation operation of the thermal-hydraulic analysis program and / or mathematical modeling tool at the first time point.

[0065] At step 306 , the computing device 110 records a second time point at which the thermal-hydraulic analysis program and / or the mathematical modeling tool ends the calculation and / or simulation.

[0066] In one embodiment, the computing device 110 records the second time point at which the calculation and / or simulation of the thermal hydraulic analysis program and / or mathematical modeling tool is terminated, and terminates the calculation and / or simulation operation of the thermal hydraulic analysis program and / or mathematical modeling tool at the second time point. The computing device 110 calculates the difference between the second time point and the first time point to obtain a time difference. The time difference or difference reflects the actual time for the thermal hydraulic analysis program and / or mathematical modeling tool to complete a set of calculations and / or simulations.

[0067] At step 308, in response to the difference between the second time point and the first time point being less than the initial real-time cycle, the computing device 110 puts the thermal-hydraulic analysis program and / or mathematical modeling tool into hibernation until a simulation cycle is completed.

[0068] In one embodiment, the computing device 110 can determine the real-time calculation cycle and / or real-time simulation cycle of the thermal-hydraulic analysis program and / or mathematical modeling tool; in response to the real-time calculation cycle and / or real-time simulation cycle being less than the initial real-time cycle, the thermal-hydraulic analysis program and / or mathematical modeling tool performs cyclic calculation and / or cyclic simulation within the initial real-time cycle; and in response to the real-time calculation cycle and / or real-time simulation cycle being greater than the initial real-time cycle, the second time point at which the thermal-hydraulic analysis program and / or mathematical modeling tool ends the calculation and / or simulation is recorded.

[0069] At step 310 , in response to the difference between the second time point and the first time point being greater than the initial real-time period, the computing device 110 updates the difference between the second time point and the first time point to a new real-time period.

[0070] In one embodiment, if the time difference is less than the initial real-time cycle, the computing device 110 puts the thermal hydraulic analysis program and / or mathematical modeling tool into sleep mode until a simulation cycle is completed. If the time difference is greater than the initial real-time cycle, the new real-time cycle is updated to the time difference.

[0071] The following will be combined Figure 4 A system 400 for coupled nuclear power system design simulation according to an embodiment of the present invention is described. Figure 4 A schematic diagram of a system 400 for coupled nuclear power system design simulation according to an embodiment of the present invention is shown.

[0072] A system 400 for coupling nuclear power system design simulation includes: a thermal-hydraulic analysis program 402, which is configured to calculate the operating parameters of the nuclear power system based on control parameters; a mathematical modeling tool 404, which is configured to simulate the nuclear power system based on the operating parameters and generate control parameters for the nuclear power system simulation; and a simulation control platform 406, which is configured to execute the methods 200 and 300 as described above, thereby coupling the calculation and simulation of the nuclear power system design.

[0073] In one embodiment, the working process of the system 400 is illustrated by the realization of the temperature control of the primary circuit of a nuclear power plant. The simulation control platform 406 controls the thermal hydraulic analysis program and the mathematical modeling tool Simulink program to start calculations from their initial states according to the method described above. In each calculation time step, the coupling program will perform the following calculation process:

[0074] Step 1. The simulation control platform 406 enables the thermal hydraulic analysis program 402 to receive the "rod position" control parameter from the simulation control platform 406, so that the thermal hydraulic analysis program 402 sequentially enters the "reactivity" operation parameter calculation, the "nuclear power" operation parameter calculation, and the primary circuit "temperature" operation parameter calculation, and then sends the "temperature" operation parameter signal to the simulation control platform 406 to refresh the operation parameter "real-time temperature signal" of the nuclear power system;

[0075] Step 2. The simulation control platform 406 enables the mathematical modeling tool 404, such as the Simulink program, to receive the "temperature" operating parameter signal from the simulation control platform 406, so that the mathematical modeling tool 404 sequentially enters into the control parameter calculation of the "rod lifting / inserting instruction" simulation and the control parameter calculation of the "rod position" simulation, and then sends the simulated control parameter "rod position" signal to the simulation control platform 406 to refresh the simulated control parameter "real-time rod position signal";

[0076] Step 3. The simulation control platform 406 determines whether to stop the calculation. If the calculation continues, it returns to step 1. If the calculation stops, the thermal hydraulic analysis program calculation and the mathematical modeling tool Simulink program calculation are terminated. During the above steps, the simulation control platform 406 can also send other instructions such as reset and snapshot.

[0077] Figure 5 The block diagram of an electronic device 500 suitable for implementing an embodiment of the present invention is schematically shown. The electronic device 500 may be a device for implementing Figures 2 to 3 The methods 200 and 300 shown in FIG. Figure 5 As shown, the electronic device 500 includes a central processing unit (i.e., CPU 501), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (i.e., ROM 502) or computer program instructions loaded from a storage unit 508 to a random access memory (i.e., RAM 503). In RAM 503, various programs and data required for the operation of the electronic device 500 can also be stored. CPU 501, ROM 502 and RAM 503 are connected to each other via a bus 504. An input / output interface (i.e., I / O interface 505) is also connected to the bus 504.

[0078] Multiple components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, and a storage unit 508. The CPU 501 performs the various methods and processes described above, such as executing the method 200. For example, in some embodiments, the method 200 can be implemented as a computer software program, which is stored in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the CPU 501, one or more operations of the methods 200, 600, and 500 described above can be performed. Alternatively, in other embodiments, the CPU 501 can be configured to perform one or more actions of the method 200 by any other appropriate means (for example, by means of firmware).

[0079] It should be further explained that the present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.

[0080] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0081] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0082] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present invention.

[0083] Various aspects of the present invention are described herein with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to an embodiment of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0084] These computer-readable program instructions can be provided to a processor in a voice interaction device, a general-purpose computer, a special-purpose computer, or a processing unit of other programmable data processing devices, thereby producing a machine, so that when these instructions are executed by a processing unit of a computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions enable the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0085] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0086] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the equipment, method and computer program product according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of this module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0087] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

[0088] The above are only optional embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for calculation and simulation of coupled nuclear power system design, characterized in that it includes: The simulation control platform sends a start instruction to the thermal hydraulic analysis program and the mathematical modeling tool, thereby starting the thermal hydraulic analysis program and the mathematical modeling tool, and the simulation control platform is connected to the thermal hydraulic analysis program and the mathematical modeling tool; Perform the following steps once or multiple times until the operating parameters and / or simulation control parameters received by the simulation control platform meet the expected conditions, thereby sending a stop instruction to the thermal hydraulic analysis program and the mathematical modeling tool: Sending control parameters related to the nuclear power system to the thermal-hydraulic analysis program so that the thermal-hydraulic analysis program calculates operating parameters of the nuclear power system based on the control parameters; Receiving the operating parameters calculated by the thermal-hydraulic analysis program and sending the operating parameters to the mathematical modeling tool, so that the mathematical modeling tool simulates the nuclear power system based on the operating parameters and generates simulation control parameters of the nuclear power system; as well as The simulation control parameters generated by the mathematical modeling tool are received and sent to a thermal hydraulic analysis program, so that the thermal hydraulic analysis program calculates updated operating parameters based on the simulation control parameters.

2. The method according to claim 1, characterized in that: The method further comprises: A freeze command is sent to the thermal-hydraulic analysis program and / or the mathematical modeling tool, so that the calculation and / or simulation of the thermal-hydraulic analysis program and / or the mathematical modeling tool is temporarily terminated.

3. The method according to claim 2, characterized in that The method further comprises: Send a snapshot instruction to the thermal-hydraulic analysis program and the mathematical modeling tool, so that the thermal-hydraulic analysis program and / or the mathematical modeling tool saves data for restarting the current calculation and / or simulation into a database associated with the thermal-hydraulic analysis program and / or the mathematical modeling tool.

4. The method according to claim 3, characterized in that The method further comprises: A reset instruction is sent to the thermal-hydraulic analysis program and the mathematical modeling tool, so that the thermal-hydraulic analysis program and / or the mathematical modeling tool stop the current calculation and / or simulation, and read the previous data in the database related to the thermal-hydraulic analysis program and / or the mathematical modeling tool, so as to start to continue the calculation and / or simulation related to the previous data.

5. The method according to claim 1, characterized in that The method further comprises: The real-time cycle for executing the calculation of the thermal hydraulic analysis program and the simulation of the mathematical modeling tool is determined, so that the calculation time of the thermal hydraulic analysis program is synchronized with the simulation time of the mathematical modeling tool.

6. The method according to claim 5, characterized in that The real-time cycle of the simulation of the calculation and mathematical modeling tools that perform the thermal-hydraulic analysis program includes: Initializing a calculation and / or simulation cycle of a thermal hydraulic analysis program and / or a mathematical modeling tool, thereby obtaining a common initial real-time cycle for the thermal hydraulic analysis program and / or the mathematical modeling tool; Recording the first time point of starting calculation and / or simulation of the thermal hydraulic analysis program and / or mathematical modeling tool; Recording a second time point at which the thermal hydraulic analysis program and / or mathematical modeling tool ends calculation and / or simulation; In response to the difference between the second time point and the first time point being less than the initial real-time cycle, putting the thermal hydraulic analysis program and / or mathematical modeling tool into hibernation until a simulation cycle is completed; and In response to the difference between the second time point and the first time point being greater than the initial real-time period, the difference between the second time point and the first time point is updated to a new real-time period.

7. The method according to claim 5, characterized in that Synchronizing the computation time of the thermal hydraulic analysis program with the simulation time of the mathematical modeling tool further includes: Determine the real-time calculation cycle and / or real-time simulation cycle of the thermal hydraulic analysis program and / or mathematical modeling tool; In response to the real-time calculation cycle and / or the real-time simulation cycle being less than the initial real-time cycle, the thermal-hydraulic analysis program and / or the mathematical modeler performs cyclic calculation and / or cyclic simulation within the initial real-time cycle; and In response to the real-time calculation cycle and / or the real-time simulation cycle being greater than the initial real-time cycle, a second time point at which the calculation and / or simulation of the thermal-hydraulic analysis program and / or the mathematical modeling tool ends is recorded.

8. A system for coupled nuclear power system design simulation, characterized in that: The system comprises: a thermal hydraulic analysis program configured to calculate operating parameters of the nuclear power system based on the control parameters; a mathematical modeling tool configured to simulate a nuclear power system based on operating parameters and generate control parameters for the nuclear power system simulation; and A simulation control platform, the simulation control platform is connected to a thermal hydraulic analysis program and a mathematical modeling tool, and the simulation control platform is configured to execute the method described in any one of claims 1 to 7 for calculation and simulation of nuclear power system design.

9. A computing device, characterized in that include: at least one processing unit; At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a machine, the method according to any one of claims 1 to 7 is implemented.