Data solving method and device of numerical reactor, equipment and medium

By meshing the computational domain of the numerical reactor and allocating resources, and optimizing the allocation and communication of solvers, the problem of unreasonable resource allocation of solvers in different disciplines is solved, and the processing efficiency of the numerical reactor is improved.

CN118708331APending Publication Date: 2024-09-27CHINA NUCLEAR POWER TECH RES INST CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410696758.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the allocation of computing resources between solvers of different disciplines is unreasonable, which affects the processing efficiency of numerical reactor multi-physics simulations.

Method used

By meshing the computational domain of the numerical reactor, assigning solvers of different disciplines to multiple computing nodes, and creating particle processes and regional processes based on the resources of the computing nodes, the resource allocation and communication during the solving process are optimized.

Benefits of technology

It improves the utilization of computing resources between solvers of different disciplines and improves the efficiency of multi-physics simulation processing of numerical reactors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708331A
    Figure CN118708331A
Patent Text Reader

Abstract

The invention discloses a data solving method and device for a numerical reactor, equipment and a medium, and the method comprises the steps: carrying out the grid division of a computational domain of the numerical reactor, and obtaining a plurality of grid regions and a plurality of grid blocks; recording a region decomposition parallel solver to each grid region, and recording a particle parallel solver to each grid block; distributing the plurality of grid regions and the plurality of grid blocks to a plurality of computational nodes, wherein the plurality of computational nodes are used for calculating and solving the particle parallel solver and the region decomposition parallel solver; for each computing node, creating a particle process and creating a plurality of regional processes based on computing resources of the computing node; and solving the distributed grid blocks through the particle processes of the plurality of computational nodes, and solving the distributed grid regions through the region processes of the plurality of computational nodes to obtain numerical reactor solving data. According to the method, the computing resources among the solvers of different subjects can be reasonably allocated, and the processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer science and technology, and in particular to a method and device for solving data of a numerical reactor, an electronic device, and a computer-readable storage medium. Background Art

[0002] Multi-physics simulation of numerical reactors is a key technology with important applications in the nuclear energy field and other related fields. It involves the simulation and analysis of complex reactor systems, including the interaction of multiple physical fields such as thermodynamics, fluid dynamics, neutron transport, fuel burn-up, etc.

[0003] When performing multi-physics simulations, different discipline solvers (such as particle parallel solvers and domain decomposition parallel solvers) are usually required to process the equations of each physical field. These solvers may have different algorithms, data structures, and numerical methods. In order to achieve accurate and efficient simulations, these solvers require a lot of computing resources, data exchange, and communication.

[0004] In related technologies, the allocation of computing resources between solvers of different disciplines is unreasonable, which greatly affects the processing efficiency. Summary of the invention

[0005] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a data solving method and device for a numerical reactor, an electronic device and a computer-readable storage medium, which can reasonably allocate computing resources between solvers of different disciplines and improve processing efficiency.

[0006] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a method for solving data of a numerical reactor, the method comprising:

[0007] Meshing the computational domain of the numerical reactor to obtain a plurality of mesh regions and a plurality of mesh blocks;

[0008] Recording a domain decomposition parallel solver to each of the grid regions, and recording a particle parallel solver to each of the grid blocks;

[0009] Allocating the plurality of grid regions and the plurality of grid blocks to a plurality of computing nodes, wherein the plurality of computing nodes are used to solve the calculations of the particle parallel solver and the domain decomposition parallel solver;

[0010] For each computing node, creating a particle process and multiple regional processes based on computing resources of the computing node;

[0011] The allocated grid blocks are solved by particle processes of a plurality of the computing nodes, and the allocated grid regions are solved by region processes of a plurality of the computing nodes to obtain numerical reactor solution data.

[0012] Optionally, solving the allocated grid blocks through particle processes of the plurality of computing nodes, and solving the allocated grid regions through regional processes of the plurality of computing nodes to obtain numerical reactor solution data, comprises:

[0013] Executing a regional solution subprocess, the regional solution subprocess includes: solving the grid area with the particle cache data sent by the particle process in the first time step through each of the regional processes to obtain regional solution data for the second time step, updating the regional cache area corresponding to the regional process with the regional solution data for the second time step, and sending the regional cache data in the regional cache area to the particle process; updating the particle cache area corresponding to the particle process with the received regional cache data through the particle processes on all the computing nodes, and accumulating the particle cache data in the particle cache area into the global cache area; wherein the first time step is the previous time step of the second time step;

[0014] Execute a particle solving subprocess, the particle solving subprocess comprising: solving the grid block by the particle process with the regional cache data sent by the plurality of regional processes at the first time step to obtain the particle solving data of the second time step, and updating the particle cache area corresponding to the particle process with the particle solving data of the second time step; sending the particle cache data in the particle cache area to the plurality of regional processes on the same computing node by the particle process; updating the regional cache area corresponding to the regional process by each regional process based on the particle cache data of the second time step;

[0015] If the second time step does not reach the preset target time step, the regional solution subprocess and the particle solution subprocess are repeatedly executed until the numerical reactor solution data is obtained from the global buffer area.

[0016] Optionally, sending the regional cache data in the regional cache area to the particle process includes:

[0017] For each computing node, sending the regional cache data of the second time step to the particle process on the computing node respectively through multiple regional processes on the computing node;

[0018] The regional cache data of the second time step is sent to the particle processes on other computing nodes through the particle process on the computing node.

[0019] Optionally, sending the regional cache data of the second time step to particle processes on other computing nodes through the particle process on the computing node includes:

[0020] updating a particle cache area with the regional cache data of a second time step by the particle process on the computing node;

[0021] The particle cache data in the particle cache area is sent to the particle processes on other computing nodes through the particle process on the computing node, and the particle cache data includes the regional cache data of the second time step, so that the particle process on each computing node updates the particle cache area corresponding to the particle process with the received particle cache data sent by other computing nodes.

