Parallel partition dynamic grid encryption optimization method and system for reactor flow field simulation

Through the parallel partitioning dynamic grid refinement optimization method, the problem of traditional grid division being difficult to generate high-quality grids in CEFR fast reactor fuel assemblies is solved. High-precision grid simulation and calculation efficiency are improved, and high-fidelity grids are met. Requirements for realistic numerical simulations.

CN118551399AActive Publication Date: 2024-08-27UNIV OF SCI & TECH BEIJING

Patent Information

Application Number
CN202410660888.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-27
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

Traditional meshing methods are difficult to generate high-quality meshes that meet the requirements of high-fidelity numerical simulations when dealing with large-scale meshing, especially in the complex geometric structure of CEFR fast reactor fuel assemblies, resulting in fine position geometry fitting of simulation results. The effect is poor, the calculation cost is high and the calculation efficiency is low.

Method used

The parallel partition dynamic grid encryption optimization method is adopted to perform regional decomposition and parallel processing by constructing a tetrahedral coarse grid model, combined with the global iterative encryption and additional area encryption strategies, to dynamically adjust the grid partitions and improve the accuracy of the positions of the fuel rods and winding filaments. and optimize the quality of the generated mesh.

Benefits of technology

It achieves the generation of high-quality and fine meshes in the CEFR fuel assembly flow field area, improves the accuracy and calculation efficiency of simulation results, reduces the number of low-quality meshes, and meets the requirements of high-fidelity numerical simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551399A
    Figure CN118551399A
Patent Text Reader

Abstract

The invention discloses a parallel partition dynamic grid encryption optimization method for reactor flow field simulation, and belongs to the technical field of thermal hydraulic simulation. According to the parallel partition dynamic grid encryption optimization method for reactor flow field simulation, after a coarse grid model region is decomposed, all sub-grids are subjected to encryption and optimization operation in parallel, grid partitions are dynamically adjusted in the encryption process, and the fitting degree of fuel rods and wire winding positions is improved; and finally, carrying out quality optimization on the inferior grid. An encryption optimization system is further constructed through the method, the grids distributed at fine and complex positions have high geometric fitting degree, density distribution of the grids is more reasonable, low-quality grids are few, and the grid scale meets the setting requirement of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of thermal hydraulic simulation, and in particular to a parallel partitioned dynamic grid encryption optimization method and system for reactor flow field simulation. Background Art

[0002] Thermal hydraulic simulation is an important part of numerical reactor simulation, which can effectively prevent core overheating and meltdown accidents, improve thermal efficiency and reduce reactor operating costs. CFD (Computational Fluid Dynamics) calculation is an important calculation method for thermal hydraulic simulation analysis. Among them, meshing is the key technology of the pre-processing part of CFD calculation. It is the process of converting the continuous fluid area into a series of discrete units to generate the mesh units required for numerical solution. Meshing accounts for more than 70% of the entire simulation calculation cycle, which is cumbersome but very important. Meshing considers many issues and requires a lot of work. The meshes generated by different division methods will have a great impact on the calculation scale, results and accuracy, and are the basis for the correctness of numerical simulation. In the process of meshing, the quality of the mesh is an important factor to ensure the stability and accuracy of the numerical solution. Poor-quality units such as overly flat or elongated meshes will lead to ill-conditioned stiffness matrices when solving the control equations, and may also make the conditions of the equations obtained by discretization very poor, seriously affecting the accuracy of the calculation, and may even lead to inability to calculate. Therefore, in the process of meshing, the quality of the mesh units needs to be controlled to a certain extent.

[0003] The fuel assembly is the core part of the reactor energy generation, and its thermal hydraulic performance has a significant impact on the safety and reliability of the reactor. There are 61 fuel rods in the CEFR fast reactor fuel assembly, and the fuel rods are fixed by spirally wound metal wires. This special geometric structure greatly increases the difficulty of meshing. First, the contact surface between the wire and the fuel rod is extremely small, which will easily produce sharp angles and poor quality meshes during meshing; second, the diameter of the wire is extremely small, and the spiral winding method leads to a complex path of the wire geometric surface. It is necessary to generate a dense mesh to represent the geometric features of the small diameter of the wire, and the mesh must fit the spiral shape of the wire to ensure the accuracy of the simulation. Such requirements may result in the generation of over-distorted mesh elements during meshing. Traditional meshing often uses commercial meshing software to mesh the fuel flow field area. It has complex user dependence during operation and requires a high level of technical skills for the meshing personnel, which will result in a large workload and low generation efficiency. In addition, the mesh models constructed by commercial software may have problems such as coarse mesh, volume mesh errors, and poor fine position fitting. At the same time, faced with large-scale mesh generation requirements, traditional mesh division methods often require a large amount of memory and a long execution time, making it difficult to generate meshes that meet the requirements of high-fidelity numerical simulations.

