Nuclear reactor multi-field coupling method and device
By establishing a data storage grid in a multi-physics coupling framework, directly mapping and passing calculation results, the multi-physics coupling problem of nuclear reactors is solved, improving computing efficiency and accuracy, and reducing costs.
Patent Information
- Application Number
- CN202311871326.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
The lack of an interface directly coupled with a multi-physics platform in the prior art makes it difficult to achieve multi-physics coupling of nuclear reactors, increasing construction costs and reducing computing accuracy.
Establish a data storage grid in a multi-physics coupling framework, and directly map and pass calculation results through memory to realize data interaction between different computing programs and reduce text exchange operations.
It improves the efficiency and accuracy of nuclear reactor calculations, reduces construction costs, simplifies the grid generation process, and unifies the pre- and post-processing methods of the program.
Smart Images

Figure CN120234932A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of nuclear reactors, and particularly relates to a multi-field coupling method and device for a nuclear reactor. Background Art
[0002] A nuclear reactor is a complex system that encompasses knowledge in multiple professional fields such as thermal-hydraulics, neutron physics, fuel, mechanics, and radiation. It is a system where multiple scales and multiple physical fields are interrelated and coupled with each other. In the past, when technology was not yet mature and the development of computer technology could not meet the requirements, the simulation calculation of a single physics in the nuclear reactor system usually used conservative assumptions of the calculation results of other physical fields as input conditions, and could not reflect the real situation of the nuclear reactor under operating and accident conditions; moreover, due to the use of conservative assumptions, a larger safety margin would be considered during the construction of the nuclear reactor, increasing the construction cost of the nuclear reactor and reducing the economy of the nuclear reactor.
[0003] With the development of technology and the improvement of computer computing power, this kind of calculation of a single physical field in the nuclear reactor has gradually been unable to meet people's requirements for calculation accuracy; at the same time, due to the quite huge cost investment in nuclear power, reducing the construction cost of the nuclear reactor also requires the ability to perform multi-physical field coupling calculations on the nuclear reactor. Therefore, coupling multiple physical fields such as physics, thermal-hydraulics, and fuel in the reactor core can more realistically reflect the processes in the nuclear reactor and enhance the understanding of R & D personnel for complex accidents; directly coupling different physical fields in the same framework can also abandon the thinking of using conservative assumptions of other physical fields during the previous single physical field simulation, reduce the safety margin of the nuclear reactor, and thus reduce the design and construction costs of the nuclear reactor and improve the economy of nuclear power.
[0004] In a real nuclear reactor, neutron physics and thermal-hydraulics are also two interacting and coupled systems. According to neutron physics, the real-time power distribution of the nuclear reactor core can be calculated. The change in power will cause temperature changes in fuel rods, coolants, etc., which in turn affect the properties such as neutron cross-section and reactivity coefficient of these materials. The changes in these properties will act on the core, thus changing the power distribution of the core. This interaction between physics and thermal-hydraulics runs through the entire operation process of the nuclear reactor. To achieve accurate calculation of the nuclear reactor, it is necessary to consider the interaction between the two systems during the entire simulation process. When the calculation involves more physical fields, it becomes even more necessary to consider this interaction between multiple physical fields.
[0005] However, in actual nuclear reactor simulation calculations, the grid division methods in different programs are often different. For example, the grids in neutron physics programs are generally relatively dense, the grids in thermal-hydraulic programs are relatively sparse, and the grids in fuel performance programs may be finer due to more factors to be considered. There are usually no dedicated grid files in these programs, and when coupling with the multi-physics coupling framework, it is also necessary to consider how to map their data to the grids of the framework. In addition, among the coupled programs, the data of one program often needs to be processed before it can be used by another program. In this way, the coupled calculation between different programs will involve the problem of data mapping on the grids between different programs, and it is necessary to convert the data of external programs into a form that can be read by the multi-physics coupling framework and convert the data in the framework grids into a format that can be utilized by external programs. At the same time, during the coupling process, it is also necessary to establish an interface between the parameters such as the time step and iteration accuracy of external programs and the framework to facilitate the realization of the coupling process control of different programs under the same coupling framework. Using the same method, the coupling between the calculation programs of other nuclear reactor cores and the multi-physics coupling framework can be realized, and then the three-dimensional high-fidelity core multi-physics coupling calculation under the same framework can be realized.
[0006] In the past, when performing multi-physics coupling calculations in the reactor core, the commonly used methods were: using text for data exchange between programs to achieve coupling, directly associating the variables of programs in the source code, and using a multi-physics coupling framework such as MpCCI to achieve coupling. Compared with the first two methods, using a multi-physics coupling framework to achieve coupling between programs has high data processing efficiency, makes full use of the original programs and reduces the development cost of new programs, is convenient for pre- and post-processing, and can utilize the control strategies of the coupling platform. However, most of the previous nuclear reactor core calculation simulation programs were written in Fortran language, which is different from the current mainstream multi-physics coupling framework in the source language; it uses text for input and output; and it lacks a direct interface for directly coupling with the multi-physics platform, resulting in difficult coupling with the multi-physics coupling framework. Summary of the Invention
[0007] The purpose of this application is to provide a nuclear reactor multi-field coupling method and device, which solve the problem that in the prior art, there is a lack of a direct interface for directly coupling with the multi-physics platform, resulting in difficult coupling with the multi-physics coupling framework.
[0008] Technical solutions to achieve the purpose of this application:
[0009] In the first aspect of the embodiments of this application, a nuclear reactor multi-field coupling method is provided. The method includes:
[0010] Establish corresponding first and second data storage grids in the multi-physics coupling framework according to the positions of the data nodes stored internally in the first and second calculation programs;
[0011] Call the calculation data required by the first calculation program in the multi-physics coupling framework, and call the first calculation program to perform calculations based on the calculation data;
[0012] When the first calculation result of the first calculation program is obtained, map the first calculation result to the first data storage grid and transfer it to the main grid in the multi-physics coupling framework;
[0013] Transfer the first calculation result to the second data storage grid through the main grid, obtain the first calculation result from the second data storage grid according to the index relationship of the nodes in the second data storage grid, assign it to the variable in the second calculation program, and call the second calculation program to perform calculations;
[0014] When the second calculation result of the second calculation program is obtained, map the second calculation result to the second data storage grid and transfer it to the main grid in the multi-physics coupling framework.
[0015] Optionally, the multi-physics coupling framework further includes a third data storage grid established according to the position of the data nodes stored internally in the third calculation program; then, after the second calculation result of the second calculation program is obtained, mapping the second calculation result to the second data storage grid and transferring it to the main grid in the multi-physics coupling framework, the following further includes:
[0016] Transfer the second calculation result to the third data storage grid through the main grid, obtain the second calculation result from the third data storage grid according to the index relationship of the nodes in the third data storage grid, assign it to the variable in the third calculation program, and call the third calculation program to perform calculations;
[0017] When the third calculation result of the third calculation program is obtained, map the third calculation result to the third data storage grid and transfer it to the main grid in the multi-physics coupling framework.
[0018] Optionally, after the third calculation result of the third calculation program is obtained, mapping the third calculation result to the third data storage grid and transferring it to the main grid in the multi-physics coupling framework, the following further includes:
[0019] Transfer the third calculation result stored on the main grid to the physical grid, obtain the third calculation result from the physical grid, and convert the third calculation result into the data form required for the calculation of the first physical calculation program according to the grid node index, as the input parameter of the first calculation program at the next moment.
[0020] Optionally, the first calculation program is a neutron physics calculation program, the second calculation program is a thermal-hydraulic calculation program, and the third calculation program is a fuel performance calculation program.
[0021] Optionally, transferring the target calculation result to the main grid is performed by any one of L2 mapping, interpolation, and nearest point transfer; the target calculation result is any one of the first calculation result, the second calculation result, and the third calculation result.
[0022] A second aspect of the embodiments of the present application provides a nuclear reactor multi-field coupling device, the device includes:
[0023] A grid establishment module, configured to establish corresponding first and second data storage grids in a multi-physical field coupling framework according to the positions of the data nodes stored inside the first and second calculation programs;
[0024] A first calculation module, configured to call the calculation data required by the first calculation program in the multi-physical field coupling framework, and call the first calculation program to perform calculations according to the calculation data;
[0025] A first transfer module, configured to, when obtaining the first calculation result of the first calculation program, map the first calculation result to the first data storage grid and transfer it to the main grid in the multi-physical field coupling framework;
[0026] A second calculation module, configured to transfer the first calculation result to the second data storage grid through the main grid, obtain the first calculation result from the second data storage grid according to the index relationship of the nodes of the second data storage grid, assign it to the variable in the second calculation program, and call the second calculation program to perform calculations;
[0027] A second transfer module, configured to, when obtaining the second calculation result of the second calculation program, map the second calculation result to the second data storage grid and transfer it to the main grid in the multi-physical field coupling framework.
[0028] Optionally, a third data storage grid is further established in the multi-physical field coupling framework according to the positions of the data nodes stored inside the third calculation program; then, the device further includes:
[0029] A third calculation module, configured to transfer the second calculation result to the third data storage grid through the main grid, obtain the second calculation result from the third data storage grid according to the index relationship of the third data storage grid nodes, and assign the second calculation result to a variable in the third calculation program, and call the third calculation program for calculation;
[0030] A third transfer module, configured to, after obtaining the third calculation result of the third calculation program, map the third calculation result to the third data storage grid and transfer it to the main grid in the multi-physics coupling framework.
[0031] In a third aspect of the embodiments of the present application, an electronic device is provided, including a processor and a memory. Instructions are stored in the memory. When the processor executes the instructions, the processor executes any one of the nuclear reactor multi-field coupling methods provided in the first aspect of the embodiments of the present application.
[0032] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which is characterized in that it is used to store a computer program, and the computer program includes instructions for executing any one of the nuclear reactor multi-field coupling methods provided in the first aspect of the embodiments of the present application.
[0033] In a fifth aspect of the embodiments of the present application, a computer program product is provided, which is characterized in that it includes computer program code. When the computer program code is run on an electronic device, the electronic device is caused to execute any one of the nuclear reactor multi-field coupling methods provided in the first aspect of the embodiments of the present application.
[0034] The beneficial technical effects of the present application are as follows:
[0035] A nuclear reactor multi-field coupling method, device and system provided by the embodiments of the present application are a nuclear reactor multi-field coupling solution method based on a separated grid strategy. This method establishes different grids according to the node positions where the original different core calculation simulation programs store data, and the data is mapped to the grids according to the indexes of the grid nodes, that is, the data is mapped from the calculation programs of different physical fields in the core to the grids of the multi-physics framework platform according to the separated grid strategy. Then, the multi-field coupling solution of the nuclear reactor core can be carried out under the multi-physics coupling framework. Compared with the method of realizing the coupling of different nuclear reactor core calculation programs by data exchange through text, the embodiments of the present application directly connect the calculation programs of different physical fields, and the data between different programs is interacted through memory, reducing a large number of read and write operations required when exchanging data between programs through text, saving calculation time and improving calculation efficiency. Description of the Drawings
[0036] Figure 1Schematic flowchart of a multi-field coupling method for a nuclear reactor provided by an embodiment of the present application;
[0037] Figure 2 Schematic diagram of the program grid and data transfer relationship of a multi-field coupling method for a nuclear reactor provided by an embodiment of the present application. Detailed implementation manners
[0038] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the following described embodiments are only a part of the embodiments of the present application, rather than all of them. Based on the embodiments described in the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present application.
[0039] Refer to Figure 1 , which is a schematic flowchart of a multi-field coupling method for a nuclear reactor provided by an embodiment of the present application.
[0040] A multi-field coupling method for a nuclear reactor provided by an embodiment of the present application includes:
[0041] Step S101: Establish corresponding first and second data storage grids in the multi-physics field coupling framework according to the positions of the data nodes stored inside the first and second calculation programs;
[0042] Step S102: Call the calculation data required by the first calculation program in the multi-physics field coupling framework, and call the first calculation program to perform calculations based on the calculation data;
[0043] Step S103: When the first calculation result of the first calculation program is obtained, map the first calculation result to the first data storage grid and transfer it to the main grid in the multi-physics field coupling framework;
[0044] Step S104: Transfer the first calculation result through the main grid to the second data storage grid, obtain the first calculation result from the second data storage grid according to the index relationship of the nodes of the second data storage grid, assign it to the variable in the second calculation program, and call the second calculation program to perform calculations;
[0045] Step S105: When the second calculation result of the second calculation program is obtained, map the second calculation result to the second data storage grid and transfer it to the main grid in the multi-physics field coupling framework.
[0046] In specific implementation, the main grid is used to realize data exchange and visualization processing between various calculation programs, and its grid modeling should cover the entire calculation area.
[0047] A multi-field coupling method for nuclear reactors provided by an embodiment of the present application is applicable to most existing nuclear reactor simulation calculation programs, such as the system analysis program RELAP5, the sub-channel program COBRA, and the neutron physics program OPENMC.
[0048] In some possible implementation manners of the embodiment of the present application, the multi-physical field coupling framework may further include a third data storage grid established according to the positions of data nodes stored inside the third calculation program; then, after step S105, the following may further be included:
[0049] Transfer the second calculation result to the third data storage grid through the main grid, obtain the second calculation result from the third data storage grid according to the index relationship of the nodes of the third data storage grid, assign it to the variable in the third calculation program, and call the third calculation program for calculation;
[0050] When the third calculation result of the third calculation program is obtained, map the third calculation result into the third data storage grid and transfer it to the main grid in the multi-physical field coupling framework.
[0051] In an example, when the third calculation result of the third calculation program is obtained, map the third calculation result into the third data storage grid and transfer it to the main grid in the multi-physical field coupling framework, and then the following is further included:
[0052] Transfer the third calculation result stored on the main grid to the physical grid, obtain the third calculation result from the physical grid, and convert the third calculation result into the data form required for the calculation of the first physical calculation program according to the grid node index, as the input parameter of the first calculation program at the next moment.
[0053] As an example, the first calculation program may be a neutron physics calculation program, the second calculation program may be a thermal-hydraulic calculation program, and the third calculation program may be a fuel performance calculation program.
[0054] In another example, transferring the target calculation result to the main grid is performed by any one of L2 mapping, interpolation, and nearest point transfer; the target calculation result is any one of the first calculation result, the second calculation result, and the third calculation result.
[0055] A multi-field coupling method for nuclear reactors provided by an embodiment of the present application has the following advantages and beneficial effects:
[0056] (1) Compared with the method of coupling different nuclear reactor core calculation programs by data exchange through text, the multi-field coupling method for nuclear reactors provided by the embodiments of the present application directly connects the calculation programs of different physical fields, and data is exchanged between different programs through memory, reducing the large number of read and write operations required for data exchange between programs through text, saving calculation time and improving calculation efficiency. This coupling method does not change the modeling characteristics of the original program, and the program can still be modeled and used in the original way.
[0057] (2) The multi-field coupling method for nuclear reactors provided by the embodiments of the present application facilitates the coupling calculation between external programs and programs based on the multi-physical field coupling framework itself, and does not require major modifications to the external programs, making full use of existing mature simulation programs and greatly reducing the workload of developing new modules in the framework.
[0058] (3) The multi-field coupling method for nuclear reactors provided by the embodiments of the present application stores data in different grid forms. The grid nodes are divided according to the calculation results of external programs, ensuring that the calculation results of external programs can be accurately transmitted to the multi-physical field coupling framework during data transmission, thereby ensuring the correctness of the coupling calculation.
[0059] (4) The multi-field coupling method for nuclear reactors provided by the embodiments of the present application only needs to construct a grid for data storage when coupling external programs. Compared with constructing a complete grid, this coupling method only needs to construct the "framework" of the storage grid, which simplifies the grid generation process to a certain extent and reduces memory occupancy. Moreover, during the coupling calculation, only the grids for storing data of different programs need to be constructed, and the grid modeling process is more intuitive and simple.
[0060] (5) The multi-field coupling method for nuclear reactors provided by the embodiments of the present application enables the coupled program to directly use the data pre- and post-processing tools in the multi-physical field coupling framework, avoiding the problem that different programs need to use different data processing tools for result processing due to different development backgrounds. Therefore, the coupled program has a unified pre- and post-processing method.
[0061] (6) The multi-field coupling method for nuclear reactors provided by the embodiments of the present application can couple different nuclear reactor simulation calculation programs into the multi-physical field coupling framework, and the usage mode of the original program remains unchanged. It makes full use of the original programs, enabling them to be coupled into a unified multi-physical field coupling framework, creating conditions for multi-physical field coupling calculations involving more physical fields in the nuclear reactor core under the same framework.
[0062] (7) After the coupling of the implementation program of a multi-field coupling method for a nuclear reactor provided by an embodiment of the present application, the data interaction between different programs can adopt the existing data transfer methods in the multi-physics field coupling framework. Thus, when implementing the coupling between an external program and the multi-physics field coupling framework, only the grid construction and data mapping problems need to be considered, which simplifies the problem of data transfer on different grids during the coupling calculation of the program. It can not only simplify the mapping of the data of the external program to the multi-physics field grid, but also the external program can use a similar method to obtain the data required for its next calculation from the grid, simplifying the process of implementing the data interaction between the external program and the multi-physics coupling framework. It belongs to an explicit coupling method, and the programs exchange data at the beginning or end of each time step, with simple implementation.
[0063] Next, a specific example is given. Taking the first calculation program as the neutron physics calculation program, the second calculation program as the thermal-hydraulic calculation program, and the third calculation program as the fuel performance calculation program as an example, a multi-field coupling method for a nuclear reactor provided by an embodiment of the present application is described in detail.
[0064] A multi-field coupling method for a nuclear reactor provided by an embodiment of the present application includes:
[0065] Step 1: Respectively establish corresponding data storage grids in the multi-physics field coupling framework according to the positions of the data storage nodes stored inside the neutron physics calculation program, the thermal-hydraulic calculation program, and the fuel performance program.
[0066] As Figure 2 shown, the grid nodes of the thermal-hydraulic calculation program and the neutron physics calculation program are both established at the central positions of the fuel or components, which is convenient for accurately transferring data to the main grid; the dotted lines in the grids of the thermal-hydraulic calculation program and the neutron physics calculation program represent the outlines of the fuel or components, and the solid lines represent the grid lines containing the data storage nodes. Such grids are convenient for controlling the indexing of the grid nodes; the main grid is used to realize the data exchange and visualization processing between the thermal-physics programs, and its grid modeling should cover the entire calculation area.
[0067] The grid of the fuel performance calculation program is generally more complex, and the grid division is finer than that of the thermal-hydraulic calculation program and the neutron physics calculation program. Figure 2 The grid given in
[0068] Step 2: Call the dynamic link library of the neutron physics calculation program in the multi-physics coupling framework. At time T0, perform calculations according to the input settings of the neutron physics calculation program; at time Tn, perform calculations using the updated input parameters of the neutron physics calculation program, where n = 1, 2, 3...
[0069] After the calculation results of the neutron physics calculation program converge, the power calculated by the neutron physics calculation program is first processed into a form convenient for corresponding to the grid node index, and the total power within the component or fuel calculated by the neutron physics calculation program is mapped to the grid one by one according to the corresponding relationship.
[0070] Figure 2 The neutron physics grid node indices shown in [reference] are generated in the order of increasing along the x-axis first and then along the y-axis. Users can select to generate other grids convenient for data mapping according to the characteristics of the external program data. Then, use L2 mapping, interpolation, or nearest point transfer to transfer the power to the main grid.
[0071] These methods are transferred according to the spatial coordinate positions of the grid nodes, and the data stored on the grid nodes is transferred to the grids of the entire component of the main grid. For example, Figure 2 the data on the black nodes of the physics grid in [reference] will be transferred to the shaded grid cells of the main grid.
[0072] Step 3: Transfer the power calculated by the neutron physics calculation program to the corresponding grid of the thermal-hydraulic calculation program through the main grid. Obtain the power value from the grid according to the index relationship of the grid nodes and assign it to the variable in the thermal-hydraulic calculation program, and call the thermal-hydraulic calculation program to perform the calculation at the current time step.
[0073] After the calculation results of the thermal-hydraulic calculation program converge, map the coolant temperature and density to the corresponding grid of the thermal-hydraulic calculation program and transfer them to the main grid in a similar method as in Step 2.
[0074] Step 4: Transfer the power and coolant temperature stored on the main grid to the grid of the fuel performance calculation program, and assign the data in the grid to the variables required for the calculation of the fuel performance calculation program according to the index relationship. Call the dynamic link library of the fuel performance calculation program to perform the fuel performance calculation.
[0075] After the calculation results of the fuel performance calculation program converge, map the fuel temperature and density calculated by the fuel performance calculation program to the grid of the fuel performance calculation program, and transfer this data to the main grid. Due to grid mismatch, in order to ensure the accuracy of data transfer, inverse distance interpolation transfer using multiple data points can be used.
[0076] Step 5: Transfer the fuel temperature and density, as well as the coolant temperature and density stored on the main grid to the physical grid, obtain these results from the physical grid, and convert these results into the data form required for the neutron physics program calculation according to the grid node index, which serves as the input parameter for the neutron physics calculation program at the next moment. If it is the last step of the calculation, this step is not required;
[0077] Step 6: Repeat Step 3 to Step 5 until the preset full-time calculation is completed, realizing the coupled calculation of the physics-thermal-hydraulic-fuel performance of the nuclear reactor core.
[0078] During the entire calculation process, the three programs adopt exactly the same time step control strategy, and real-time data interaction is carried out during the operation of the programs. In addition, if the calculation grid division methods of the programs are different, the power can be converted into power density and then transferred on different grids.
[0079] A multi-field coupling solution method for nuclear reactors based on a separated grid strategy proposed by the present invention is applicable to the multi-physics field coupling calculation and simulation of different types of nuclear reactor cores. This method can also be used in other multi-physics field coupling fields, and its advantages will be more obvious when the geometric shape of the calculation area is relatively simple and the grid index relationship is clear.
[0080] Based on the multi-field coupling method for nuclear reactors provided in the above embodiments, the embodiments of the present application also provide a multi-field coupling device for nuclear reactors.
[0081] A multi-field coupling device for nuclear reactors provided by the embodiments of the present application includes:
[0082] A grid establishment module, configured to establish corresponding first and second data storage grids in the multi-physics field coupling framework according to the positions of the data nodes stored inside the first and second calculation programs;
[0083] A first calculation module, configured to call the calculation data required by the first calculation program in the multi-physics field coupling framework, and call the first calculation program to perform calculations according to the calculation data;
[0084] A first transfer module, configured to, when obtaining the first calculation result of the first calculation program, map the first calculation result to the first data storage grid and transfer it to the main grid in the multi-physics field coupling framework;
[0085] A second calculation module, configured to transfer the first calculation result to the second data storage grid through the main grid, obtain the first calculation result from the second data storage grid according to the index relationship of the nodes of the second data storage grid and assign it to the variable in the second calculation program, and call the second calculation program to perform calculations;
[0086] A second transfer module, configured to, after obtaining a second calculation result of a second calculation program, map the second calculation result to a second data storage grid and transfer it to a main grid in a multi-physics field coupling framework.
[0087] In some possible implementation manners of the embodiments of the present application, the multi-physics field coupling framework further includes a third data storage grid established according to the positions of data nodes stored internally in a third calculation program; then, the apparatus further includes:
[0088] A third calculation module, configured to transfer the second calculation result to the third data storage grid through the main grid, obtain the second calculation result from the third data storage grid according to the index relationship of the nodes of the third data storage grid, assign it to a variable in the third calculation program, and call the third calculation program for calculation;
[0089] A third transfer module, configured to, after obtaining a third calculation result of a third calculation program, map the third calculation result to the third data storage grid and transfer it to a main grid in a multi-physics field coupling framework.
[0090] In some possible implementation manners of the embodiments of the present application, the apparatus further includes:
[0091] A fourth transfer module, configured to transfer the third calculation result stored on the main grid to a physical grid, obtain the third calculation result from the physical grid, and convert the third calculation result into a data form required for the calculation of the first physical calculation program according to the grid node index, as an input parameter of the first calculation program at the next moment.
[0092] In one example, the first calculation program is a neutron physics calculation program, the second calculation program is a thermal-hydraulic calculation program, and the third calculation program is a fuel performance calculation program.
[0093] In another example, transferring the target calculation result to the main grid is performed by any one of L2 mapping, interpolation, and nearest point transfer; the target calculation result is any one of the first calculation result, the second calculation result, and the third calculation result.
[0094] Based on the multi-field coupling method and apparatus for a nuclear reactor provided in the above embodiments, the embodiments of the present application further provide an electronic device, which is characterized by including a processor and a memory, where instructions are stored in the memory, and when the processor executes the instructions, the processor executes any one of the multi-field coupling methods for a nuclear reactor provided in the above embodiments.
[0095] Based on the multi-field coupling method and device of a nuclear reactor provided in the above embodiments, an embodiment of the present application also provides a computer-readable storage medium, which is characterized in that it is used to store a computer program, and the computer program includes any one of the multi-field coupling methods of a nuclear reactor provided in the above embodiments for execution.
[0096] Based on the multi-field coupling method and device of a nuclear reactor provided in the above embodiments, an embodiment of the present application also provides a computer program product, which is characterized in that it includes computer program code, and when the computer program code is run on an electronic device, the electronic device is caused to execute any one of the multi-field coupling methods of a nuclear reactor provided in the above embodiments.
[0097] The present application has been described in detail above with reference to the accompanying drawings and embodiments. However, the present application is not limited to the above embodiments. Within the scope of knowledge possessed by those of ordinary skill in the art, various changes can be made without departing from the purpose of the present application. The content not described in detail in the present application can all adopt the prior art.
Claims
1. A multi-field coupling method for a nuclear reactor, characterized in that, The method includes: Establish corresponding first and second data storage grids in the multi-physics coupling framework according to the positions of the data nodes stored internally in the first and second calculation programs; Call the calculation data required by the first calculation program in the multi-physics coupling framework, and call the first calculation program to perform calculations based on the calculation data; After obtaining the first calculation result of the first calculation program, map the first calculation result to the first data storage grid and transfer it to the main grid in the multi-physics coupling framework; Transfer the first calculation result through the main grid to the second data storage grid, obtain the first calculation result from the second data storage grid according to the index relationship of the nodes of the second data storage grid, assign it to the variable in the second calculation program, and call the second calculation program to perform calculations; After obtaining the second calculation result of the second calculation program, map the second calculation result to the second data storage grid and transfer it to the main grid in the multi-physics coupling framework.
2. The multi-field coupling method of a nuclear reactor according to claim 1, characterized in that, The multi-physics coupling framework further includes a third data storage grid established according to the position of the data nodes stored internally in the third calculation program; then, after obtaining the second calculation result of the second calculation program, mapping the second calculation result to the second data storage grid and transferring it to the main grid in the multi-physics coupling framework, it further includes: Transfer the second calculation result through the main grid to the third data storage grid, obtain the second calculation result from the third data storage grid according to the index relationship of the nodes of the third data storage grid, assign it to the variable in the third calculation program, and call the third calculation program to perform calculations; After obtaining the third calculation result of the third calculation program, map the third calculation result to the third data storage grid and transfer it to the main grid in the multi-physics coupling framework.
3. The multi-field coupling method of a nuclear reactor according to claim 2, characterized in that After obtaining the third calculation result of the third calculation program, mapping the third calculation result to the third data storage grid and transferring it to the main grid in the multi-physics coupling framework, it further includes: Transfer the third calculation result stored on the main grid to the physical grid, obtain the third calculation result from the physical grid, and convert the third calculation result into the data form required for the calculation of the first physical calculation program according to the grid node index, as the input parameter of the first calculation program at the next moment.
4. The multi-field coupling method of a nuclear reactor according to claim 3, characterized in that The first calculation program is a neutron physics calculation program, the second calculation program is a thermal-hydraulic calculation program, and the third calculation program is a fuel performance calculation program.
5. The multi-field coupling method for a nuclear reactor according to any one of claims 1-4, characterized in that, Transferring the target calculation result to the main grid is performed by any one of L2 mapping, interpolation, and nearest point transfer; the target calculation result is any one of the first calculation result, the second calculation result, and the third calculation result.
6. A multi-field coupling device for a nuclear reactor, characterized in that, The device includes: A grid building module, configured to build corresponding first and second data storage grids in a multi-physics field coupling framework according to the positions of data nodes stored internally in a first computing program and a second computing program; A first computing module, configured to call computing data required by the first computing program in the multi-physics field coupling framework, and call the first computing program to perform calculations based on the computing data; A first transfer module, configured to, when a first calculation result of the first computing program is obtained, map the first calculation result to the first data storage grid and transfer it to the main grid in the multi-physics field coupling framework; A second computing module, configured to transfer the first calculation result to the second data storage grid through the main grid, obtain the first calculation result from the second data storage grid according to the index relationship of the nodes in the second data storage grid, assign it to a variable in the second computing program, and call the second computing program to perform calculations; A second transfer module, configured to, when a second calculation result of the second computing program is obtained, map the second calculation result to the second data storage grid and transfer it to the main grid in the multi-physics field coupling framework.
7. The multi-field coupling device of a nuclear reactor according to claim 6, wherein, A third data storage grid established according to the positions of data nodes stored internally in a third computing program is further included in the multi-physics field coupling framework; then, the apparatus further includes: A third computing module, configured to transfer the second calculation result to the third data storage grid through the main grid, obtain the second calculation result from the third data storage grid according to the index relationship of the nodes in the third data storage grid, assign it to a variable in the third computing program, and call the third computing program to perform calculations; A third transfer module, configured to, when a third calculation result of the third computing program is obtained, map the third calculation result to the third data storage grid and transfer it to the main grid in the multi-physics field coupling framework.
8. An electronic device, characterized in that, It includes a processor and a memory, and instructions are stored in the memory. When the processor executes the instructions, the processor executes the method according to any one of claims 1-5.
9. A computer-readable storage medium, characterized in that, For storing a computer program, the computer program includes for executing the method according to any one of claims 1-5.
10. A computer program product, characterized in that, It includes computer program code, and when the computer program code is run by an electronic device, the electronic device is caused to execute the method according to any one of claims 1-5.