[0022] Optionally, sending the particle cache data in the particle cache area to the plurality of regional processes on the same computing node through the particle process comprises:

[0023] Sort the plurality of regional processes on the same computing node from small to large by using the particle process on each computing node;

[0024] For each of the computing nodes, a blocking sending process is performed; wherein the blocking sending process includes: determining a current receiving regional process from a plurality of the regional processes based on the sorting, and sending particle solution data of a second time step to the current receiving regional process through the particle process;

[0025] If it is detected that the current receiving area process receives the particle solution data of the second time step, the blocking sending process is repeatedly executed until there is no current receiving area process.

[0026] Optionally, before solving the allocated grid block by the particle process and solving the allocated grid area by the area process, the method further includes:

[0027] Establishing a communication connection channel between the domain decomposition parallel solver and the particle parallel solver through a target process, wherein the target process includes at least one of the domain process and the particle process;

[0028] Wherein, the particle cache data and the area cache data are transmitted through the communication connection channel.

[0029] Optionally, creating one particle process and creating a plurality of regional processes based on the computing resources of the computing node comprises:

[0030] Execute a process of determining the time required for solving a grid area, the process of determining the time required for solving a grid area comprising: determining a first time required for solving the grid area and a second time required for solving the grid area, the first time required for solving the grid area when the computing resources of the computing node create a first number of the regional processes; the second time required for solving the grid area when the computing resources of the computing node create the second number of the regional processes; the second number is the sum of the first number and a preset number gradient;

[0031] If the second time duration does not satisfy the preset condition with the first time duration, the first number is replaced by the second number, and the process of solving the time duration required for the grid area is repeated until the second time duration satisfies the preset condition with the first time duration, and a particle process and the first number of area processes are created at the computing node.

[0032] To achieve the above-mentioned purpose, the second aspect of the present application proposes a data solving device for a numerical reactor, the device comprising:

[0033] A partitioning module, used for partitioning the computational domain of the numerical reactor into grids to obtain a plurality of grid regions and a plurality of grid blocks;

[0034] A recording module, used for recording the region decomposition parallel solver to each of the grid regions, and recording the particle parallel solver to each of the grid blocks;

[0035] An allocation module, used for allocating the plurality of grid regions and the plurality of grid blocks to a plurality of computing nodes, wherein the plurality of computing nodes are used for solving the calculations of the particle parallel solver and the domain decomposition parallel solver;

[0036] A creation module, used for creating, for each computing node, a particle process and multiple regional processes based on computing resources of the computing node;

[0037] A solution module is used to solve the assigned grid blocks through the particle processes of the plurality of computing nodes, and to solve the assigned grid regions through the region processes of the plurality of computing nodes, so as to obtain numerical reactor solution data.

[0038] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the data solution method of the numerical reactor described in the first aspect is implemented.

[0039] To achieve the above objectives, the fourth aspect of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the data solution method of the numerical reactor described in the first aspect.

[0040] The data solving method and device, electronic device and computer-readable storage medium of the numerical reactor proposed in the present application propose that the computational domain of the numerical reactor is first grid-divided to obtain multiple grid regions and multiple grid blocks, wherein the multiple grid regions cover the entire computational domain, and the multiple grid blocks also cover the entire computational domain. Secondly, the regional decomposition parallel solver is recorded in each grid region, and the particle parallel solver is recorded in each grid block. The regional decomposition parallel solver is a solver for solving the grid region, and the particle parallel solver is a solver for solving the grid block. Solving requires certain computing resources, so multiple grid regions and multiple grid blocks are assigned to multiple computing nodes, and each computing node will call its own computing resources to solve the assigned grid regions and grid blocks. The computing resources required to solve the grid region and grid block are different, so a particle process and multiple regional processes are created based on the computing resources of the computing node, and then the assigned grid blocks are solved by the particle processes of multiple computing nodes, and the assigned grid regions are solved by the regional processes of multiple computing nodes to obtain the numerical reactor solution data. Although both particle processes and regional processes will occupy part of the computing resources of the computing node, regional processes need to communicate more frequently than particle processes. Therefore, by setting the number of regional processes to be greater than the number of particle processes, it can be ensured that multiple regional processes of the same computing node can communicate efficiently when solving the grid area. In summary, the embodiments of the present application can reasonably allocate computing resources between different subject solvers and improve processing efficiency.

[0041] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of a data solving method for a numerical reactor provided in an embodiment of the present application;

[0043] Figure 2 is a schematic diagram of a grid area provided in an embodiment of the present application;

[0044] Figure 3 is a schematic diagram of a grid block provided in an embodiment of the present application;

[0045] Figure 4 is a schematic diagram of creating a process on a computing node provided by an embodiment of the present application;

[0046] Figure 5 is a schematic diagram of serial coupling communication between a particle parallel solver and a domain decomposition parallel solver provided in an embodiment of the present application;

[0047] Figure 6 is a schematic diagram of parallel coupling communication between a particle parallel solver and a domain decomposition parallel solver provided in an embodiment of the present application;

[0048] Figure 7 It is a structural schematic diagram of a data solving device for a numerical reactor provided in an embodiment of the present application;

[0049] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0053] Numerical reactor usually refers to the technology of simulating and analyzing the physical processes in nuclear reactors by computer numerical simulation. Numerical reactor simulation is an important tool in the field of nuclear energy and nuclear engineering, used to study and evaluate the performance, safety and stability of nuclear reactors. The main purposes of numerical reactor simulation include: predicting and analyzing nuclear parameters in the reactor, such as neutron flux distribution, temperature distribution, fuel burnup, etc.; simulating the operating state of the reactor under different working conditions, understanding the stability, response characteristics and fault conditions of the reactor; optimizing the reactor design, layout and control strategy, and improving the efficiency and safety of the reactor. Numerical reactor simulation is often based on a series of mathematical models and physical models, including diffusion theory, neutron transport theory, fuel deposition model, thermal hydraulic model, etc. The simulation process involves the discretization and numerical solution of different parameters to obtain numerical solutions of various physical processes in the reactor. In the data solution (also known as coupled analysis) of numerical reactors, different types of high-fidelity subject solvers are often required. The parallel solution types of these solvers can be divided into particle parallel solvers and domain decomposition parallel solvers.