[0004] In view of the problems of traditional grid division methods in dealing with large-scale grid division, the coarse grid model of the CEFR fuel assembly flow field is used as the basis, and the grid is encrypted to meet the grid scale requirements. However, directly applying the existing grid encryption method will make it difficult to capture the geometric details of the fuel assembly, and the geometric fitting effect at fine positions is poor, thus affecting the accuracy of the simulation results. At the same time, there is the problem of being unable to adjust the grid density, which will cause the grid in the area where the fluid changes drastically to not be accurately simulated, or the overall number of grids is too large, increasing the computational cost. Therefore, how to construct a high-quality fine grid in the fast reactor fuel flow field area is of great significance to high-fidelity numerical simulation. In view of this, the present invention proposes a numerical reactor unitized efficient integrated grid generation method and system. Summary of the invention

[0005] The object of the present invention is to provide a parallel partitioned dynamic grid encryption optimization method and system for reactor flow field simulation to solve the problems raised in the background technology.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] The parallel partition dynamic grid refinement optimization method for reactor flow field simulation includes the following steps:

[0008] S1. Construct a tetrahedral coarse grid model for the fast reactor fuel assembly, calculate the required number of processes according to the set threshold and the number of coarse grid units, perform regional decomposition on the constructed coarse grid model, and assign the subgrids generated by the partitions to different processes for subsequent parallel processing;

[0009] S2, estimate the number of iterative refinement according to the number of coarse grid cells and the target grid size;

[0010] S3, for each subgrid in each process, global encryption is performed according to the number of iterations to quickly achieve coarse grid densification;

[0011] S4. After the sub-grid encryption is completed, the quality of the encrypted grid is evaluated using a quality optimization tool to detect and optimize the grid cells with poor quality.

[0012] S5. Merge the subgrids in each process and output the overall grid file in the format required by the solver.

[0013] Preferably, additional iterative encryption is performed when encrypting complex geometric locations to make the density distribution of the overall component network more reasonable; before the next round of network encryption, it is determined whether the grid area needs to be decomposed again to maintain load balance based on the number of networks in this process.

[0014] A parallel partitioned dynamic mesh encryption optimization system for reactor flow field simulation, including a mesh multi-level region decomposition module, a mesh encryption module, and a mesh optimization module;

[0015] The grid multi-level region decomposition module is used to allocate and control the number of tetrahedrons processed in the process, maintain load balance, and improve processing efficiency;

[0016] The grid encryption module includes a global iterative encryption submodule and an additional area encryption submodule; the global iterative encryption submodule is used to realize the densification of the coarse grid model, reach the target grid scale, form a grid model that is basically representative of the flow field area, and provide support for subsequent additional area encryption; the additional area encryption submodule is used to perform additional encryption on the position of the complex geometric structure, so that the grid in the area where the fluid changes violently is denser, and the density distribution of the overall component grid is more reasonable;

[0017] The grid optimization module includes a boundary fitting optimization submodule and a quality optimization submodule; the boundary fitting optimization submodule is used to perform fitting optimization on the encrypted points on the boundary area; the quality optimization submodule is used to perform quality optimization on the encrypted grid.

[0018] Preferably, the grid multi-level region decomposition module performs decomposition based on graph theory, and the specific execution process is as follows:

[0019] A1. Convert the volume mesh into a dual graph and store it using standard CSR.

[0020] A2. Use the multilevel k-way method to partition the dual graph;

[0021] A3. Map the partition result of the dual graph back to a grid.

[0022] Preferably, the global iterative encryption submodule implements encryption based on a regular encryption method, and the specific execution process is as follows:

[0023] B1. Generate global indexes for each edge of the tetrahedral mesh;

[0024] B2. Perform regular encryption, calculate the coordinates of the encryption points inserted into each tetrahedral mesh, and add the node information of the newly generated encryption points according to the node global index calculation formula;

[0025] B3, find the encrypted points on the boundary between the fuel rod and the winding wire, perform boundary fitting optimization operation, and update the coordinates of the encrypted points;

[0026] B4, add the new tetrahedron information generated by encryption to the list and delete the original tetrahedron information;

[0027] B5. Before the next round of mesh encryption, determine whether it is necessary to perform mesh region decomposition again based on the number of meshes in this process;

[0028] B6. Repeat the operations described in B1 to B5 until the required number of iterations is reached.

[0029] Preferably, the additional area encryption submodule implements encryption based on the longest edge binary encryption method, and the specific execution process is as follows:

[0030] C1. Perform boundary layer identification on the meshes near the boundary between the wire winding and the fuel rod to find additionally encrypted tetrahedral meshes;

[0031] C2. After finding the boundary layer network, use the longest edge binary encryption method to iteratively encrypt the boundary layer network and calculate the coordinates of the inserted encryption points;

[0032] C3, find the encrypted points on the boundary between the wire winding and the fuel rod, perform boundary fitting optimization operation, and update the coordinates of the encrypted points;

[0033] C4. Find the tetrahedron that shares the same edge with the encrypted point, store it in the grid list containing the hanging points, record the number of hanging points, and perform coordinated encryption processing according to the number of hanging points;

[0034] C5, adding the new tetrahedron information generated by binary encryption and coordinated encryption processing to the list, and deleting the original tetrahedron information;

[0035] C6. Before the next round of mesh encryption, determine whether to perform mesh region decomposition again based on the number of meshes in this process;

[0036] C7. Repeat the operations described in C1 to C6 until the required number of iterations is reached.

[0037] Preferably, the boundary fitting optimization operation is implemented by a boundary fitting optimization submodule. During the fitting optimization process, the encrypted points located on the boundary area of ​​the fuel rod and the winding wire are projected onto the boundary line to improve the fitting degree of the fine position. The projection operation specifically includes the following contents:

[0038] D1. Find out on which fuel rod or winding boundary the encrypted point is located, and calculate the coordinates of the center of the circle to which it belongs;

[0039] D2. Calculate the distance between the encrypted point and the center of the circle;

[0040] D3. Calculate the new coordinates of the encrypted points.

[0041] Preferably, the quality optimization submodule optimizes the quality of the encrypted grid by calling the quality optimization function in the gmsh library. The specific execution process is as follows:

[0042] E1. Use Mesh.ElementOrder to set the mesh order;

[0043] E2. Use the parameter Mesh.OptimizeThreshold to set a threshold and optimize the meshes whose quality is lower than the threshold.

[0044] E3. Use Mesh.HighOrderOptimize to set the optimization category;

[0045] E4. Complete quality optimization.

[0046] Compared with the prior art, the present invention provides a parallel partitioned dynamic grid encryption optimization method and system for reactor flow field simulation, which has the following beneficial effects:

[0047] The present invention proposes a parallel partition dynamic mesh encryption optimization method for reactor flow field simulation. After decomposing the coarse mesh model area, each sub-grid is encrypted and optimized in parallel, and the mesh partition is dynamically adjusted during the encryption process, and the fit of the fuel rod and the winding position is improved. Finally, the quality of the poor-quality mesh is optimized. The above method further constructs an encryption optimization system, in which the meshes distributed at fine and complex positions have a higher geometric fit, the density distribution of the meshes is more reasonable, there are fewer low-quality meshes, and the mesh scale meets the user's setting requirements.

[0048] The multi-level regional decomposition strategy proposed in the present invention effectively distributes and controls the number of tetrahedrons processed in a single process to maintain load balance, and parallel processing ensures the efficiency of encryption optimization; at the same time, through the two-stage grid iterative encryption strategy of global iterative encryption and additional regional encryption, while quickly realizing grid densification, specific local encryption is implemented on the fuel rod and winding area, so that the grid density distribution is more reasonable; especially for the special geometric structure of fuel rods and windings, boundary fitting processing is performed when creating encryption points, and the encryption points are projected onto the geometric boundary, which can more accurately simulate the complex shape of the fuel assembly; and the quality of the generated grid is evaluated and optimized, reducing the number of low-quality grids. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is an overall flow chart of the parallel partitioned dynamic grid encryption optimization method for reactor flow field simulation mentioned in Example 1 of the present invention; wherein iter1 and iter2 are the iterative encryption times of global encryption and additional encryption respectively;

[0050] Figure 2Schematic diagram of the tetrahedron regular encryption method mentioned in Example 1 of the present invention; wherein the original tetrahedron is T(O0, O1, O2, O3), the key points on the four edges are calculated respectively, and then the midpoints are connected, and the tetrahedron T is encrypted to obtain T1~T8;

[0051] Figure 3 Schematic diagram of the tetrahedron longest edge binary encryption method mentioned in Example 1 of the present invention; wherein, 46 is the longest edge in tetrahedron T(O4,O5,O6,O7), find the midpoint of the edge, connect the remaining two vertices respectively, split the original tetrahedron into two, and get T1 and T2;

[0052] Figure 4 This is a schematic diagram of the classification processing of the mesh containing hanging points mentioned in Example 1 of the present invention; wherein, according to the number of hanging points contained in the tetrahedral unit, the original unit is classified and processed, and the original unit is divided into a number of tetrahedrons; the hollow points are hanging points, and the solid points are the original nodes of the tetrahedron;

