A method for verifying program coupling performance
By verifying the accuracy, synchronization and robustness of program coupling data transfer in nuclear power design, the computing problems that may be caused by program coupling connections are solved, and the performance and availability of coupled programs are improved.
Patent Information
- Application Number
- CN202110103047.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-26
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2041-01-26
AI Technical Summary
In nuclear power design, program coupling connections may lead to computational distortion, reduced computational efficiency and reduced computational stability, and there is a lack of effective testing methods to ensure coupling effect and performance evaluation.
It provides a method for verification of program coupling performance. By identifying the data interaction mechanism of mutually coupled programs, verifying the accuracy, synchronization and robustness of data transmission, and performing large amounts of data and long-term data interaction calculations through interface programs to test the robustness of coupled programs.
This method clarifies the standardized process for performance evaluation of coupled programs, improves the availability of coupled programs, and is suitable for various types of computing programs, with good applicability and practical results.
Smart Images

Figure CN112817845B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to nuclear power design technology, and particularly to a method for verifying the coupling performance of programs. Background Art
[0002] With the continuous deepening of the understanding of nuclear power plant accidents in the nuclear energy field, the continuous development of new nuclear power plant calculation and analysis software, and the continuous development of computer technology, some traditional calculation software with specific calculation functions can no longer meet the needs of nuclear power designers. In order to more comprehensively and systematically understand and analyze the transient phenomena in certain specific areas of nuclear power plants, nuclear power designers often use the "coupling" method to connect specific calculation software with different functions. For example, coupling the containment simulation software with the full-scope simulator to more accurately simulate the transient behavior inside the containment during an accident and the impact of changes in key parameters inside the containment on the primary loop equipment; coupling the core physics calculation program with the thermal-hydraulic analysis program to better simulate the impact of the transient changes in core physics on the thermal-hydraulic transient of the primary loop during an accident, etc., and even connecting the fluid thermal engineering program with the stress analysis program. The above-mentioned program "coupling" connection method is in urgent demand and widely used in industrial design and research fields such as nuclear power that increasingly rely on software for calculation and analysis work. However, for whether the program coupling connection will bring new problems, such as calculation distortion, reduced calculation efficiency, reduced calculation stability, etc., how to test to ensure the coupling effect, how to conduct performance evaluation and evaluation of the coupling effect between programs, are issues that must be concerned about when conducting program coupling connection.
[0003] Coupling between different programs inevitably involves data interaction between programs, and these programs are often independently developed by different teams. The computer languages, data storage forms, variable declaration methods, etc. used by different programs are completely different. The following issues should be particularly noted during the coupling process:
[0004] (1) Ensure the accuracy of data transfer between programs, that is, the data maintains the required accuracy during the transfer process. Only on the premise of ensuring accurate data transfer can the coupled program be used for calculation and analysis.
[0005] (2) Ensure the synchronization of data transfer between programs, that is, the data required for the calculations of the two programs are all completed within the same time. If the data transfer is not synchronized, there will be deviations in data transmission during transient calculations within a certain period of time.
[0006] (3) Ensure the robustness of data transfer, that is, in the face of a huge amount of interactive data, the data transmission is error-free and the transmission efficiency will not decrease. Summary of the Invention
[0007] The object of the present invention is to meet the requirements of the nuclear power and other industrial design and research fields that rely on software to carry out computational analysis work, and to provide a method for verifying the coupling performance of programs to ensure the accuracy, synchronization, and robustness of data transmission.
[0008] The technical solution of the present invention is as follows: A method for verifying the coupling performance of programs, comprising:
[0009] (1) Identifying the data interaction mechanism of mutually coupled programs;
[0010] (2) Determining a certain number of interaction data, and in accordance with the interaction mechanism between programs, examining the size and type of each data during the interaction process to verify the accuracy of the interaction;
[0011] (3) Integrating the same interaction variable in two coupled programs respectively, and comparing whether the integration results are consistent at the same time to verify the synchronization of the interaction;
[0012] (4) Using an interface program to perform a large amount of data and long-time data interaction calculations to test the robustness of the interface program;
[0013] (5) Selecting representative parameters, and comparing the program calculation results before and after coupling respectively to evaluate the coupling performance.
[0014] Further, for the method for verifying the coupling performance of programs as described above, in step (1), the computer languages, data storage forms, and variable declaration methods adopted by the two programs are respectively interpreted, and a data calling method and an interaction mechanism between programs are formulated.
[0015] Further, for the method for verifying the coupling performance of programs as described above, in step (2), the types of interaction data should cover all types of data that the interface program can transmit; the program calculations should select different working conditions, and the two-way data transmission between programs should be tested to ensure that the two-way interaction of all types of data under different working conditions is accurate.
[0016] Further, for the method for verifying the coupling performance of programs as described above, in step (3), the selected variables should cover all types of data of the coupled programs; the program calculations should select different working conditions to ensure that the two-way interaction of all types of data under different working conditions is synchronous.
[0017] Further, for the method for verifying the coupling performance of programs as described above, in step (4), the robustness of the interface program is tested by counting the data interaction volume limit, interaction frequency requirements, and memory occupancy of the interface program.
[0018] Further, for the method for verifying the program coupling performance as described above, in step (5), different calculation examples are selected, calculated using the coupling program, representative parameters are selected, the change trends of these parameters and the result files are analyzed as a whole, and the program calculation results before and after coupling are respectively compared to evaluate the coupling performance.
[0019] The beneficial effects of the present invention are as follows:
[0020] 1. The present invention provides a standard process for evaluating the program coupling performance, clarifies the issues that should be concerned in evaluating the coupling program performance, and provides a method for verifying the coupling program, improving the usability of the coupling program.
[0021] 2. The method for evaluating the program coupling performance proposed by the present invention is applicable to various types of calculation programs and has good applicability in actual engineering projects and scientific research.
[0022] 3. The prerequisite conditions on which the present invention is based are all technical conditions that can be satisfied by current technical means, do not require higher requirements for software and hardware, and can be fully realized using current technical software. Description of the Drawings
[0023] Figure 1 It is a flowchart of the method for verifying the program coupling performance of the present invention. Detailed Embodiments
[0024] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0025] The method for verifying the program coupling performance provided by the present invention tests the coupling program from four aspects: accuracy, synchronization, robustness, and verification of the coupling program calculation and analysis. The performance of the coupling program is evaluated according to the test results. The specific method is as Figure 1 shown and includes the following steps:
[0026] Step 1: Interaction mechanism identification
[0027] For mutually coupled programs, the computer languages, data storage forms, and variable declaration methods adopted by the two programs should be respectively interpreted first. On this basis, it is possible to formulate the data call method and interaction mechanism between the programs. This step is the prerequisite and foundation for the following four steps.
[0028] Step 2: Accuracy verification
[0029] Determine a certain amount of interaction data. According to the interaction mechanism between programs, review the size and type of each data during the interaction process. The types of data should cover all types of data that the interface program can transfer. When conducting tests, two-way data transfer between programs needs to be considered.
[0030] Step 3: Synchronization verification
[0031] Integrate the same interaction variable in two programs respectively, and compare whether the integration results are consistent at the same time. If the data interaction between the two programs is not synchronized, the error during data transfer will accumulate continuously, resulting in an increasingly large data deviation within a certain period of time.
[0032] Step 4: Robustness verification
[0033] On the premise of ensuring accurate data transmission, the interface program needs to be able to transmit data stably and effectively. A large amount of data and long-term data interaction calculations can be carried out through the interface program, and the robustness of the interface program can be tested by counting the data interaction volume limit, interaction frequency requirements, memory occupancy, etc. of the interface program.
[0034] Step 5: Overall verification of the coupled program
[0035] Select different calculation examples, use the coupled program to calculate, select representative parameters, analyze the change trends of these parameters and the result files as a whole, compare the program calculation results before and after coupling respectively, and evaluate the coupling performance.
[0036] Embodiment
[0037] The following takes the coupling performance verification of the RELAP5 program and the RINSIM simulation platform as an example to illustrate the present invention in detail.
[0038] Step 1: Identification of interaction mechanism
[0039] This step requires providing the source codes of the RELAP5 program and the RINSIM program, respectively interpreting the structures and variables of the two programs, clarifying the TOP-DOWN modular structure of the coupled program, and further interpreting the data interaction mechanism of the RELAP5 program and the RINSIM program.
[0040] The data between RELAP5 and the RINSIM platform is interacted in the way of calling API functions. The program transformed from RELAP5 provides this API. RELAP5 provides calling functions, such as initialization functions, main logic calculation functions, etc.; the RINSIM simulation platform makes synchronous calls and management to achieve synchronization with the operation of the process model.
[0041] Step 2: Accuracy verification
[0042] Select the calculation variables of the RELAP5 program and test the accuracy of the data type and size after they are transferred to the RINSIM program. Similarly, select the calculation variables of the RINSIM program and test the accuracy of the data type and size after they are transferred to the RELAP5 program.
[0043] When selecting calculation variables, attention should be paid to covering all types of data in the RELAP5 program and the RINSIM program; different operating conditions should be selected for the program calculations to ensure that the two-way interaction of all types of data under different operating conditions is accurate.
[0044] Table 1 lists the data comparison of the pressure transfer of the 44001 control volume of the Reactor Coolant System (RCS) (simulated by the RELAP5 program) to the Chemical and Volume Control System (RCV) (simulated by the RINSIM program), and the data comparison of the make-up flow rate (simulated by the RINSIM platform) transferred to the RELAP5 program. It can be seen that the error in the data interaction process is at the 10 -4 level, fully meeting the requirements of calculation and analysis.
[0045] Table 1 Verification of the Accuracy of the RCV System Related Parameters
[0046]
[0047] Step 3: Synchronization Verification
[0048] Select the calculation variables of the RELAP5 program, transfer them to the RINSIM program and then integrate them in the RINSIM program. Similarly, select the calculation variables of the RINSIM program, transfer them to the RELAP5 program and then integrate them in the RELAP5 program. Finally, compare the integration results of the two.
[0049] When selecting calculation variables, attention should be paid to covering all types of data in the RELAP5 program and the RINSIM program; different operating conditions should be selected for the program calculations to ensure that the two-way interaction of all types of data under different operating conditions is synchronous.
[0050] Integrate the make-up flow rate on the RELAP5 and RINSIM platforms respectively and compare the results. The integration curves of the make-up flow rate on the platform and the RELAP5 program almost coincide, indicating that the transfer of the make-up flow rate is synchronous during the data interaction process.
[0051] Step 4: Robustness Verification
[0052] Artificially add a large number of interactive data, perform a large amount of data and long-time data interaction calculations through the interface program, and test the calculation efficiency and program functions of the coupled program.
[0053] Under the measured steady-state condition, the actual computer time taken for the coupled program to run for 14 hours, 52 minutes, and 13 seconds of physical time is 15 hours, 07 minutes, and 19.4 seconds. The calculation time of the coupled program is 15 minutes shorter than the actual calculation time.
[0054] Under the transient condition, the actual computer time taken for the coupled program to run for 15 hours, 17 minutes, and 07 seconds of physical time is 15 hours, 34 minutes, and 05.5 seconds. The calculation time of the coupled program is 17 minutes shorter than the actual calculation time.
[0055] After a long-term operation, the data of the variables in the interface file are taken for comparison, and the data interaction accuracy is good.
[0056] After adding a large amount of interface data, the impact on the operation of the coupled program is small, and the operation is good.
[0057] Step Five: Overall Verification of the Coupled Program
[0058] Select different calculation examples and use the RELAP5-RINSIM program for calculation. Select representative parameters and analyze the change trends of these parameters and the result files as a whole. Compare the calculation results of the RELAP5-RINSIM coupled program respectively to evaluate the overall performance of the coupling.
[0059] Select the LOCA accident for calculation verification and analysis. Select representative parameters, analyze the change trends of these parameters and the result files, and evaluate the rationality of the modeling and the data interaction accuracy of the interface program.
[0060] By comparing the changes in the pressurizer pressure and the safety injection flow rate over time after the accident, there are certain differences between the coupled calculation results and the calculation results of the Relap5MOD3.4 stand-alone version, but the overall trends are the same, and the maximum data error is about 1%. Therefore, it is considered that the data interaction of the interface program of the coupled program is accurate.
[0061] For those skilled in the art, it is obvious that the method of the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the method of the present invention can be implemented in other specific forms. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the method of the present invention is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be included in the method of the present invention. Any reference signs in the claims should not be regarded as limiting the claims involved.
[0062] In addition, it should be understood that although this specification is described in terms of embodiments, not every embodiment contains only an independent technical solution. This narrative manner of the specification is only for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A method for verifying program coupling performance, comprising: (1) Identify the data interaction mechanism of mutually coupled programs; The mutually coupled programs are computing software with different functions, and the computer languages, data storage forms, and variable declaration methods used by different programs are different; (2) Determine a certain number of interaction data, and according to the interaction mechanism between programs, examine the size and type of each data during the interaction process to verify the accuracy of the interaction; (3) Integrate the same interaction variable in two coupled programs respectively, and compare whether the integration results are consistent at the same time to verify the synchronization of the interaction; (4) Use the interface program to perform a large amount of data and long-time data interaction calculations to test the robustness of the interface program; (5) Select representative parameters, compare the program calculation results before and after coupling respectively, and evaluate the coupling performance.
2. The method for verifying program coupling performance according to claim 1, wherein, In step (1), interpret the computer languages, data storage forms, and variable declaration methods used by the two programs respectively, and formulate the data calling method and interaction mechanism between the programs.
3. The method for verifying program coupling performance according to claim 1, wherein, In step (2), the types of interaction data should cover all types of data that the interface program can transfer; the program calculation should select different working conditions, and test the two-way data transfer between programs to ensure that the two-way interaction of all types of data under different working conditions is accurate.
4. The method for verifying program coupling performance according to claim 1, wherein, In step (3), the selected variables should cover all types of data of the coupled programs; the program calculation should select different working conditions to ensure that the two-way interaction of all types of data under different working conditions is synchronous.
5. The method for verifying program coupling performance according to claim 1, wherein, In step (4), test the robustness of the interface program by counting the data interaction volume limit, interaction frequency requirements, and memory occupancy of the interface program.
6. The method for verifying program coupling performance according to claim 1, wherein, In step (5), select different calculation examples, use the coupled program to calculate, select representative parameters, analyze the change trends and result files of these parameters as a whole, compare the program calculation results before and after coupling respectively, and evaluate the coupling performance.
Citation Information
Patent Citations
Test method based on synchronization of helicopter multi-simulator
CN108875227A
Software testing method based on 3V model
CN111858298A