[0054] Particle parallel solvers often use the Monte Carlo method for neutron / photon transport simulation, etc. In parallel computing, each subprocess completely copies the entire solution to the problem, including global information such as power distribution and temperature distribution.

[0055] The domain decomposition parallel solver is commonly used in software such as computational fluid dynamics (CFD). In parallel computing, the data of the problem is decomposed into different local information and assigned to each subprocess. Each subprocess only contains local information related to it, such as local power distribution or temperature distribution. Data exchange and communication are required between subprocesses to achieve global coupling analysis.

[0056] At present, how to achieve resource allocation and efficient parallel communication between particle parallel solvers and domain decomposition parallel solvers is one of the difficulties in large-scale coupled analysis of numerical reactors. The relevant technologies have at least one problem, such as data transmission delay, high communication overhead, and low parallel efficiency.

[0057] Based on this, the embodiment of the present application provides a data solving method and device for a numerical reactor, an electronic device and a computer-readable storage medium. The method provided in the present application relates to multi-physics field simulation of a numerical reactor, and specifically to a parallel communication method between multiple subject solvers, which can improve the parallel efficiency in the process of large-scale data transmission. Specifically, the computational domain of the numerical reactor is first gridded to obtain multiple grid areas and multiple grid blocks, and the multiple grid areas cover the entire computational domain, and the multiple grid blocks also cover the entire computational domain. Secondly, the regional decomposition parallel solver is recorded to each grid area, and the particle parallel solver is recorded to each grid block. The regional decomposition parallel solver is a solver for solving the grid area, and the particle parallel solver is a solver for solving the grid block. Solving requires certain computing resources, so multiple grid areas and multiple grid blocks are assigned to multiple computing nodes, and each computing node will call its own computing resources to solve the allocated grid areas and grid blocks. The computing resources required to solve the grid area and grid block are different, so a particle process and multiple regional processes are created based on the computing resources of the computing nodes, and then the assigned grid blocks are solved by the particle processes of multiple computing nodes, and the assigned grid areas are solved by the regional processes of multiple computing nodes to obtain numerical reactor solution data. Although both particle processes and regional processes will occupy part of the computing resources of the computing nodes, regional processes require more frequent communication than particle processes. Therefore, by setting the number of regional processes to be greater than the number of particle processes, it can be ensured that multiple regional processes of the same computing node can communicate efficiently when solving the grid area. In summary, the embodiments of the present application can reasonably allocate computing resources between solvers of different disciplines, thereby improving processing efficiency.

[0058] The data solving method and device of the numerical reactor, the electronic device and the storage medium provided in the present application are specifically described through the following embodiments. First, the data solving method of the numerical reactor in the present application is described.

[0059] Please refer to Figure 1 , Figure 1 An optional flow chart of a method for solving data for a numerical reactor is disclosed. Figure 1 The method may include but is not limited to steps 101 to 105.

[0060] Step 101, meshing the computational domain of the numerical reactor to obtain a plurality of mesh regions and a plurality of mesh blocks;

[0061] Step 102, recording the domain decomposition parallel solver to each grid region, and recording the particle parallel solver to each grid block;

[0062] Step 103, allocating multiple grid regions and multiple grid blocks to multiple computing nodes, where the multiple computing nodes are used to solve the calculations of the particle parallel solver and the domain decomposition parallel solver;

[0063] Step 104, for each computing node, creating a particle process and multiple regional processes based on the computing resources of the computing node;

[0064] Step 105 , solving the assigned grid blocks through the particle processes of multiple computing nodes, and solving the assigned grid regions through the region processes of multiple computing nodes, to obtain numerical reactor solution data.

[0065] In the steps 101 to 105 shown in the embodiment of the present application, multiple grid areas cover the entire computing domain, and multiple grid blocks also cover the entire computing domain. Solving requires certain computing resources, so multiple grid areas and multiple grid blocks are assigned to multiple computing nodes, and each computing node will call its own computing resources to solve the assigned grid areas and grid blocks. The computing resources required to solve the grid areas and grid blocks are different, so a particle process and multiple regional processes are created based on the computing resources of the computing nodes, and then the assigned grid blocks are solved by the particle processes of multiple computing nodes, and the assigned grid areas are solved by the regional processes of multiple computing nodes to obtain numerical reactor solution data. Although both particle processes and regional processes will occupy part of the computing resources of the computing nodes, regional processes require more frequent communication than particle processes, so by setting the number of regional processes to be more than the number of particle processes, it can be ensured that multiple regional processes of the same computing node can communicate efficiently when solving the grid areas. In summary, the embodiment of the present application can reasonably allocate computing resources between different subject solvers, thereby improving processing efficiency.

[0066] In step 101 of some embodiments, the numerical reactor has been described above and will not be repeated here. Computational domain refers to a concept in computer science, which is used to describe the effective range of a variable in a computer program. The computational domain generally refers to the range in which a variable can be accessed and operated in a program, including the scope, life cycle, and visibility of the variable.

[0067] In one embodiment, the process of meshing the computational domain of the numerical reactor to obtain multiple mesh regions may include: defining the mesh according to the computational domain of the numerical reactor to obtain a global mesh; meshing the global mesh according to the geometry of the problem to be solved and the meshing strategy to obtain multiple mesh regions. For example, in the data solution (also known as numerical simulation) of a nuclear reactor, the entire core can be regarded as a complete computational domain. Then, the computational domain can be divided into multiple non-overlapping mesh regions according to the geometry and meshing strategy of the problem (e.g., neutron / photon transport simulation, fluid mechanics, etc.). The mesh region types include triangles, quadrilaterals, hexagons, or irregular shapes (such as a mixture of triangles and quadrilaterals, etc.). The mesh region can be divided regularly, such as equally, or it can be divided adaptively to better adapt to the local characteristics of the problem. For example, different meshing strategies will encrypt the mesh in the critical area of ​​the problem (such as the inside of the core), reduce the number of mesh regions in non-critical areas (such as the edge or external area of ​​the core), and so on.