[0053] Figure 5 This is a schematic diagram of boundary fitting of the encrypted points located on the boundary mentioned in Example 1 of the present invention; wherein, boundary fitting is performed on the encrypted points located on the boundary between the fuel rod and the winding wire, and the generated encrypted points are projected onto the boundary line;

[0054] Figure 6 It is a tetrahedron mesh data structure class diagram mentioned in Example 2 of the present invention; wherein, Node type data stores node information, including ID and three-dimensional coordinates; Edge type data stores edge information, including two Node type nodes; Surface type data stores triangle face information, including a Node type vertex list and an Edge type edge list; Tetrahedron type data stores tetrahedron information, including a Node type vertex list, an Edge type edge list and a Surface type face list;

[0055] Figure 7 This is a flow chart of the grid area decomposition mentioned in Embodiment 2 of the present invention;

[0056] Figure 8 This is the global iterative encryption flow chart mentioned in Embodiment 2 of the present invention;

[0057] Fig. 9 This is a flowchart of the local area encryption mentioned in Example 2 of the present invention. DETAILED DESCRIPTION

[0058] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0059] The present invention provides a parallel partition dynamic grid encryption technology for the flow field area of ​​fast reactor fuel assembly. After decomposing the coarse grid model area, each sub-grid is encrypted and optimized in parallel, and the grid partition is dynamically adjusted during the encryption process, and the fit of the fuel rod and the winding position is improved, and finally the quality of the poor quality grid is optimized. The grid model constructed by this method has a high geometric fit of the grids distributed at the fine and complex positions, the density distribution of the grid is more reasonable, there are fewer low-quality grids, and the grid scale meets the user's setting requirements.

[0060] The following is an explanation of a numerical reactor unitized efficient integrated grid generation method proposed in the present invention with reference to a specific example, and the specific contents are as follows.

[0061] Embodiment 1:

[0062] The present invention generates a tetrahedral mesh model with high precision position fitting, reasonable density distribution and less low-quality meshes for the flow field area of ​​fast reactor fuel assembly, thereby proposing a parallel partitioned dynamic mesh encryption and optimization method. Figure 1 As shown, the overall implementation process is as follows:

[0063] Step 1: Construct a tetrahedral coarse grid model for the fast reactor fuel assembly. The coarse grid model is small in scale, poor in geometric adaptability, and unreasonable in density distribution. The required number of processes is calculated based on the set threshold and the number of coarse grid units, and the coarse grid model is regionally decomposed. The subgrids generated by the partitions are assigned to different processes for subsequent parallel processing.

[0064] Step 2: Estimate the number of iterative refinements based on the number of cells in the coarse grid and the target grid size.

[0065] Step 3: For the sub-grids in each process, global encryption is performed according to the number of iterations to quickly achieve coarse grid densification; additional iterative encryption is performed on complex geometric positions such as fuel rods and windings to make the density distribution of the overall component grid more reasonable. Before the next round of grid encryption, it is necessary to determine whether the grid area needs to be decomposed again based on the number of grids in this process to maintain load balance.

[0066] Step 4: After the sub-grid encryption is completed, use the quality optimization tool to evaluate the quality of the encrypted grid and detect and optimize the grid cells with poor quality.

[0067] Step 5: Merge the sub-grids in each process and output the overall grid file in the format required by the solver.

[0068] According to the above process, the dynamic grid encryption and optimization method of parallel partitioning is further divided into three functional modules: grid multi-level regional decomposition, grid encryption, and grid optimization, which specifically include the following contents.

[0069] 1. Grid multi-level regional decomposition module

[0070] First, a threshold is set for the maximum number of tetrahedrons processed by a single process. Before the next round of mesh encryption, the number of tetrahedrons in the current process is re-evaluated. Once the number of tetrahedrons in any single processing process exceeds the threshold, the new number of processes required is calculated, the corresponding number of new processes are automatically allocated, and process groups are constructed to perform the next level of regional decomposition.

[0071] The mesh region decomposition is based on graph theory. First, the volume mesh is converted into a dual graph and stored using standard CSR. Then, the dual graph is partitioned using the multilevel k-way method. Finally, the partition results of the dual graph are mapped back to the mesh.

[0072] The grid multi-level region decomposition method can reasonably allocate and control the number of tetrahedrons processed in the process, maintain load balance, and reduce unnecessary communication overhead, thereby speeding up processing efficiency.

[0073] 2. Mesh Encryption Module

[0074] Mesh encryption is implemented in two parts: global iterative encryption and additional area encryption.

