An integration method, platform and medium suitable for analog machine severe accident simulation software and simulation support platform
Patent Information
- Application Number
- CN202511511202.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-21
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2045-10-21
AI Technical Summary
本发明依据仿真支撑平台的技术需求,把模拟机严重事故仿真软件修改为待集成仿真软件。再依照模拟机严重事故仿真软件的全局变量,获取能够配置平台数据库的数据库输入文件与数据库输出文件。把数据库输入文件、数据库输出文件以及待集成仿真软件嵌入到仿真支撑平台之中,从而缩短了数据交互的时长,提升了平台的计算速度。
Smart Images

Figure CN121389470B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of real-time simulation technology of nuclear reactors, and particularly relates to an integration method, platform and medium for simulation software and simulation support platform suitable for severe accident simulation in simulators. Background Technology
[0002] In the field of nuclear power simulation, severe accident simulation software typically runs in offline analysis environments, with its computational engine advancing in variable steps and lacking essential training functions such as freeze, snapshot, and reset. In contrast, full-range simulators and their simulation support platforms employ a fixed frame rate, real-time scheduling architecture. These two approaches differ fundamentally in data interfaces, time-domain control, variable naming, and teaching / control semantics, making it difficult to directly integrate severe accident functionality into existing training systems. This creates a structural gap between "engineering analysis silos" and "real-time training needs."
[0003] In recent years, both domestically and internationally, the "bridging process" or "external encapsulation" approach has been widely adopted to integrate specific critical incident programs into the simulation support platform via shared memory, network packets, or dynamic libraries. This approach requires writing separate protocol conversion and timing synchronization layers for each computing engine, resulting in inconsistent interface specifications and heavy reliance on operating systems and software versions. Once the critical incident program is replaced or the support platform is upgraded, redevelopment, debugging, and verification are necessary, leading to long project cycles, high costs, and maintenance difficulties. Furthermore, the real-time performance, reproducibility, and scalability fail to meet the unified training needs of multiple machine types and power plants. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide an integration method for simulation software and simulation support platform suitable for serious accidents in simulators; The technical solution adopted by this invention to solve its technical problem is: an integration method for simulation software and simulation support platform suitable for severe accidents in simulators, comprising the following steps: Step S01: According to the technical requirements of the simulation support platform, adjust the basic elements of the simulator severe accident simulation software to obtain the simulation software to be integrated; Step S02: Organize the global variables of the simulator's severe accident simulation software into two categories, input variables and output variables, according to the simulation requirements to obtain database input files and database output files; Step S03: Store the database input file and the database output file in the platform database of the simulation support platform; Step S04: Establish the interface correspondence between the simulation software to be integrated and the simulation support platform, and embed the simulation software to be integrated into the simulation support platform.
[0005] Optionally, the basic elements include: source program structure, calculation flow, global variables, input data, output data, and control statements.
[0006] Optionally, step S01 includes: According to the technical requirements, the source program structure, the calculation process, the global variables, the input data, the output data, and the control statements are adjusted to obtain the integrated simulation software to be confirmed. The control statements are entered into the simulation support platform; The simulation support platform is used to preprocess the integrated simulation software to be confirmed, resulting in an executable program and library files. The executable program and the library files are entered into the simulation support platform to obtain the simulation software to be integrated.
[0007] Optionally, the calculation process can be adjusted according to the technical requirements, including: The calculation process is adjusted according to the operation process of the simulation support platform.
[0008] Optionally, step S02 includes: The global variables are organized into two categories, input variables and output variables, according to the simulation requirements, to obtain source input files and source output files; The source input file and the source output file are converted into the database input file and the database output file using static analysis tools.
[0009] Optionally, the step of organizing the global variables into two categories, input variables and output variables, according to simulation requirements to obtain source input files and source output files includes: The input variables are read from the input card file of the severe accident simulation software of the simulator; Read the output variables from the output file of the severe accident simulation software of the simulator; The input variables and the output variables are entered into different files to obtain the source input file and the source output file.
[0010] Optionally, step S04 includes: Establish the correspondence between the data variable interfaces of the simulation software to be integrated and other simulation tools on the simulation support platform; The simulation software to be integrated is embedded into the simulation support platform according to the corresponding relationship.
[0011] Optionally, the simulation support platform includes a boundary-to-point tool; The simulation software to be integrated is embedded into the simulation support platform according to the correspondence, including: The simulation software to be integrated interacts with the data variable interface using the boundary point tool.
[0012] A simulation support platform includes a processor and a memory storing computer-readable instructions, the processor being configured to perform the integration method as described in any one of the preceding descriptions when executing the computer-readable instructions.
[0013] A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the integration method as described in any one of the preceding descriptions.
[0014] The implementation of this invention has the following beneficial effects: Based on the technical requirements of the simulation support platform, this invention modifies the severe accident simulation software of the simulator into the simulation software to be integrated. Then, according to the global variables of the severe accident simulation software, it obtains the database input and output files that can configure the platform database. The database input and output files, along with the simulation software to be integrated, are embedded into the simulation support platform, thereby shortening the data interaction time and improving the platform's computing speed. Attached Figure Description
[0015] The present invention will be further described below with reference to the accompanying drawings and embodiments: Figure 1 This is a flowchart of an embodiment of an integration method for a simulator-based severe accident simulation software and simulation support platform. Detailed Implementation
[0016] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0017] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0018] This invention provides an integration method for simulation software and simulation support platform applicable to severe accident simulations in simulators. See also... Figure 1 The integration method includes the following steps: Step S01: Based on the technical requirements of the simulation support platform, adjust the basic elements of the simulator's severe accident simulation software to obtain the simulation software to be integrated.
[0019] Specifically, the adjustments to the basic elements do not involve changes to the calculation model, calculation methods, or other parts of the simulated severe accident software source code. Therefore, this adjustment ensures the integrity, correctness, and verifiability of the source code.
[0020] Understandably, adjustments to the basic elements primarily target software interfaces, data interaction formats, and runtime environment configurations. For example, the software interface is adjusted to conform to the communication protocols and data transmission standards specified by the simulation support platform, ensuring smooth data interaction between the simulation software to be integrated and the platform. Regarding data interaction formats, the encoding methods and data structures are standardized according to the requirements of the simulation support platform to ensure accurate information transmission between different systems. As for runtime environment configuration, the operating parameters of the severe accident simulation software are optimized based on the hardware and software environment of the simulation support platform, such as memory allocation and the number of threads, to ensure stable and efficient operation of the simulation software to be integrated on the platform. These adjustments preserve the core computational components of the severe accident simulation software while adapting it to the requirements of the simulation support platform, laying a solid foundation for subsequent integration work.
[0021] Step S02: Organize the global variables of the simulator's severe accident simulation software into two categories, input variables and output variables, according to the simulation requirements, to obtain database input files and database output files.
[0022] Understandably, based on the data storage and management requirements of the simulation support platform, the format of these two files is optimized to conform to the data processing specifications of the simulation support platform. This ensures that the data can be successfully imported into the database of the simulation support platform for storage and analysis, and ensures that the data of the simulation software to be integrated later can be correctly stored in the simulation support platform.
[0023] Step S03: Store the database input file and database output file in the platform database of the simulation support platform.
[0024] Understandably, the database input and output files are configuration files for the platform's database.
[0025] Configure the platform database based on the database input and database output files.
[0026] During the configuration process, the configuration information of the database input files and database output files will be accurately and systematically transferred to the platform database in accordance with the database interface protocol and data transmission specifications specified by the simulation support platform, thereby ensuring the standardized storage and effective management of data in the platform database.
[0027] Step S04: Establish the interface correspondence between the simulation software to be integrated and the simulation support platform, and embed the simulation software to be integrated into the simulation support platform.
[0028] Furthermore, after establishing the interface correspondence between the simulation software to be integrated and the simulation support platform, rigorous testing is conducted, including unit testing and integration testing, to check the correctness, stability, and accuracy of the interface connection and data transmission. Only when the tests pass, proving that the simulation software to be integrated can interact stably and accurately with the simulation support platform, is the simulation software to be integrated formally embedded into the simulation support platform, achieving seamless integration between the two.
[0029] This invention, based on the technical requirements of the simulation support platform, adjusts the severe accident simulation software of the simulator into the simulation software to be integrated. It also obtains database input and output files that can configure the platform database based on the global variables of the severe accident simulation software. Embedding the database input and output files and the simulation software to be integrated into the simulation support platform reduces data interaction time and accelerates the platform's computation time. Furthermore, the simulation support platform enables unified management and unified control and scheduling of the severe accident simulation software.
[0030] In some embodiments, the basic elements include: source program structure, calculation flow, global variables, input data, output data, and control statements.
[0031] The input data consists of equipment fault data and operational equipment status data under severe operating conditions set by nuclear power plant operators through the severe accident simulator platform. This data will be input into the calculation model of the severe accident simulation software through the interface program.
[0032] The output data refers to the results calculated by the simulator's severe accident simulation software. This data will be output to the simulation platform for display through the interface program.
[0033] The source code structure refers to the way the source code is organized at the language syntax level. It is represented as a hierarchical tree of "compilation unit → module / namespace → class / interface → function / procedure," accompanied by scope rules, visibility rules (public / private / internal, etc.), and a dependency graph between modules. Adjusting the source code structure of the simulation program according to the simulation support platform can deeply adapt the model code to the platform interface, data format, and scheduling mechanism, significantly reducing the amount of secondary development and improving the program's scalability, maintainability, and running efficiency.
[0034] The calculation process is arranged according to the logical sequence of the simulator's severe accident simulation, starting from the initial condition setting and gradually progressing to the calculation and analysis of each key node, ensuring the accuracy and consistency of the calculation process.
[0035] For global variables, their definitions, scope of application, and relationships with other modules can be clarified by thoroughly analyzing the various global variables in the severe accident simulation software. Based on these global variables, database input and output files that can configure the platform database can be generated.
[0036] In some scenarios, other methods can also be used to obtain global variables.
[0037] Control statements include those used by the simulator's severe accident simulation software to control its own operation, stop, save and restart files, and input and output data from the model card to text files.
[0038] In some embodiments, step S01 includes: Based on the technical requirements, the source program structure, calculation flow, global variables, input data, output data, and control statements are adjusted to obtain the integrated simulation software to be confirmed.
[0039] Enter the control statements into the simulation support platform.
[0040] The simulation support platform preprocesses the integrated simulation software to be confirmed, resulting in an executable program and library files.
[0041] The executable program and library files are entered into the simulation support platform to obtain the simulation software to be integrated.
[0042] In some scenarios, the source code preprocessor of the simulation support platform is used to preprocess the source code. This preprocessing involves converting the source code into a format suitable for the simulation platform to control and invoke the severe accident calculation program. Then, the preprocessed source code is compiled, linked, and an executable program and static library files are generated. Next, the executable program to be embedded is added as a new task to the simulation platform, and task settings are configured. Finally, the newly added executable program is run and debugged. The executable program, after running and debugging, becomes the simulation software to be integrated.
[0043] In some embodiments, the computation process is adjusted according to technical requirements, including: The calculation process was adjusted to follow the operating procedures of the simulation support platform.
[0044] Adjusting the calculation process based on the simulation support platform solved the unified scheduling problem of the severe accident simulation software in the simulator; the unified management and communication of data based on the simulation support platform effectively solved the problem of long data interaction time, improved the real-time performance of the simulator, and further enhanced the training effect of the severe accident simulator.
[0045] In some embodiments, the control statements are adjusted according to technical requirements, including: The control statements for running, stopping, saving and restarting files, and inputting and outputting data from the model card to text files, which were originally controlled by the simulator's severe accident simulation software itself, are now controlled by the simulation support platform.
[0046] When the simulation support platform issues commands such as run, stop, and save operating conditions, the simulation support platform sends the commands to the embedded simulator severe accident simulation software (simulation software to be integrated). After receiving the commands, the embedded simulator severe accident simulation software (simulation software to be integrated) performs the corresponding operations.
[0047] By setting appropriate control statements, simulation operations such as starting, pausing, continuing, and stopping can be implemented. Furthermore, conditional judgments and branching processes can be performed based on the actual simulation situation, ensuring that the simulation process of the severe accident simulation software proceeds smoothly according to the predetermined logic. Through the synergistic effect of these basic elements, the database input files, database output files, and the simulation software to be integrated are accurately embedded into the simulation support platform, effectively reducing data interaction time, accelerating platform computation time, and improving the performance and efficiency of the entire simulation system.
[0048] In some embodiments, step S02 includes: The global variables are organized into two categories, input variables and output variables, according to the simulation requirements, to obtain source input files and source output files.
[0049] Furthermore, after obtaining the source input and output files, the source input files need to be analyzed in detail to clarify the specific meaning, value range, and data type of each input variable, so as to provide accurate basic data for subsequent simulation calculations. For the source output files, their output format and content requirements must be determined to ensure accurate recording of key data and results during the simulation process. Simultaneously, based on simulation needs, the processed input and output variables should be further optimized and adjusted, removing unnecessary variables, simplifying the file structure, and improving the efficiency and accuracy of the simulation.
[0050] Use static analysis tools to convert source input files and source output files into database input files and database output files.
[0051] During the transformation process, the static analysis tool thoroughly analyzes the structure and content of the source input and output files. For the source input files, the tool accurately converts them into a database-compliant format based on the specific meaning, value range, and data type of each input variable obtained from previous analysis, generating a database input file to ensure that the platform database can correctly read and use this data during subsequent simulation calculations. For the source output files, the static analysis tool rationally transforms the key data and results in the source output files according to the defined output format and content requirements, forming a database output file so that the platform database can accurately record and store various information during the simulation process. Through this transformation, the storage and processing of the platform database within the simulation support platform becomes more standardized and efficient.
[0052] In some embodiments, the source input file and the source output file are two CSV files. Running the OgdGen tool converts the two CSV files, IMPORT.CSV and EXPORT.CSV, into two OGD data type files: IMPORT.ogd (database input file) and EXPORT.ogd (database output file), adapted to the platform database management of the simulation support platform.
[0053] In some embodiments, global variables are organized into two categories, input variables and output variables, according to simulation requirements, to obtain source input files and source output files, including: Read input variables from the input card file of the simulator's severe accident simulation software.
[0054] Read output variables from the output file of the simulator's severe accident simulation software.
[0055] Input variables and output variables are entered into different files to obtain source input file and source output file.
[0056] Specifically, the original input variables are read from the input card text by the simulator's severe accident simulation software, and the output variables are written to a text output file. This step can save the input and output variables of the simulator's severe accident simulation software.
[0057] In the database of the simulation support platform, memory sharing enables real-time input on the simulation platform to perform operations such as inserting and deleting faults in the simulator's severe accident simulation software, and to dynamically display the calculation results, i.e., the output variables, of the simulator's severe accident simulation software in real time on the simulation platform.
[0058] Specifically, the memory-sharing mechanism allows for the establishment of an efficient data channel between the simulation support platform and the severe accident simulation software. On one hand, the simulation platform can send fault insertion or deletion commands to the severe accident simulation software in real time. These commands are quickly received and executed by the software through the shared memory area, enabling dynamic intervention in the simulation process. On the other hand, the calculation results of the severe accident simulation software, i.e., the output variables, are also written to the shared memory area in real time. The simulation support platform can then read this data from this area and dynamically display it on the platform, allowing for intuitive observation of changes in various key indicators during the simulation process. This real-time, dynamic data interaction method greatly improves the efficiency and accuracy of simulation research.
[0059] In some embodiments, step S04 includes: Establish the correspondence between the data variable interfaces of the simulation software to be integrated and other simulation tools on the simulation support platform.
[0060] The data variable interface includes the initialization and normal operation interfaces of the simulation software to be integrated. For example, setting the correspondence between the data variable interfaces of the simulation programs for the primary loop system's thermal-hydraulic system, the secondary loop system, the containment system, and the severe accident simulation program.
[0061] The simulation software to be integrated is embedded into the simulation support platform according to the corresponding relationship.
[0062] In some embodiments, the simulation support platform includes a boundary-to-point tool.
[0063] The simulation software to be integrated is embedded into the simulation support platform according to the corresponding relationship, including: The simulation software to be integrated interacts with the data variable interface using the boundary point tool.
[0064] By using boundary point tools and data variable interfaces to interact with the simulation software to be integrated, the original simulator severe accident simulation software can gain access to all simulator functions provided by the simulation support platform, making it more convenient for users to carry out secondary development and function expansion; it is also more open.
[0065] In some embodiments, the simulation support platform is also used to run and debug the overall integration functions and performance of the embedded simulation software to be integrated.
[0066] The present invention also provides a simulation support platform, including a processor and a memory storing computer-readable instructions, wherein the processor is configured to perform the integrated method as described above when executing the computer-readable instructions.
[0067] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the integration method as described above.
[0068] The above embodiments merely illustrate preferred embodiments of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can freely combine the above technical features and make various modifications and improvements without departing from the concept of the present invention; all of these fall within the protection scope of the present invention. Therefore, all equivalent transformations and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.
Claims
1. An integration method for simulator severe accident simulation software and simulation support platform, characterized in that, Includes the following steps: Step S01: According to the technical requirements of the simulation support platform, adjust the basic elements of the simulator severe accident simulation software to obtain the simulation software to be integrated; Step S02: Organize the global variables of the simulator's severe accident simulation software into two categories, input variables and output variables, according to the simulation requirements to obtain database input files and database output files; According to the data storage and management requirements of the simulation support platform, the database input file and the database output file are formatted to make them conform to the data processing specifications of the simulation support platform. Step S03: Store the database input file and the database output file in the platform database of the simulation support platform; Step S04: Establish the interface correspondence between the simulation software to be integrated and the simulation support platform, and embed the simulation software to be integrated into the simulation support platform; The basic elements include: Source program structure, calculation flow, global variables, input data, output data, and control statements; Step S02 includes: The global variables are organized into two categories, input variables and output variables, according to the simulation requirements, to obtain source input files and source output files; The source input file and the source output file are converted into the database input file and the database output file using static analysis tools. Specifically, the step of organizing the global variables into two categories, input variables and output variables, according to simulation requirements to obtain source input files and source output files includes: The input variables are read from the input card file of the severe accident simulation software of the simulator; Read the output variables from the output file of the severe accident simulation software of the simulator; The input variables and the output variables are entered into different files to obtain the source input file and the source output file.
2. The integration method according to claim 1, characterized in that, Step S01 includes: According to the technical requirements, the source program structure, the calculation process, the global variables, the input data, the output data, and the control statements are adjusted to obtain the integrated simulation software to be confirmed. The control statements are entered into the simulation support platform; The simulation support platform is used to preprocess the integrated simulation software to be confirmed, resulting in an executable program and library files. The executable program and the library files are entered into the simulation support platform to obtain the simulation software to be integrated.
3. The integration method according to claim 2, characterized in that, The calculation process is adjusted according to the aforementioned technical requirements, including: The calculation process is adjusted according to the operation process of the simulation support platform.
4. The integration method according to claim 1, characterized in that, Step S04 includes: Establish the correspondence between the data variable interfaces of the simulation software to be integrated and other simulation tools on the simulation support platform; The simulation software to be integrated is embedded into the simulation support platform according to the corresponding relationship.
5. The integration method according to claim 4, characterized in that, The simulation support platform includes a boundary point-to-point tool; The simulation software to be integrated is embedded into the simulation support platform according to the correspondence, including: The simulation software to be integrated interacts with the data variable interface using the boundary point tool.
6. A simulation support platform, characterized in that, It includes a processor and a memory storing computer-readable instructions, the processor being configured to perform the integrated method as described in any one of claims 1-5 when executing the computer-readable instructions.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the integration method as described in any one of claims 1-5.
Citation Information
Patent Citations
MAAP5 program and nuclear power plant simulator integrating method
CN109976185A
High-integration simulation tool modular packaging method
CN115774569A