[0068] In one embodiment, each grid region includes a plurality of subgrids, and the size and refinement degree of these subgrids can be adjusted according to the flow characteristics and accuracy requirements in the grid region. Figure 2 , the computational domain of the numerical reactor is divided into four grid regions, namely, grid region 201, grid region 202, grid region 203, and grid region 204. Grid region 201 includes 16 subgrids. Grid region 202 includes 64 subgrids. Grid region 203 includes 16 subgrids. Grid region 204 includes 16 subgrids. It can be seen that the subgrid density of grid region 201 can be higher than the subgrid density of grid region 201, grid region 203, and grid region 204.

[0069] In one embodiment, the process of meshing the computational domain of the numerical reactor to obtain a plurality of mesh blocks may include: defining a mesh according to the computational domain of the numerical reactor to obtain a global mesh; and meshing the global mesh to obtain a plurality of mesh blocks. The global mesh used to partition the mesh blocks in this embodiment is the same as the global mesh used to partition the mesh regions. Each mesh block should include at least one sub-mesh of a regional decomposition parallel solver. The shape of the mesh block may be irregular to better adapt to the distribution and motion characteristics of the particles. Figure 3, the computational domain of the numerical reactor is divided into five grid blocks, namely, grid block 301, grid block 302, grid block 303, grid block 304 and grid block 305. Grid block 301 covers 12 subgrids of grid area 201 and 12 subgrids of grid area 202. Grid block 302 covers 48 subgrids of grid area 202 and 3 subgrids of grid area 204. Grid block 303 covers 3 subgrids of grid area 203 and 12 subgrids of grid area 204. Grid block 304 covers 3 subgrids of grid area 201 and 12 subgrids of grid area 203. Grid block 305 covers 1 subgrid of grid area 201, 4 subgrids of grid area 202, 1 subgrid of grid area 203 and 1 subgrid of grid area 204.

[0070] In step 102 of some embodiments, the domain decomposition parallel solver is recorded in each grid region, and the particle parallel solver is recorded in each grid block. The domain decomposition parallel solver and the particle parallel solver have been described above and will not be repeated here. Each grid region includes one or more subgrids, each subgrid contains a portion of the information and data of the computational domain, and the domain decomposition parallel solver recorded in the grid region can solve and calculate the information and data contained in each subgrid. Similarly, each grid block corresponds to at least one subgrid, which also contains a portion of the information and data of the computational domain, and the particle parallel solver recorded in the grid block can solve and calculate the information and data contained in the grid block.

[0071] In step 103 of some embodiments, a computing node refers to a basic computing unit for performing parallel computing in a high performance computing (HPC) system. A computing node typically includes components such as one or more processors (such as CPU or GPU), memory (RAM), storage devices, and network interfaces, and can independently perform computing tasks. In high performance computing, a computing node is the basic building block of the entire system, and large-scale parallel computing can be achieved by connecting multiple computing nodes together to form a cluster or supercomputer. Each computing node can independently perform computing tasks and communicate and coordinate with other computing nodes to achieve distributed parallel computing of tasks. In this embodiment, the computing node is configured with multiple processor cores and large memory capacity to support complex numerical calculations. The computing node is used to solve the calculations of the particle parallel solver and the domain decomposition parallel solver.

[0072] In one embodiment, the process of allocating multiple grid areas and multiple grid blocks to multiple computing nodes may include: for each grid area, determining a first remainder of a modulo operation between a first serial number of the grid area and a first total number, the first total number being the total number corresponding to multiple grid areas; distributing the grid area to computing nodes having a second serial number corresponding to the first remainder; for each grid block, determining a second remainder of a modulo operation between a third serial number of the grid block and a second total number, the second total number being the total number corresponding to multiple grid blocks; distributing the grid block to computing nodes having a second serial number corresponding to the second remainder. This embodiment implements round-robin allocation based on the first remainder and the second remainder obtained by the modulo operation, which can ensure that each computing node has the possibility of being equally allocated to the grid area and the grid block, thereby improving allocation fairness.

[0073] In step 104 of some embodiments, computing resources refer to various computing devices and resources available in computing tasks, which are used to perform operations such as computing, storing data, and communicating. Computing resources may include hardware resources (such as processors, memory, storage devices, GPUs, etc.) and software resources (such as operating systems, applications, programming tools, etc.), which together support the performance of computing tasks. Common computing resources include: Processor (CPU): a central processing unit used to perform computing tasks, usually including multiple processor cores, which can perform multiple tasks in parallel. Graphics Processing Unit (GPU): used to accelerate graphics processing and general computing, and is widely used in deep learning, scientific computing, and cryptography. For each computing node, a particle process is created and multiple regional processes are created based on the computing resources of the computing node.

[0074] For example, refer to Figure 4 , there are 5 computing nodes in total, namely computing node 401, computing node 402, computing node 403, computing node 404 and computing node 405. Create processes 1 to 10 for computing node 401, where process 1 is a particle process and processes 2 to 10 are all regional processes. Create processes 11 to 20 for computing node 402, where process 11 is a particle process and processes 12 to 20 are all regional processes. Create processes 21 to 30 for computing node 403, where process 21 is a particle process and processes 22 to 30 are all regional processes. Create processes 31 to 40 for computing node 404, where process 31 is a particle process and processes 32 to 40 are all regional processes. Create processes 41 to 50 for computing node 405, where process 41 is a particle process and processes 42 to 50 are all regional processes.