[0075] 1. Global iterative encryption

[0076] The encryption algorithm used in global iterative encryption is a regular encryption algorithm. Regular encryption can maintain the shape regularity of the unit, thereby avoiding or significantly reducing the generation of irregular units and avoiding affecting the quality of the simulation. Figure 2 As shown: First, find the midpoints of each edge and connect them to form 4 tetrahedrons and 1 octahedron; then select the two points with the shortest diagonal in the octahedron and connect them to split the octahedron into 4 tetrahedrons. After a regular encryption, a tetrahedron is decomposed into eight sub-tetrahedrons.

[0077] Global iterative encryption first generates the global index of each edge of the tetrahedral mesh; secondly, regular encryption is performed to calculate the coordinates of the encryption points that need to be inserted into each tetrahedral mesh, and the node information of the newly generated encryption points is added according to the node global index calculation formula; then the encryption points located on the boundary of the fuel rod and the winding are found to perform boundary fitting optimization operations and update the coordinates of the encryption points; then the new tetrahedron information generated by the encryption is added to the list and the original tetrahedron information is deleted; before the next round of mesh encryption, it is necessary to determine whether the mesh area needs to be decomposed again based on the number of meshes in this process; repeat the above steps until the required number of iterations is reached.

[0078] Global iterative encryption can quickly realize the densification of the coarse grid model, reach the target grid size, form a grid model that is basically representative of the flow field area, and provide support for subsequent additional area encryption.

[0079] 2. Additional area encryption

[0080] Additional encryption first requires boundary layer identification of the meshes located near the boundary between the wire and the fuel rod to find the tetrahedral meshes that need additional encryption. The specific method is to give a parameter K (K represents the K-layer meshes closest to the boundary), first find the tetrahedral meshes located on the boundary surface as the first layer of meshes; then find the second layer of meshes connected to the first layer of meshes based on the adjacent relationship of the tetrahedrons, and iterate until the K-th layer of meshes is found; store the meshes from the 1st to the Kth layers as the boundary layer meshes that need additional encryption.

[0081] The additional encryption method used is the longest edge binary encryption method, such as Figure 3 As shown in . This method selects the longest edge in the tetrahedron, calculates the midpoint of the edge, and connects it with the other two unit vertices that are not on this edge, dividing the original tetrahedron unit into two. The longest edge bisection encryption method can avoid generating very thin and long units by dividing the longest edge, and can also maintain the mesh quality well after encryption. Since the longest edge bisection encryption method will produce hanging points, it is necessary to coordinate the encryption processing of the mesh containing hanging points according to the number of hanging points. The processing method is as follows Figure 4 shown.

[0082] After finding the boundary layer grid, the additional area encryption uses the longest edge bisection encryption method to iteratively encrypt the boundary layer grid and calculate the coordinates of the encryption points that need to be inserted; secondly, the encryption points located on the boundary of the winding wire and the fuel rod are found to perform boundary fitting optimization operations and update the coordinates of the encryption points; then the tetrahedrons that share edges with the encryption points are found and stored in the grid list containing the hanging points, and the number of hanging points is recorded, and coordinated encryption processing is performed according to the number of hanging points; then the new tetrahedron information generated by the bisection encryption and coordinated encryption processing is added to the list, and the original tetrahedron information is deleted; before the next round of grid encryption, it is necessary to determine whether the grid area needs to be decomposed again based on the number of grids in this process; repeat the above steps until the required number of iterations is reached.

[0083] Additional area encryption is performed on special geometric structure positions such as fuel rods and winding wires, making the grids in these areas with drastic fluid changes denser and the density distribution of the overall component grid more reasonable.

[0084] 3. Grid Optimization Module

[0085] Mesh optimization is implemented in two parts: boundary fitting optimization and quality optimization.

[0086] 1. Boundary fitting optimization

[0087] In the process of generating new encryption points in the mesh encryption module, the encryption points located on the boundary areas of the fuel rods and windings are fitted and optimized and projected onto the boundary lines, so that the mesh formed after encryption fits the geometric model better and improves the fitting degree of fine positions.

[0088] Specific projection methods such as Figure 5 As shown: First, find out on which fuel rod or winding boundary the encrypted point is located, and calculate the coordinates of the center of the circle to which it belongs; then calculate the distance d between the encrypted point and the center of the circle; finally, calculate the new coordinates of the encrypted point x' = x c +(xx c )*0d,y'=y c +(xx c )*r / d (the z coordinate remains unchanged).

[0089] 2. Quality Optimization