[0075] In one embodiment, the process of creating a particle process and creating multiple regional processes based on computing resources of a computing node may include:

[0076] The process of calculating the time required for solving the grid area is executed, and the process of calculating the time required for solving the grid area includes: determining a first time required for solving the grid area and a second time required for solving the grid area, the first time required for solving the grid area when the computing resources of the computing node create a first number of regional processes; the second time required for solving the grid area when the computing resources of the computing node create a second number of regional processes; the second number is the sum of the first number and a preset number gradient;

[0077] If the second duration does not meet the preset conditions with the first duration, the first number is replaced by the second number, and the process of solving the time required for the grid area is repeated until the second duration meets the preset conditions with the first duration, and a particle process and the first number of area processes are created at the computing node.

[0078] The number gradient can be set according to demand, for example, the number gradient is 1, 2, etc. Assuming that the number gradient is 1 and the first number is 5, the second number is 6. The preset condition may be that the difference between the second duration and the first duration is greater than the duration reduction gradient threshold. For example, the duration reduction gradient threshold is 1 second. If the difference between the second duration and the first duration is greater than 1 second, the second number replaces the first number, and the process of solving the time required for the grid area is repeated. The preset condition may also be that the proportion of the difference between the second duration and the first duration in the first duration is less than the duration reduction proportion threshold. For example, the duration reduction proportion threshold is 5%. If the difference between the second duration and the first duration accounts for less than 5% of the first duration, the process of solving the time required for the grid area is repeated.

[0079] The benefit of this embodiment is that a sufficient number of regional processes can be reasonably created according to the computing resources of the computing nodes, and the computing resources are reasonably allocated.

[0080] In step 105 of some embodiments, the assigned grid blocks are solved by particle processes of multiple computing nodes, and the assigned grid regions are solved by region processes of multiple computing nodes to obtain numerical reactor solution data. Figure 4, process 1 of computing node 401, process 11 of computing node 402, process 21 of computing node 403, process 31 of computing node 404, and process 41 of computing node 405 solve the grid blocks assigned to them respectively. Processes 2 to 10 of computing node 401, processes 12 to 20 of computing node 402, processes 22 to 30 of computing node 403, processes 32 to 40 of computing node 404, and processes 42 to 50 of computing node 405 solve the grid areas assigned to them respectively. Each particle process corresponds to a particle buffer. Each regional process corresponds to a regional buffer. During the solving process, the particle process solves to obtain particle solution data, and updates the particle buffer with the particle solution data; the regional process solves to obtain regional solution data, and updates the regional buffer with the regional solution data. Data interaction is required between the particle process and the regional process, that is, the particle process needs to send the particle cache data in the particle cache area to the regional process, and the regional process needs to send the regional cache data in the regional cache area to the particle process.

[0081] In one embodiment, before step 105, the data solving method of the numerical reactor further includes:

[0082] A communication connection channel is established between the regional decomposition parallel solver and the particle parallel solver through a target process, wherein the target process includes at least one of a regional process and a particle process; wherein the particle cache data and the regional cache data are transmitted through the communication connection channel.

[0083] In one example, when the target process is a regional process, a communication module is imported and initialized in the program of the regional decomposition parallel solver, and communication with the particle parallel solver is waited for. Then, when the target process is a particle process, the communication module is imported and initialized in the program of the particle parallel solver, and the regional decomposition parallel solver and the particle parallel solver successfully establish a communication connection channel. In another example, when the target process is a particle process, a communication module is imported and initialized in the program of the particle parallel solver, and communication with the regional parallel solver is waited for. Then, when the target process is a regional process, the communication module is imported and initialized in the program of the regional parallel solver, and the regional decomposition parallel solver and the particle parallel solver successfully establish a communication connection channel.

[0084] The benefit of the above embodiment is that, by using the target process to establish a communication connection channel before solving, data interaction between the domain decomposition parallel solver and the particle parallel solver can be guaranteed during the solving process.

[0085] The following describes the communication between the particle parallel solver (A) and the domain decomposition parallel solver (B), as well as their respective processing flows.

[0086] In one example, the following processing can be performed in A's program and B's program respectively:

[0087] (1) Program initialization;

[0088] (2) Import the communication module and initialize the communication;

[0089] (3) Repeat the following operations until convergence or time step requirements are met, t = t + 1:

[0090] 3.1, t time step pre-processing;

[0091] Get data from A(B);

[0092] 3.2, perform solver calculation;

[0093] 3.3, t time step post-processing;

[0094] Send data to B(A);

[0095] Time synchronization (A and B are synchronized);

[0096] 3.4 Check whether it is the next time step;

[0097] (4)End.

[0098] It should be noted that pre-processing is the pre-processing of the environment required by the solver for its calculation. The pre-processing required for each solver is different depending on the content of the calculation. Generally speaking, pre-processing includes data format conversion, data decomposition and reconstruction, allocation of computing tasks, and some optimization settings. For example, superlu (a third-party open source solver) calculates row permutation vectors and column permutation vectors to optimize the decomposition of the matrix before performing LU decomposition. Post-processing is the post-processing of the environment required by the solver for its calculation. Different solvers will perform different post-processing, such as releasing memory space, data format conversion, log output, etc. Checking whether the next time step can be specifically: the next time step will only be entered when all solver calculation results meet the convergence standard set by the user who executes the simulation. If no standard is set, the next time step will be entered when all solvers complete the calculation. For example, the convergence standard includes meeting the upper limit of the number of calculations, or the error between the current calculation result and the previous calculation result is less than a given value.

[0099] The process of establishing a communication connection channel includes the following situations: (1) When A is started, the communication module in A is initialized and waits to establish communication with B; then B is started, and A and B establish communication. (2) When B is started, the communication module is initialized and waits to establish communication with A; then A is started, and A and B establish communication. It can be seen that the startup order between A and B does not affect the coupling calculation between A and B.