[0090] The quality optimization function in the gmsh library is called to optimize the quality of the encrypted mesh. The specific optimization steps are: first use Mesh.ElementOrder to set the mesh order; then use the parameter Mesh.OptimizeThreshold to set the threshold and optimize the mesh with quality lower than the threshold; then use Mesh.HighOrderOptimize to set the optimization category (0: None, 1: Optimization, 2: Elasticity + Optimization, 3: Elasticity, 4: Fast Bending), and finally perform quality optimization.

[0091] Embodiment 2:

[0092] Based on Example 1, but different in that,

[0093] 1. Grid data structure

[0094] The data structure for storing grid information is as follows: Figure 6 shown.

[0095] 2. Grid region decomposition algorithm

[0096] The algorithm flow is as follows Figure 7 As shown, the specific process is as follows:

[0097] (1) Input the basic segment grid model and the processing threshold th of a single process. Calculate the number of times the encryption is required based on the input grid size M. The estimation formula is:

[0098] (2) For process No. 0, read the coarse grid model, calculate the required number of processes N based on the number of tetrahedrons and the threshold th, and construct a process group G0 for processes No. 0 to N-1;

[0099] (3) Divide the grid into N sub-grids and store the grid division results in epart:

[0100] a) Extract the tetrahedron information contained in each sub-grid based on the segmentation result epart;

[0101] b) Distribute the information of each subgrid to all processes in process group G0, i.e. processes 0 to N-1;

[0102] c) For other processes in process group G0, receive the sub-grid information of the decentralized communication of process 0.

[0103] (4) Each process of process group G0 performs encryption processing on the sub-grid.

[0104] (5) After a round of encryption, it is determined whether the number of tetrahedrons processed by each process exceeds the threshold th. If not, the encryption process continues; if the number of tetrahedrons processed by the i-th process exceeds the threshold th, the next level of domain decomposition is performed:

[0105] a) Calculate the required new number of processes M according to the number of tetrahedrons in the i-th process and the threshold th;

[0106] b) In the i-th process, the mesh is divided into M sub-grids, the mesh division result is stored in epart, and based on the division result epart, the tetrahedron information contained in each sub-grid is decomposed;

[0107] c) Create a new process group G i , the number of processes is M (i.e., process i, size+M-2, size is the number of processes currently in use), and the i-th process is used as the 0th process of the process group to update the communication domain.

[0108] (6) Process No. i distributes the information of each subgrid to process group G i All processes within

[0109] (7) For process group G i All processes except process No. i receive the sub-grid information of process No. 0 in the process group.

[0110] (8) Repeat step (5) until the specified number of encryption iterations is reached.

[0111] Among them: the grid division method adopts the method based on grid unit division, which divides the original grid into sub-grids with a specified number of partitions. The sub-grid partition shape is irregular, but the number of grid units contained in the sub-grid area is roughly equal, which can ensure the load balance of each process.

[0112] 3. Global iterative encryption process

[0113] For each subgrid in each process, the global iterative encryption process is as follows: Figure 8 As shown, the specific steps are as follows:

[0114] (1) Generate local indexes for edges in each subgrid; communicate between processes and update the edge indexes to global indexes;

[0115] (2) Perform regular encryption on each tetrahedron in the subgrid.

[0116] a) Calculate the coordinates of the midpoints on each edge, as well as the index. To reduce the communication during the encryption process, a global node index calculation method V is used idnew =V idmax +E id Among them, V idmax is the maximum index of the node, E id is the global index of the edge to which the point belongs;

[0117] b) Determine whether the encrypted point is located on the boundary of the fuel rod or the winding wire. If it is located on the boundary:

[0118] According to the position of the encrypted edge, determine which fuel rod or winding wire it belongs to, and calculate the coordinates of the center of the circle;

[0119] Calculate the new coordinates of the encrypted points according to the projection formula;

[0120] Update encryption point information;

[0121] c) Update tetrahedron information, add the newly generated tetrahedron to the list, and delete the original tetrahedron;

[0122] (3) Determine whether the number of iterations has been reached. If not, repeat the above process. If reached, end the iterative encryption process and output the encrypted grid to the additional area encryption part.

[0123] After each round of encryption, the number of tetrahedrons becomes 8 times that of the previous round, and densification can be achieved quickly.

[0124] 4. Additional area encryption process

[0125] For the sub-grid after global encryption, the additional regional encryption process is as follows: Fig. 9 As shown, the specific steps are as follows:

[0126] (1) Determine the boundary layer mesh based on the tetrahedron connection relationship;

[0127] (2) performing a longest edge binary encryption operation on the grid cells in the boundary layer grid set;

[0128] a) Add the new grid cells generated during the encryption process to the new boundary layer grid set as the object of the next round of longest edge binary encryption;

[0129] b) adding the grid cells that share the same edge with the encrypted point and are not in the boundary layer grid set to the grid set to be coordinated, and storing the encrypted edge and encrypted point information;

[0130] (3) performing boundary fitting operation on the encrypted points at the boundary between the fuel rod and the winding wire;

[0131] (4) Add the new mesh information generated by encryption to the mesh list and remove the original mesh in the encryption process;

[0132] (5) Through communication between different processes, exchange the encrypted information at the intersection of the grid areas, find out the grid edges that are not jointly encrypted at the interface, and add the relevant grid cells and encrypted point information to the set of grid cells to be coordinated in this process;

[0133] (6) For the grid cells in the grid set to be coordinated, the coordination process is carried out according to the number of their suspension points, and the new grid entity information generated during the processing is added to the grid list, and the original grid entity replaced during the encryption process is removed;

[0134] (7) Before the next round of encryption, determine whether the next level of regional decomposition is needed based on the number of tetrahedrons in the current process and the threshold th;

[0135] (8) Repeat steps (2) to (7) until the predetermined number of additional area iterative encryption times is reached.

[0136] 5. Optimize mesh quality

[0137] The volume-to-edge ratio is selected as the mesh quality metric and is calculated as follows:

[0138]

[0139] Where V represents the volume of the tetrahedron, l rms represents the root mean square of the tetrahedron edges, which can be expressed as

[0140]

[0141] When the mesh is a regular tetrahedron, Q VL Get the maximum value

[0142] The volume-to-edge ratio can detect various low-quality tetrahedral elements and is relatively simple to calculate.

[0143] In summary, the present invention proposes a parallel partitioned dynamic mesh encryption optimization method and system for reactor flow field simulation. The proposed multi-level regional decomposition strategy effectively allocates and controls the number of tetrahedrons processed in a single process to maintain load balance, and parallel processing ensures the efficiency of encryption optimization; at the same time, through the two-stage mesh iterative encryption strategy of global iterative encryption and additional regional encryption, while quickly realizing mesh densification, specific local encryption is implemented on the fuel rod and wire winding areas, so that the mesh density distribution is more reasonable; especially for the special geometric structure of fuel rods and wire windings, boundary fitting processing is performed when creating encryption points, and the encryption points are projected onto the geometric boundary, which can more accurately simulate the complex shape of the fuel assembly; and the generated mesh is quality evaluated and optimized to reduce the number of low-quality meshes.

[0144] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A parallel partitioned dynamic grid encryption optimization method for reactor flow field simulation, characterized in that: The following steps are involved: S1. Construct a tetrahedral coarse grid model for the fast reactor fuel assembly, calculate the required number of processes according to the set threshold and the number of coarse grid units, perform regional decomposition on the constructed coarse grid model, and assign the subgrids generated by the partitions to different processes for subsequent parallel processing; S2, estimate the number of iterative refinement according to the number of coarse grid cells and the target grid size; S3, for each subgrid in each process, global encryption is performed according to the number of iterations to quickly achieve coarse grid densification; S4. After the sub-grid encryption is completed, the quality of the encrypted grid is evaluated using a quality optimization tool to detect and optimize the grid cells with poor quality. S5. Merge the subgrids in each process and output the overall grid file in the format required by the solver.

2. A method for generating a numerical reactor unitized efficient integrated grid according to claim 1, characterized in that: When encrypting complex geometric locations, additional iterative encryption is performed to make the density distribution of the overall component network more reasonable; before the next round of network encryption, it is determined whether the grid area needs to be decomposed again to maintain load balance based on the number of networks in this process.

3. A parallel partitioned dynamic grid encryption optimization system for reactor flow field simulation constructed according to any one of the methods described in claims 1-2, characterized in that: It includes grid multi-level regional decomposition module, grid encryption module and grid optimization module; The grid multi-level region decomposition module is used to allocate and control the number of tetrahedrons processed in the process, maintain load balance, and improve processing efficiency; The grid encryption module includes a global iterative encryption submodule and an additional area encryption submodule; the global iterative encryption submodule is used to realize the densification of the coarse grid model, reach the target grid scale, form a grid model that is basically representative of the flow field area, and provide support for subsequent additional area encryption; the additional area encryption submodule is used to perform additional encryption on the position of the complex geometric structure, so that the grid in the area where the fluid changes violently is denser, and the density distribution of the overall component grid is more reasonable; The grid optimization module includes a boundary fitting optimization submodule and a quality optimization submodule; the boundary fitting optimization submodule is used to perform fitting optimization on the encrypted points on the boundary area; the quality optimization submodule is used to perform quality optimization on the encrypted grid.