[0100] The communication between the particle parallel solver A and the domain decomposition parallel solver B can be serial coupling communication or parallel coupling communication. Figure 5 , Figure 5 Figure 1 shows the serial coupling communication between the particle parallel solver A and the domain decomposition parallel solver B. Specifically, for one time step, when A is solving the calculation, B is in a waiting state. For another time step, when B is solving the calculation, A is in a waiting state. A can send data such as power field to B, and B can send data such as temperature field to A. Figure 6 , Figure 6 The figure shows the parallel coupling communication between the particle parallel solver A and the domain decomposition parallel solver B. Specifically, for each time step, when A performs a solution calculation, B also performs a solution calculation. A can send data such as power field to B, and B can send data such as temperature field to A.

[0101] In one example, in the program of A, at the time step t, data is obtained from B, the solution calculation of A is executed, and then data is sent from A to B, the data of A and B are checked, and it is determined whether to proceed to the next moment. In the program of B, at the time step t, data is obtained from A, the solution calculation of B is executed, and then data is sent from B to A, the data of A and B are checked, and it is determined whether to proceed to the next time step, until the convergence condition is met or the target time step is reached.

[0102] In one embodiment, step 105 includes:

[0103] Execute a regional solution subprocess, the regional solution subprocess includes: solving the grid area with the particle cache data sent by the particle process at the first time step through each regional process to obtain the regional solution data of the second time step, updating the regional cache area corresponding to the regional process with the regional solution data of the second time step, and sending the regional cache data in the regional cache area to the particle process; updating the particle cache area corresponding to the particle process with the received regional cache data through the particle process on all computing nodes, and accumulating the particle cache data in the particle cache area into the global cache area;

[0104] Execute a particle solving subprocess, the particle solving subprocess comprising: solving the grid block by using the regional cache data sent by the multiple regional processes in the first time step, obtaining the particle solving data of the second time step, and updating the particle cache area corresponding to the particle process by using the particle solving data of the second time step; sending the particle cache data in the particle cache area to the multiple regional processes on the same computing node by using the particle process; updating the regional cache area corresponding to the regional process by each regional process based on the particle cache data of the second time step;

[0105] If the second time step does not reach the preset target time step, the regional solution subprocess and the particle solution subprocess are repeatedly executed until the numerical reactor solution data is obtained from the global buffer area.

[0106] It should be noted that the first time step is the previous time step of the second time step. For example, if the first time step is t, then the second time step is t+1.

[0107] In combination with the above, each particle process corresponds to a particle buffer, and each regional process also corresponds to a regional buffer. After the regional process solves the grid regional process with the particle buffer data sent by the particle process in the first time step, the regional solution data of the second time step can be obtained, and the corresponding regional buffer can be updated with the regional solution data. It can be understood that the regional buffer is also used to store the particle buffer data sent by the particle process in the first time step received by the regional process. After the particle process solves the grid block with the regional buffer data sent by multiple regional processes in the first time step, the particle solution data of the second time step can be obtained, and the corresponding particle buffer can be updated with the particle solution data. It can be understood that the particle buffer is also used to store the regional buffer data sent by the regional process in the first time step received by the particle process.

[0108] The benefit of the above embodiment is that, through the separate solving and calculation of the regional process and the particle process and the effective communication with each other, the data exchange between the regional parallel solver and the particle parallel solver is realized. Moreover, this communication method effectively localizes the data of the regional decomposition parallel solver, and performs appropriate sending and receiving operations to realize the accumulation and update of data. In addition, since this embodiment can efficiently utilize computing and communication resources, it can process larger-scale data and more complex computing tasks under the same hardware resource conditions.

[0109] In one embodiment, the process of sending the regional cache data in the regional cache area to the particle process may include:

[0110] For each computing node, the regional cache data of the second time step is sent to the particle process on the computing node respectively through the multiple regional processes on the computing node;

[0111] The regional cache data of the second time step is sent to the particle processes on other computing nodes through the particle process on the computing node.

[0112] For example, refer to Figure 4, for the regional cache data of process 2, a communication connection channel is established between process 2 and the process (such as process 1) of the root node (such as computing node 401) of the particle parallel solver, and the regional cache data is sent to process 1. This is a blocking point-to-point send / receive operation. Process 1 establishes a communication connection channel between process 1 and the particle process (such as process 11) of other computing nodes (such as computing node 402), for example, broadcasting the regional cache data received by process 1 to process 11, process 21, process 31 and process 41.

[0113] The benefit of this embodiment is that the regional cache data is not sent directly by the regional process across computing nodes, but is first sent to the particle process on the same computing node as the regional process, and then the particle process sends the regional cache data to other particle processes across computing nodes, thereby reducing the possibility of data loss and improving the security of data interaction.

[0114] In one embodiment, sending the regional cache data of the second time step to the particle processes on other computing nodes through the particle process on the computing node includes:

[0115] Update the particle cache area with the regional cache data of the second time step through the particle process on the computing node;

[0116] The particle cache data in the particle cache area is sent to the particle processes on other computing nodes through the particle process on the computing node, and the particle cache data includes the regional cache data of the second time step, so that the particle process on each computing node updates the particle cache area corresponding to the particle process with the particle cache data received from other computing nodes.

[0117] For example, refer to Figure 4 , process 1 of computing node 401 updates the particle cache area with the regional cache data of the second time step sent by process 2, and sends the particle cache data in the updated particle cache area to process 11 of computing node 402, process 21 of computing node 403, process 31 of computing node 404, and process 41 of computing node 405. Since the particle cache area is updated based on the regional cache data of the second time step, the sent particle cache data includes the regional cache data of the second time step.

[0118] The benefit of this embodiment is that when particle processes across computing nodes interact with each other, the particle cache data in the particle cache area can be sent at one time, and different data cannot be sent multiple times, thereby improving interaction efficiency.

[0119] In one embodiment, the process of sending the particle cache data in the particle cache area to multiple regional processes on the same computing node through the particle process may include:

[0120] Sort multiple regional processes on the same computing node from small to large through the particle process on each computing node;

[0121] For each computing node, a blocking sending process is executed; wherein the blocking sending process includes: determining a current receiving regional process from a plurality of regional processes based on the sorting, and sending particle solution data of the second time step to the current receiving regional process through a particle process;

[0122] If it is detected that the current receiving area process receives the particle solution data of the second time step, the blocking sending process is repeated until there is no current receiving area process.

[0123] For example, refer to Figure 4 , process 1 of computing node 401 sorts processes 2 to 10 from small to large. Based on the sorting, the processes in the current receiving area can be determined in sequence as process 2, process 3, ..., process 9 and process 10. After process 1 sends the particle solution data of the second time step to process 2, if it is detected that process 2 has received the particle solution data of the second time step, process 1 can send the particle solution data of the second time step to process 3. If it is detected that process 3 has received the particle solution data of the second time step, process 1 can send the particle solution data of the second time step to process 4. The sending process from process 4 to process 10 is similar to that from process 2 to process 3, and will not be repeated here. This embodiment can start the next operation before some operations are completed, thereby reducing waiting time and improving overall parallel performance.

[0124] The benefit of this embodiment is that the efficiency of parallel computing can be improved through reasonable communication and calculation sequence arrangement.

[0125] In one example, refer to Figure 2 , Figure 3 ,and Figure 4 , the data solving method of the numerical reactor may include the following implementation steps:

[0126] 1. Communication from the regional parallel solver B to the particle parallel solver A:

[0127] 1.1 Localization of regional decomposition parallel solver B data:

[0128] The regional grid includes multiple subgrids, and the regional solution data includes subgrid solution data of the multiple subgrids. Each regional process averages the subgrid solution data of each subgrid on the particle buffer area (also called the local part of the grid block) of the corresponding grid block. For example, the grid area 202 has 4 subgrids corresponding to the grid block 305, and the subgrid solution data of the 4 subgrids can be averaged on the local part of the grid block. For each regional process, the regional solution data of its grid area is translated to the regional buffer area.

[0129] 1.2 Communicate the regional cache data to the root node of the particle parallel solver:

[0130] For the regional cache data of process 2, a process (e.g., process 1) of the root node (e.g., computing node 401) communicating with the particle parallel solver is established. This is a blocking point-to-point send / receive operation. The regional cache data is stored in the particle cache region of process 1 of computing node 1.

[0131] 1.3 Send the particle cache data in the particle cache area of ​​the root node to other computing nodes:

[0132] Establish communication between the root node (such as computing node 401) of the particle parallel solver and other computing nodes, for example, broadcast the particle cache data of process 1 to process 11, process 21, process 31, process 41, etc.

[0133] 1.4 Accumulation of global data:

[0134] Each particle parallel solver process accumulates the particle cache data in the updated particle buffer into the global buffer. This is done in parallel without any MP I communication.

[0135] 1.5 Repeat steps (1.1) to (1.4) to traverse all regional processes (for example, process 2 to process 10, process 12 to process 20, process 22 to process 30, process 32 to process 40, process 42 to process 50).

[0136] 2 Communication from particle parallel solver A to region parallel solver B:

[0137] 2.1 The particle process (such as process 1) sends the particle cache data (also called local grid data) in the particle cache area to the corresponding regional process (such as process 2), which is a blocking send / receive operation.

[0138] 2.2 The regional process (such as process 2) updates the regional cache based on the particle cache data, and can set the data of its grid area from the updated regional cache settings (also called local grid data field). This does not require MP I communication.

[0139] 2.3 Repeat steps 2.1 to 2.2 for each zone process.

[0140] It is understandable that after the particle process (such as process 1) completes step 2.1 for regional process n, it can immediately start the step for regional process n+1. This means that regional process n+1 can be started before step 2.2 for regional process ≤ n is completed. This can greatly improve the efficiency of parallel communication and computing.

[0141] The various technical features in the above embodiments can be arbitrarily combined as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.

[0142] See also Figure 7 The embodiment of the present application also provides a data solving device for a numerical reactor, which can implement the data solving method for the numerical reactor mentioned above. Figure 7 The module structure block diagram of the data solving device for a numerical reactor provided in an embodiment of the present application, the device includes: a partitioning module 701, used to mesh the computational domain of the numerical reactor to obtain multiple grid areas and multiple grid blocks; a recording module 702, used to record the regional decomposition parallel solver to each grid area, and to record the particle parallel solver to each grid block; an allocation module 703, used to allocate the multiple grid areas and multiple grid blocks to multiple computing nodes, and the multiple computing nodes are used to solve the calculations of the particle parallel solver and the regional decomposition parallel solver; a creation module 704, used to create a particle process and create multiple regional processes for each computing node based on the computing resources of the computing node; a solving module 705, used to solve the allocated grid blocks through the particle processes of multiple computing nodes, and to solve the allocated grid areas through the regional processes of multiple computing nodes to obtain numerical reactor solution data.

[0143] In one embodiment, the solving module 705 is further used to establish a communication connection channel between the domain decomposition parallel solver and the particle parallel solver through a target process, and the target process includes at least one of a domain process and a particle process.

[0144] It should be noted that the specific implementation of the data solving device for the numerical reactor is substantially the same as the specific implementation of the data solving method for the numerical reactor described above, and will not be described in detail herein.

[0145] The embodiment of the present application also provides an electronic device, which includes: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and when the program is executed by the processor, the above-mentioned numerical reactor data solving method is realized. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0146] See also Figure 8 , Figure 8 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0147] The processor 801 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0148] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the data solution method of the numerical reactor in the embodiment of this application;

[0149] Input / output interface 803, used to implement information input and output;

[0150] The communication interface 804 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0151] A bus 805 that transmits information between the various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);

[0152] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .

[0153] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned numerical reactor data solution method.

[0154] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0155] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0156] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0157] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0158] Those of ordinary skill in the art will appreciate that the functional modules / units in all or some steps, systems, and devices in the disclosed method above can be implemented as software, firmware, hardware, and appropriate combinations thereof. The terms "first", "second", "third", "fourth", etc. (if present) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product, or device comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0159] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0160] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0161] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0164] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for solving data of a numerical reactor, characterized in that: The method comprises: Meshing the computational domain of the numerical reactor to obtain a plurality of mesh regions and a plurality of mesh blocks; Recording a domain decomposition parallel solver to each of the grid regions, and recording a particle parallel solver to each of the grid blocks; Allocating the plurality of grid regions and the plurality of grid blocks to a plurality of computing nodes, wherein the plurality of computing nodes are used to solve the calculations of the particle parallel solver and the domain decomposition parallel solver; For each computing node, creating a particle process and creating multiple regional processes based on computing resources of the computing node; The allocated grid blocks are solved by particle processes of a plurality of the computing nodes, and the allocated grid regions are solved by region processes of a plurality of the computing nodes to obtain numerical reactor solution data.

2. The method according to claim 1, characterized in that: The step of solving the allocated grid blocks by particle processes of the plurality of computing nodes and solving the allocated grid regions by regional processes of the plurality of computing nodes to obtain numerical reactor solution data comprises: Executing a regional solution subprocess, the regional solution subprocess includes: solving the grid area with the particle cache data sent by the particle process in the first time step through each of the regional processes to obtain regional solution data for the second time step, updating the regional cache area corresponding to the regional process with the regional solution data for the second time step, and sending the regional cache data in the regional cache area to the particle process; updating the particle cache area corresponding to the particle process with the received regional cache data through the particle processes on all the computing nodes, and accumulating the particle cache data in the particle cache area into the global cache area; wherein the first time step is the previous time step of the second time step; Execute a particle solving subprocess, the particle solving subprocess comprising: solving the grid block by the particle process with the regional cache data sent by the plurality of regional processes at the first time step to obtain the particle solving data of the second time step, and updating the particle cache area corresponding to the particle process with the particle solving data of the second time step; sending the particle cache data in the particle cache area to the plurality of regional processes on the same computing node by the particle process; updating the regional cache area corresponding to the regional process by each regional process based on the particle cache data of the second time step; If the second time step does not reach the preset target time step, the regional solution subprocess and the particle solution subprocess are repeatedly executed until the numerical reactor solution data is obtained from the global buffer area.

3. The method according to claim 2, characterized in that The sending the regional cache data in the regional cache area to the particle process includes: For each computing node, sending the regional cache data of the second time step to the particle process on the computing node respectively through multiple regional processes on the computing node; The regional cache data of the second time step is sent to the particle processes on other computing nodes through the particle process on the computing node.

4. The method according to claim 3, characterized in that The sending the regional cache data of the second time step to the particle processes on other computing nodes through the particle process on the computing node includes: updating a particle cache area with the regional cache data of a second time step by the particle process on the computing node; The particle cache data in the particle cache area is sent to the particle processes on other computing nodes through the particle process on the computing node, and the particle cache data includes the regional cache data of the second time step, so that the particle process on each computing node updates the particle cache area corresponding to the particle process with the received particle cache data sent by other computing nodes.

5. The method according to claim 2, characterized in that: The sending the particle cache data in the particle cache area to the plurality of regional processes on the same computing node through the particle process comprises: Sort the plurality of regional processes on the same computing node from small to large by using the particle process on each computing node; For each of the computing nodes, a blocking sending process is performed; wherein the blocking sending process includes: determining a current receiving regional process from a plurality of the regional processes based on the sorting, and sending particle solution data of a second time step to the current receiving regional process through the particle process; If it is detected that the current receiving area process receives the particle solution data of the second time step, the blocking sending process is repeatedly executed until there is no current receiving area process.

6. The method according to claim 2, characterized in that Before solving the allocated grid block by the particle process and solving the allocated grid area by the area process, the method further includes: Establishing a communication connection channel between the domain decomposition parallel solver and the particle parallel solver through a target process, wherein the target process includes at least one of the domain process and the particle process; Wherein, the particle cache data and the area cache data are transmitted through the communication connection channel.

7. The method according to any one of claims 1 to 6, characterized in that: The creating of one particle process and multiple regional processes based on the computing resources of the computing node comprises: Execute a process of determining the time required for solving a grid area, the process of determining the time required for solving a grid area comprising: determining a first time required for solving the grid area and a second time required for solving the grid area, the first time required for solving the grid area when the computing resources of the computing node create a first number of the regional processes; the second time required for solving the grid area when the computing resources of the computing node create the second number of the regional processes; the second number is the sum of the first number and a preset number gradient; If the second time duration does not satisfy the preset condition with the first time duration, the first number is replaced by the second number, and the process of solving the time duration required for the grid area is repeated until the second time duration satisfies the preset condition with the first time duration, and a particle process and the first number of area processes are created at the computing node.

8. A data solving device for a numerical reactor, characterized in that: The device comprises: A partitioning module, used for partitioning the computational domain of the numerical reactor into grids to obtain a plurality of grid regions and a plurality of grid blocks; A recording module, used for recording the region decomposition parallel solver to each of the grid regions, and recording the particle parallel solver to each of the grid blocks; An allocation module, used for allocating the plurality of grid regions and the plurality of grid blocks to a plurality of computing nodes, wherein the plurality of computing nodes are used for solving the calculations of the particle parallel solver and the domain decomposition parallel solver; A creation module, used for creating, for each computing node, a particle process and multiple regional processes based on computing resources of the computing node; A solution module is used to solve the assigned grid blocks through the particle processes of the plurality of computing nodes, and to solve the assigned grid regions through the region processes of the plurality of computing nodes, so as to obtain numerical reactor solution data.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Data solving method and apparatus for numerical reactor

    WO2025246797A1