4. The parallel partitioned dynamic grid encryption optimization system for reactor flow field simulation according to claim 3 is characterized in that: The grid multi-level region decomposition module performs decomposition based on graph theory, and the specific execution process is as follows: A1. Convert the volume mesh into a dual graph and store it using standard CSR. A2. Use the multilevelk-way method to partition the dual graph; A3. Map the partition result of the dual graph back to a grid.

5. The parallel partitioned dynamic grid encryption optimization system for reactor flow field simulation according to claim 3, characterized in that: The global iterative encryption submodule implements encryption based on the regular encryption method, and the specific execution process is as follows: B1. Generate global indexes for each edge of the tetrahedral mesh; B2. Perform regular encryption, calculate the coordinates of the encryption points inserted into each tetrahedral mesh, and add the node information of the newly generated encryption points according to the node global index calculation formula; B3, find the encrypted points on the boundary between the fuel rod and the winding wire, perform boundary fitting optimization operation, and update the coordinates of the encrypted points; B4, add the new tetrahedron information generated by encryption to the list and delete the original tetrahedron information; B5. Before the next round of mesh encryption, determine whether it is necessary to perform mesh region decomposition again based on the number of meshes in this process; B6. Repeat the operations described in B1 to B5 until the required number of iterations is reached.

6. The parallel partitioned dynamic grid encryption optimization system for reactor flow field simulation according to claim 3, characterized in that: The additional area encryption submodule implements encryption based on the longest edge binary encryption method, and the specific execution process is as follows: C1. Perform boundary layer identification on the meshes near the boundary between the wire winding and the fuel rod to find additionally encrypted tetrahedral meshes; C2. After finding the boundary layer network, use the longest edge binary encryption method to iteratively encrypt the boundary layer network and calculate the coordinates of the inserted encryption points; C3, find the encrypted points on the boundary between the wire winding and the fuel rod, perform boundary fitting optimization operation, and update the coordinates of the encrypted points; C4. Find the tetrahedron that shares the same edge with the encrypted point, store it in the grid list containing the hanging points, record the number of hanging points, and perform coordinated encryption processing according to the number of hanging points; C5, adding the new tetrahedron information generated by binary encryption and coordinated encryption processing to the list, and deleting the original tetrahedron information; C6. Before the next round of mesh encryption, determine whether to perform mesh region decomposition again based on the number of meshes in this process; C7. Repeat the operations described in C1 to C6 until the required number of iterations is reached.

7. The parallel partitioned dynamic grid encryption optimization system for reactor flow field simulation according to claim 5 or 6, characterized in that: The boundary fitting optimization operation is implemented by the boundary fitting optimization submodule. During the fitting optimization process, the encrypted points located on the boundary area of ​​the fuel rod and the winding wire are projected onto the boundary line to improve the fitting degree of the fine position. The projection operation specifically includes the following contents: D1. Find out on which fuel rod or winding boundary the encrypted point is located, and calculate the coordinates of the center of the circle to which it belongs; D2. Calculate the distance between the encrypted point and the center of the circle; D3. Calculate the new coordinates of the encrypted points.

8. The parallel partitioned dynamic grid encryption optimization system for reactor flow field simulation according to claim 3, characterized in that: The quality optimization submodule optimizes the quality of the encrypted mesh by calling the quality optimization function in the gmsh library. The specific execution process is as follows: E1. Use Mesh.ElementOrder to set the mesh order; E2. Use the parameter Mesh.OptimizeThreshold to set a threshold and optimize the meshes whose quality is lower than the threshold. E3. Use Mesh.HighOrderOptimize to set the optimization category; E4. Complete quality optimization.

Citation Information

Patent Citations

  • Tetrahedral mesh generation method and device for three-dimensional solid model

    CN104063903A

  • Large-scale parallel mesh generation system and method for finite element analysis

    CN111125949A

  • Grid generation method, device and equipment suitable for fatigue crack propagation analysis of complex welding structure

    CN115795971A

  • Parallel constraint tetrahedral mesh optimization method based on lock-free atom operation

    CN117786912A

  • Boundary layer mesh generation method based on anisotropic volume harmonic field

    US20220414282A1

Cited By

  • Unstructured grid combination method and device based on boundary merging

    CN118966138A

  • Parallelization finite element mesh sewing method for reactor unit assembly flow channel

    CN119475875A

  • A parallel finite element mesh stitching method for flow channels of reactor unit components

    CN119475875B

  • Hall thruster discharge chamber structure simulation optimization method based on finite element analysis

    CN120354679A

  • Simulation and optimization method of discharge chamber structure of Hall thruster based on finite element analysis

    CN120354679B