Numerical reactor unitization efficient integrated grid generation method and system
By splitting the nuclear reactor core into basic units and performing mesh division and parallel copy translation, the problem of complexity and low efficiency in constructing the core flow field grid model in the existing technology is solved, and a high-quality, low-dependency model is achieved. The reliable and efficient mesh model generation provides the basis for high-fidelity simulation of nuclear reactors.
Patent Information
- Application Number
- CN202410657266.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has problems such as high complexity, strong user dependence, difficulty in optimizing grid quality, low computational efficiency, and large memory consumption when constructing a nuclear reactor core flow field grid model. It is difficult to generate high-resolution and reasonably distributed grids. lattice model.
Based on the isomorphic structural characteristics of the reactor core, the reactor core system is split into the smallest basic units for rapid grid division, and a flow field grid model of the entire core or any position is generated through parallel copying, translation and merging, using a 4-stage Process: Coarse grid model screening, refinement and optimization, basic unit grid construction and copy translation merging, designing a unitized and efficient integrated grid generation system for numerical reactors.
It achieves high robustness, low user dependence, simplifies the grid model construction process, generates high-quality, reasonably distributed grid models, improves the core flow field meshing efficiency and memory consumption, and alleviates the problem of large-scale grids. Model generation and storage of pressures to support high-fidelity thermal-hydraulic simulations.
Smart Images

Figure CN118607294A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of finite element mesh technology, and in particular to a numerical reactor unitized efficient integrated mesh generation method and system. Background Art
[0002] Thermal-hydraulic analysis in reactor engineering is crucial to studying various operating behaviors inside nuclear reactors and is the basis for safe and economical operation of nuclear reactors. In order to achieve effective cooling, power increase and life extension of the reactor core, it is extremely necessary to have a deep understanding of the thermal-hydraulic characteristics mechanism and its evolution law of the core. At present, the analysis of thermal hydraulic characteristics mainly relies on subchannel (such as "Yang BW, Ninokata H, Long J, et al. Subchannel analysis-Current practice and development for the future [J]. Nuclear Engineering and Design, 2021, 385: 111477. DOI: 10.1016 / j.nucengdes.2021.111477.") and computational fluid dynamics (CFD) (such as "Andersson B, Campobasso MS. Computational Fluid Dynamics for Engineers [J]. Aeronautical Journal, 2014, 118 (1208): 1215-1216.") methods. Among them, large-scale analysis and calculation based on subchannels is difficult to accurately capture the changes in the temperature, velocity, pressure and other thermal hydraulic characteristics of the coolant under the influence of the precise and complex core characteristic structure. Compared with large-scale calculations of sub-channels, CFD calculations can accurately capture the complex three-dimensional flow and heat transfer characteristics of the coolant in the reactor in a fine-grained manner (as described in "Kutuk BGI H. Computational fluid dynamics analyses of aVV ER-1200nuclear reactor vessel for symmetric inlet, asymmetric inlet, and LOCA conditions [J]. International Journal of Pressure Vessels and Piping, 2020, 187 (1): 104-165."). However, in CFD calculations based on high-precision meshing of complex flow field areas, the meshing process is extremely complex and is the most time-consuming and labor-intensive step in the entire calculation process. The work related to meshing can even account for 70% to 80% of the entire simulation workload.In addition, the grid type, scale, quality, distribution, etc. of the constructed grid model are closely related to the subsequent solution of partial differential equations, and different grid division methods will have a great impact on the scale, efficiency and accuracy of numerical simulation calculations, and are key factors in determining whether the numerical calculations are accurate or even convergent (such as "Methods for Grid Generation in CFD Simulations, CADENCE, SYSTEM ANALYSIS, https: / / resources.system-analysis.cadence.com / blog." and "Chen X, Peng D, Gao S. SVM-based topological optimization of tetrahedral meshes [C]. In Proceedings of the 21st International Meshing Roundtable (IMR), 2013, 211-224.").
[0003] At present, the construction of core fluid domain mesh models for nuclear reactors basically relies on commercial meshing tools, such as Ansys ICEM, Ansys Fluent Meshing, Gmsh, Csimsoft Trelis, etc. However, due to the geometric complexity, dimensional precision, large scale and high-fidelity numerical calculation requirements of the core structure, it is very challenging to use commercial tools to generate high-resolution fine mesh models for the core flow field.1) First, the geometric modeling and meshing of commercial tools are two decoupled processes with strong user dependence, and the construction process of the geometric and mesh models for the entire reactor core is very complicated. 2) Secondly, the meshing process based on commercial software requires many parameter settings, and it is difficult for users to control the parameter range. It is very easy for the mesh model to fail to be generated due to inappropriate parameter settings, or for the model to have erroneous meshes. 3) In addition, after the mesh model is generated, a lot of user interaction is generally still required to fine-tune the mesh to meet user needs, but the meshing process is very fragile, and a small adjustment to a certain parameter can easily lead to the failure of the entire mesh model generation process (such as "Jain R, Tautges T.RGG: Reactor geometry (and mesh) generator [C]. In Proceedings of the International Congress on Advances in Nuclear Power Plants, 2012."). 4) There are many low-quality meshes in the generated mesh model, and it is difficult to maintain boundary characteristics when optimizing the mesh quality. The mesh density distribution is unreasonable and does not consider the flow field characteristics. The fitting effect of fine positions is poor (such as "Escobar JM, Montenegro R, Montero G, et al. González-Yuste, Smoothing and local refinement techniques for improving tetrahedral mesh quality [J]. Computers Structures, 2005, 83 (28-30): 2423-2430. "); 5) The scale of the full core grid is very large, and the meshing method of commercial tools requires a lot of memory and execution time, and poses huge challenges to the main solver calculation (such as "Lu X, Li Y, Chen D, et al. Challenges of high-fidelity virtual reactor for exascale computing and research progress of China Virtual Reactor [J]. Nuclear Engineering and Design, 2023, 413: 112566. "); 6) Commercial tools only generate an overall grid file for the grid model, which is inefficient, requires a lot of computing memory and IO consumption, and is prone to failure to successfully generate grid files due to memory limitations, as well as visualization difficulties. In view of this, the present invention proposes a numerical reactor unitized efficient integrated grid generation method and system. Summary of the invention
[0004] The purpose of the present invention is to provide a numerical reactor unitized efficient integrated grid generation method and system to solve the problems raised in the background technology. Based on the isomorphic structural characteristics of the core, the present invention splits the complex and large core system into repeatable minimum basic units, quickly meshes the basic units, and replicates and translates the gridded basic units in parallel to merge them into a flow field grid model of the entire core or any core position.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A numerical reactor unitized efficient integrated grid generation method is provided. Based on the isomorphic structural characteristics of the core, the complex and huge core system is split into the smallest basic units, the basic units are gridded, the gridded basic units are copied and translated in parallel, and merged into a flow field network model of the entire core or any core position. The method specifically includes the following steps:
[0007] S1. Coarse grid model screening: Screen the coarse grid models related to the basic unit from the pre-built network model library;
[0008] S2, coarse grid model refinement and optimization calculation: perform parallel refinement, boundary fitting optimization, and grid quality optimization operations on the coarse grid model selected in S1, and construct the coarse grid model into a high-quality grid model, that is, the grid scale and grid quality meet the requirements, the grid distribution is reasonable, and the grid that precisely replicates the boundary position has a high fit;
[0009] S3, basic unit grid model construction: construct a basic unit grid model that meets the merging requirements based on the high-quality grid model output in S2;
[0010] S4. Copy, translate and merge to generate target grid model: Based on the basic unit grid model file at the initial position constructed in S3, large-scale parallel copy and translation calculations are performed to generate the required target grid model file.
[0011] Preferably, the type and quantity of the coarse grid models screened in S1 are related to the type of the target network model finally generated, specifically:
[0012] 1) If the target grid model is a full core flow field grid model or a full core component flow field grid model, the types and quantities of the coarse grid models are the types and quantities of all components contained in the core;
[0013] 2) If the target grid model is a full core gap flow field grid model, the type and number of the coarse grid model are the type and number of gap units contained in the core;
[0014] 3) If the target grid model is the flow field grid model of a component, flow channel or gap unit at any core position, the type and number of coarse grid models are both 1.
[0015] Preferably, the geometric structure of the coarse grid model is extremely similar to the corresponding basic unit, which is a part of the basic unit geometry, and there is only a slight deviation in the axial range between the two, and the other geometric dimensions are exactly the same. The coarse grid model has the advantages of high construction efficiency, low storage requirements and maintaining the geometric boundary.
[0016] Preferably, the basic unit grid model constructed in S3 is related to the type of the target network model, specifically:
[0017] 1) If the target grid model is a full core flow field grid model, the basic unit grid model is composed of various types of components contained in the core and various types of gap basic units constructed based on the component basic units;
[0018] 2) If the target grid model is the flow field grid model of the entire core assembly, the basic unit grid model corresponds one-to-one to each type of assembly contained in the core;
[0019] 3) If the target grid model is a full core gap flow field grid model, the basic unit grid model corresponds one-to-one to each type of gap unit contained in the core;
[0020] 4) If the target grid model is a flow field grid model of a component, flow channel or gap unit at any core position, the basic unit grid model corresponds one-to-one to a specific type of component, flow channel or gap unit in the core.
[0021] Preferably, the basic unit grid models are all located at the initial position of the core. When constructing the basic unit grid model, the components and gaps of the entire core are designed with layered numbering, and initial position numbers are assigned to various types of components, flow channels, and gaps in the core.
[0022] Preferably, the large-scale parallel replication of translation calculations described in S4 is implemented based on the designed translation parameter files, and the translation parameter files include "component translation parameter files", "gap translation parameter files" and "flow channel translation parameter files". The design of the above files can greatly accelerate the construction of the target grid model.
[0023] A numerical reactor unitized efficient integrated grid generation system, including the following contents:
[0024] User parameter input module: the user inputs various control parameters for generating the target grid model through this module; the control parameters include reactor type parameters, fluid configuration parameters, core position parameters, grid-related parameters and grid file-related parameters;
[0025] Target grid model generation module: generates a customized target grid model for the user based on the operation in S4 and the control parameters input by the user;
[0026] Network model analysis module: Based on the quality evaluation standard specified by the user, it calculates the total mesh volume "totaMesh" and the total mesh node volume "totaNode" of the target mesh model, the worst mesh quality "minQua", the average mesh quality "aveQua", the maximum mesh quality "maxQua" and the mesh quality distribution in the mesh model, which are specifically divided into 4 quality intervals: [0, 0.25), [0.25, 0.5), [0.5, 0.75), [0.75, 1], and counts the proportion of meshes in each quality interval in the target mesh model;
[0027] Mesh quality optimization module: according to the user input "global" or "local", the maximum number of iterations of optimization calculation "maxCount" and the quality threshold "qualiThreshold" parameters, the mesh quality optimization module performs global or local mesh quality optimization calculation for the mesh model uploaded by the user; after the optimization calculation is completed, the mesh quality optimization module automatically calls the quality analysis program of the "mesh model analysis module" to display the quality of the optimized model, and further displays the improved total mesh quality value to the user;
[0028] Mesh file generation module: generates a global or local mesh file of a specific file type of the target mesh model for the user to choose to download based on the file type "fileType", file number "flieNumber" and file merge "IsMerge" parameters input by the user;
[0029] Model visualization module: visualizes the local or global grid model of the flow field at a specific core position selected by the user;
[0030] Grid integrated function library module: It integrates various data structure representations of complex networks and various complex grid-oriented operation functions, providing the basis and support for efficient calculations of other modules;
[0031] Network model library module: The network model library module is a data management center that stores initial coarse grid models related to various types of components, flow channels, and gap units associated with various types of reactors.
[0032] Compared with the prior art, the present invention provides a method and system for generating a numerical reactor unitized efficient integrated grid, which has the following beneficial effects:
[0033] (1) The present invention designs a novel meshing concept that is completely different from the widely used commercial modeling methods for nuclear reactors, and concretizes it into an executable 4-stage process. Based on the 4-stage process, a meshing system is further designed. The present invention has high robustness and scalability, low user dependence, avoids user geometric modeling, and greatly simplifies the mesh model construction process, which can realize customized mesh model construction for high-fidelity simulation calculations of the core.
[0034] (2) The quality optimization strategy proposed in the present invention can achieve global or local mesh quality optimization for large-scale mesh models. Combined with the refinement of the mesh model and the fitting optimization calculation for complex geometric boundaries, a high-resolution mesh model that meets the user's mesh scale and quality requirements can be constructed. The large-scale parallel massive mesh (file) generation strategy can greatly improve the meshing efficiency and memory consumption of large-scale core flow fields. It can achieve high-efficiency, high-quality mesh model construction for the flow field of the entire core or any core position, providing a basis for the efficient calculation of high-fidelity thermal and hydraulic simulation of the core.
[0035] (3) The collaborative characterization method of continuous multiple local small grid files designed for the target grid model of the present invention is beneficial to the parallel generation of grid models, effectively alleviating the generation and storage pressure of large-scale grid model files, further alleviating the challenges brought by large-scale grid models to regional decomposition and main solution calculations, and effectively making up for the disadvantage of difficult data loading during large-scale grid visualization. In addition, the geometric unit segmentation of the whole core flow field, the whole core layer numbering, the translation parameter file design, the grid file numbering mode design, and the database design further ensure the high-performance construction and management of the core grid model. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the process of the numerical reactor unitized efficient integrated grid generation method mentioned in Example 1 of the present invention;
[0037] Figure 2 It is a schematic diagram of the overall structure of the numerical reactor unitized efficient integrated grid generation system mentioned in Example 1 of the present invention;
[0038] Figure 3 This is a schematic diagram of the calculation process mentioned in Example 1 of the present invention;
[0039] Figure 4 This is a schematic diagram of the implementation architecture of the numerical reactor unitized efficient integrated grid generation system mentioned in Example 1 of the present invention;
[0040] Figure 5Schematic diagram of the geometrical segmentation design of components, gaps and flow channels in a nuclear reactor mentioned in Example 1 of the present invention, wherein (a) is a schematic diagram of the segmentation of the core component structure; (b), (c) and (d) are schematic diagrams of the segmentation of the gaps between core components; (e) is a schematic diagram of the segmentation of the flow channels in the components;
[0041] Figure 6 It is a schematic diagram of hierarchical numbering design of components, gaps, and flow channels in a nuclear reactor mentioned in Example 1 of the present invention;
[0042] Figure 7 A schematic diagram of the parameter logic relationship of the system user parameter setting function module mentioned in Example 1 of the present invention;
[0043] Figure 8 The basic unit grid model constructed for the CEFR fuel assembly based on the mismatched stitching calculation mentioned in Example 1 of the present invention;
[0044] Fig. 9 This is a schematic diagram of the system service flow of the system file downloading function module mentioned in Example 1 of the present invention. DETAILED DESCRIPTION
[0045] 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.
[0046] The present invention provides a numerical reactor unitized efficient integrated grid generation method and system, the basic idea of which is: based on the isomorphic structural characteristics of the core, the complex and large core system is split into repeatable minimum basic units, the basic units are quickly gridded, and the gridded basic units are copied and translated in parallel to merge into a flow field grid model of the whole core or any core position. The goal of the present invention is to automatically generate a set of high-quality target (flow channel or component or whole core) grid models located at a specific core position, with reasonable density distribution, and meeting the user's grid quality, grid scale, and file setting requirements according to the control parameters input by the user.
[0047] 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.
[0048] Embodiment 1:
[0049] A method and system for efficiently generating integrated grids for numerical reactor units. The calculation process of building a customized target grid model based on this method and system is as follows: Figure 3 The specific implementation architecture is shown in Figure 4As shown, data transmission and system functions can be realized through the effective interactive connection shown in the system architecture.
[0050] In order to ensure the successful implementation of this method and system, the geometric unit segmentation, full core layer numbering, translation parameter file design, and grid file numbering mode design for the full core flow field were first carried out. Figure 1 , specifically including the following:
[0051] 1) Full core geometric unit segmentation scheme:
[0052] Any type of nuclear reactor contains a specific type of component structure, and the number, arrangement and core location of each type of component are fixed. Among them, most components are hexagonal outer sleeve structures of the same size and are arranged in a honeycomb shape inside the core. In the core, there are 6 components of the same size distributed around the hexagonal component, and there are narrow gaps between the components. The core flow field is composed of the flow field inside the component and the flow field in the narrow gaps between the components, such as the CEFR fast reactor.
[0053] For component structures, such as Figure 5 As shown in (a), along the axial direction (Z-axis direction), it is divided into repeatable minimum basic units, and the minimum basic units obtained by cutting the CEFR fuel assembly with the wire winding pitch are unit1 and unit2.
[0054] The gaps between components have interconnected, irregular and complex characteristics in a way that adapts to the components, e.g. Figure 5 As shown in (b), (c) and (d), the flow field between components can be cut into the geometric shapes of triangular prisms and rectangular parallelepipeds, and the triangular prisms and rectangular parallelepipeds can be cut into basic units unit1 and unit2 in a shape that adapts to the basic unit of the component.
[0055] The flow channel is a rectangular liquid channel that wraps the fuel rod in the assembly. The cutting of the flow channel adapts to the cutting method of the assembly, so the minimum basic unit corresponding to the assembly can be obtained, such as Figure 5 As shown in (e), the smallest basic units of the flow channel in the fuel assembly are similar assemblies, namely unit 1 and unit 2.
[0056] 2) Whole core layer numbering scheme:
[0057] The components, gaps and flow channels in the core are numbered in layers. The numbering methods for the three structures are similar. Only the component numbering method is given here (the numbering results are shown in Figure 6 (a)), the results of the numbering of the flow channels in the components and the gaps around the components are not repeated. Figure 6(b) and (c) show the numbering results of the gap units around the components and the layered numbering results of the flow channels in the components. After the numbering is completed, the initial positions of the components, gap units, and flow channels in the core will be assigned according to the numbering results. Specifically, the layered numbering method of the components in the core is as follows:
[0058] Taking the hexagonal center of the innermost component of the core as the coordinate origin, the component through which the positive X axis passes is the starting position of the component numbering of each layer and numbered in reverse order;
[0059] The number of components at layer 0 is 1, and the components at layer 0 are numbered 0-0;
[0060] The number of components in the i-th layer is (i+1)×6-6, then the components in the i-th layer are numbered i-1, i-2, ..., ii×6 (i>0);
[0061] Number ij (1≤j≤ii×6); where i refers to the layer number and j refers to the jth component in reverse order, i.e., ij refers to the jth component in the i-th layer of the core;
[0062] 3) Translation parameter file design scheme:
[0063] The translation parameter files include components, gaps, and runners. Any type of translation parameter file records the X and Y translation values from the initial position to the non-initial position of the same type. The three types of translation parameter files are designed similarly. Here we take the component translation parameter file as an example. The component translation parameter file is constructed from multiple parts, and the specific design is as follows:
[0064] The first part records the type of stack, the total number of components, and the total number of component types in turn;
[0065] Each line in the second part first contains a keyword that records the component type, followed by the total number of components of this type and the initial position number set for them.
[0066] Then it includes M parts (M is the number of core component layers), each part records the information of the core components from the inside to the outside in turn. Specifically,
[0067] The first line of each part: first is a keyword recording the number of layers, followed by a value recording the total number of components in this layer and a value recording the number of types of components in this layer;
[0068] Each subsequent line: first is a keyword that records the component number of this layer; then the value corresponding to the keyword includes 3 values, the X and Y direction translation values required to translate the initial position to the position of this number, and a value that records the type of the component of this number.
[0069] 4) Grid file numbering design:
[0070] Including local and global file naming formats, as follows:
[0071] Local file naming: MNk-gap / ase / chan.xx, the kth local grid file corresponding to the component model at the core MN gap / assembly / flow channel position;
[0072] Global file naming: MN-gap / ase / chan.xx, the overall mesh model file corresponding to the components at the core MN gap / component / flow channel position.
[0073] With the support of the above design, a numerical reactor unitized efficient integrated grid generation is further designed. The specific implementation of each functional module in the system is as follows:
[0074] Functional module 1. User parameter input: The user inputs the control parameters that describe the target grid model, including: reactor parameters, fluid configuration parameters, core position parameters, grid-related parameters, and grid file-related parameters. The user sets the parameters in each functional interface of the system front end. The logical relationship of the parameters in this functional module is as follows: Figure 7 shown.
[0075] a. Reactor type parameters, i.e., nuclear reactor type, with different keywords representing different reactor types, such as "cefr" for Chinese Experimental Fast Reactor CEFR, "vhtr" for Very High Temperature Gas-Cooled Reactor VHTR, and "lfr" for Lead-Cooled Fast Reactor LFR;
[0076] b. Fluid configuration parameters, i.e., flow field parameters within a specified reactor type, include two categories: "full" and "non-full". "Full" specifically includes "full-fluid", indicating that the user wants to generate a flow field mesh model for the entire core, "full-ase", indicating the flow field for the entire core assembly, and "full-gap", indicating the flow field for the entire core gap; "non-full" includes "ase", indicating that the user wants to generate a component flow field mesh model for a specific core position, "gap", indicating the gap flow field for a specific core position, and "channel", indicating that the user wants to construct a flow channel mesh model for a specific core position;
[0077] c. Core position parameters. When the user selects "non-full", the core position parameters of specific components, gaps or channels need to be entered. Here, a hierarchical position numbering method is used to assign unique position numbers to each component, gap, and channel in the core;
[0078] d. Mesh-related parameters include control parameters corresponding to mesh model generation, mesh quality optimization, and mesh model analysis. The control parameters for mesh model generation also include the mesh scale parameter "meshNum" and the boundary layer parameter "boundLayer"; the control parameters for mesh quality optimization include the optimization type parameters "global" and "local", which represent the global optimization and local optimization modes respectively, "maxCount" represents the maximum number of iterations of the optimization calculation, and "qualiThreshold" represents the quality threshold for terminating the quality iteration optimization calculation in advance; the mesh model analysis control parameter "meshQuality" represents the quality metric of the model analysis calculation, including widely used quality metrics such as "AspectRatio", "Collapse", and "EquiAngleSkew" for users to choose from.
[0079] e. Parameters related to mesh files include "fileType" to indicate the mesh file type, including widely used mesh file types such as ".msh", ".exo", and ".inp"; the number of mesh files "flieNumber", which can control the number of mesh files generated for the target mesh model; the file merging parameter "IsMerge", the default value is "no", which means that the user generates flieNumber continuous small mesh files to jointly characterize the target mesh model. If the user selects "yes", these continuous small mesh files will be merged into an overall mesh file of the target mesh model. Users can choose to download local or global mesh files of the target mesh model by entering the file number. A set of mesh file naming rules for different fluid configurations is specifically designed here.
[0080] Functional module 2. Target grid model generation: The following four-stage process is used to generate a target grid model customized with user parameters.
[0081] Stage 1. Coarse grid model screening: According to the reactor type, fluid configuration and core position parameters input by the user, the coarse grid model related to the basic unit is screened from the pre-built grid model library. The specific operations are as follows:
[0082] a. First, determine the type and number of coarse grid models related to the basic unit through the pile parameters and fluid configuration parameters;
[0083] b. Then locate the heap type form in the database according to the heap type parameters, and further locate the relevant coarse grid model form from the heap type form;
[0084] c. Then further locate the required target form according to the fluid configuration parameters from the coarse grid model form:
[0085] c1. If the fluid configuration parameter is full—>full-fluid or full—>full-ase, indicating that the user wants to generate a grid model of the full core flow field or the full core component flow field, then the target form is the component form, and all associated coarse grid models are located according to the storage addresses of the coarse grid models related to each type of component recorded in the form;
[0086] c2. If the fluid configuration parameter is full—>full-gap, indicating that the user wants to generate a full-core gap flow field grid model, the target form is the gap form, and all associated coarse grid models are located according to the storage addresses of the coarse grid models related to each type of gap recorded in the form;
[0087] c3. If the fluid configuration parameter is non-full—>ase, it means that the user wants to generate a component flow field grid model at a specific core position. The component type is determined according to the core position parameter, and the storage address of the coarse grid model related to the component of this type is searched from the component form to locate the associated coarse grid model;
[0088] c4. If the fluid configuration parameter is non-full—>gap, it means that the user wants to generate a gap flow field grid model at a specific core position. The gap type is determined according to the core position parameter, and the storage address of the coarse grid model related to the gap of this type is searched from the gap table to locate the associated coarse grid model;
[0089] c5. If the fluid configuration parameter is non-full—>channel, it means that the user wants to generate a flow channel mesh model at a specific core position. The flow channel type is determined according to the core position parameter, and the storage address of the coarse mesh model related to the flow channel of this type is searched from the component form to locate the associated coarse mesh model;
[0090] Stage 2. Refinement and optimization calculation of coarse grid model: Perform refinement and optimization calculation of coarse grid model according to the grid scale parameters and boundary layer parameters input by the user. The optimization calculation includes boundary fitting optimization calculation and quality optimization calculation. The specific operation process is as follows:
[0091] a. First, refine the coarse grid model so that the model grid volume reaches the preset parameter value, specifically using a parallel iterative refinement method.
[0092] a1. First, decompose the coarse grid model into k continuous local small regions {reg1,reg2,...,regk};
[0093] a2. Identify the grids {S1, S2, S3, ...., Sk} in each local small area, where each set corresponds to a small area, in which all grid cells in the small area are stored;
[0094] a3. Perform task allocation, that is, assign each collection to a CPU process, which performs parallel refinement calculations on the grids in the collection;
[0095] a4. Any process pi traverses the grid mi in the set Si, subdivides the grid mi into a specified number of sub-grid units {mi1,mi2,...miw} and stores these w units in place of mi in the set Si;
[0096] a5. When all processes are completed, the total amount of grid statistics is calculated. If the preset threshold is reached, step a6 is executed, otherwise step a7 is executed;
[0097] a6. End the calculation of each CPU process, collect the small area grids held by each process, and merge them into an overall refined grid model;
[0098] a7. Repeat the mesh refinement calculation of step a4;
[0099] b. Further identify and refine the boundary layer parameters to obtain the boundary grid of the grid model, and perform fitting optimization calculations on the boundary grid, specifically identifying the grid points outside the boundary and moving the grid points to the projection position closest to the boundary.
[0100] c. Perform mesh quality optimization on the refined and optimized mesh model. This step adopts the global quality optimization strategy by default. For specific implementation steps, see the global optimization calculation process of "Function Module 4".
[0101] Based on the above refinement and optimization calculations, the coarse grid model can be constructed into a high-quality grid model, that is, the grid scale and grid quality meet the requirements, the grid distribution is reasonable, and the grid with precise replication of the boundary position has a high fit. However, the grid model constructed in this way does not meet the merging requirements, and it is necessary to perform the adjustment calculation of stage 3 to obtain a basic unit grid model that meets the requirements.
[0102] Stage 3. Construction of basic unit grid model: Construct a basic unit grid model that meets the merging requirements based on the high-quality grid model output from stage 2. According to different fluid configuration parameters, the types and quantities of basic units are different, including three categories, namely component basic units, gap basic units, and flow channel basic units. They are all constructed by stitching calculations of basic mismatched surface grids. The mismatched surface grids may be obtained based on the bottom and top surfaces of the stage 2 output model, or based on the parallel sidewall surfaces of the stage 2 output model, depending on different fluid configurations. The specific stitching calculation process is as follows:
[0103] a. Obtain the surface grids of the parallel unmatched stitched surfaces to form a set S1, and identify the grid points on the boundary lines of the two stitched surfaces to form sets N1 and N2;
[0104] b. Connect the grid points in N1 and N2 to construct the boundary wall grid, and obtain the set S2. These triangles are called active triangles. In addition, in addition to the face grid in S1, the triangles that belong to only one tetrahedral grid are also active triangles.
[0105] c. Traverse each triangle in set S2 and locate a legal grid point in S1 that can form a tetrahedron. If the newly constructed tetrahedron does not collide with any existing tetrahedron, the grid point is a legal node;
[0106] d. If there are multiple legal grid points, select the grid point with the largest tetrahedron quality and the current triangle to construct the tetrahedron mesh;
[0107] e. If there is no legal node, calculate an optimal node for this triangle from the parallel space of the two stitched surfaces and construct a tetrahedral mesh with the current triangle;
[0108] f. When all triangles in S2 are traversed, S2 is cleared;
[0109] g. If there are active triangles in the current model, identify these triangles and store them in set S2, and continue to execute step h, otherwise execute step i;
[0110] h. Repeat steps c to g;
[0111] i. Combine the mesh model obtained by stitching calculation with the model output from stage 2 into a mesh model of the basic unit and end the calculation.
[0112] like Figure 8 The basic unit grid model constructed for the CEFR fuel assembly based on the above process is shown.
[0113] Stage 4. Copy, translate and merge into the target grid model: Based on the constructed basic unit grid model file at the initial position, perform large-scale parallel copy and translation calculations to generate the required target grid model file.
[0114] If the target mesh model is a component / gap / channel mesh model at a specific core position, the following calculation process is performed:
[0115] a1. Get the grid files {f1, f2, ..., fm} of the basic unit, and start m processes {p1, p2, ..., pm} according to the number of basic unit files m;
[0116] a2. Assign these m grid files to m processes respectively, i.e., f1—>p1, ..., fm—>pm;
[0117] a3. Calculate the translation parameter values {z1, z2, ..., zm} of each process along the axial direction according to the axial range (i.e., Z-axis direction) represented by the m files and the complete length of the target grid model;
[0118] a4.m processes perform axial copy and translation calculations in parallel, that is, any process pi identifies each grid cell in the grid file fi it holds, and updates each node (x, y, z) that constitutes the grid cell to (x, y, z+zi=z'), thus obtaining a new grid file fi'.
[0119] a5. Read the corresponding translation parameter file, and identify the translation parameters (Δx, Δy) along the radial direction (ie, the X and Y axis directions) according to the core position of the target grid model;
[0120] a6.m processes perform radial replication and translation calculations in parallel, that is, any process pi identifies each grid cell in the grid file fi it holds, and updates each node (x, y, z) that constitutes the grid cell to (x+Δx=x', y+Δy=y', z'), thus obtaining a new grid file fi".
[0121] Based on the above steps, when all processes are calculated, m continuous small grid files {f1”, f2”, ..., fm”} of the target grid model at the specified core position can be obtained.
[0122] If the target grid model is the full core flow field / full core gap flow field / full core assembly flow field, the following calculation process is performed:
[0123] b1. Assign a set of processes to each core position;
[0124] b2. Execute the above steps a1 to a5 to obtain the continuous small grid files corresponding to the complete grid model of the flow field at each type of initial position;
[0125] b3. Distribute the continuous small grid files of each type of initial position to the process groups corresponding to the non-initial positions of the same type;
[0126] b4. The process groups at different core positions simultaneously perform intra-group and inter-group parallel calculations to generate continuous small grid files of the flow field at each core position. The radial translation parameters at each position are obtained from the corresponding translation parameter files.
[0127] Based on the above steps, when all processes are calculated, a large number of continuous small grid files of the target grid model corresponding to the full core flow field / full core gap flow field / full core assembly flow field can be obtained.
[0128] Functional module 3. Mesh model analysis: Calculate the mesh scale, mesh node quantity, worst, average and best mesh quality of the target mesh model according to the mesh quality standard specified by the user, and further calculate the mesh proportions of different quality ranges in the model.
[0129] a. Since the mesh models at other locations are exact copies of the basic unit mesh models at the initial location, the total number of mesh units totaMesh and the total number of nodes totaNode of the target mesh model can be quickly calculated based on the number of mesh units and mesh nodes at the initial location and the number of copy translations.
[0130] b. By collecting the meshes of all basic units at the initial position and according to the specified standard, the worst mesh quality minQua, average mesh quality aveQua, maximum mesh quality maxQua of the target mesh model, and the distribution of meshes in each quality range in the model can be quickly calculated.
[0131] Functional module 4. Mesh quality optimization: Based on the user input global or local, the maximum number of iterations maxCount and the quality threshold qualiThreshold parameters are optimized to perform global or local mesh quality optimization calculations for the mesh model uploaded by the user.
[0132] The specific process of global optimization calculation is as follows:
[0133] a1. First, perform regional decomposition calculation on the grid model to obtain multiple local decomposition regions {R1, R2, ..., Rv}, where the number of grid cells contained in each decomposition region is similar;
[0134] Start v CPU processes {p1, p2, ..., pv} and distribute v decomposition regions to each processor process. The v processes perform the following calculations in parallel.
[0135] a2. For any decomposition region Ru, identify all the grid nodes O = {o1, o2, ..., o num}, num is the total number of grid nodes distributed in Ru, and the coordinates of any grid point can be expressed as o i =(o i .x,o i .y,o i .z)(1≤i≤num), further identify the first-order neighbor grids of each grid node, and construct a hash structure HasL, which stores the i ->{t w , ..., t f}" is an element of a key-value pair, {t w , ..., t f} stores the node oi for all tetrahedral meshes at the grid points;
[0136] a3. Use all node information in O to construct the following two-dimensional matrix O num×3 :
[0137]
[0138] a4. Further use the topological relationship between nodes in O to construct the node-related Laplace matrix L according to formula 2 num×num :
[0139]
[0140] Among them, i and j are two grid nodes in O, 1≤i,j≤num. In order to obtain better approximation performance during the grid deformation process, the cotangent weight coefficient w is used here. ij , the improved two-dimensional cotangent weight is used to obtain its three-dimensional expansion form as follows:
[0141]
[0142] Among them, A(i,j) records all the nodes in O that can be connected with o. i and j The mesh nodes form a triangle, where α t Represents two sides of a triangle and In addition, E(i) records the angle between R uv Can be used with o i All nodes that make up the edge;
[0143] a5. According to the position matrix O related to the nodes in O num×3 and the Laplace matrix L num×num Further calculate the Laplace coordinate matrix δ of each node num×3 :
[0144] δ num×3 =L num×num O num×3 (4)
[0145] a6. Using the calculated Laplace coordinate matrix δ of the node num×3 , the initial position matrix of the node O num×3 and shrinkage factor l r Iteratively compute the new positions of the mesh nodes:
[0146]
[0147] Among them, k is the number of rounds of current iterative calculation, is the incremental node coordinate calculated based on the k-1th iteration and its Laplace coordinates K represents the maximum number of iterations allowed and k≤K, the shrinkage factor l r It plays a role in controlling the node movement amplitude during each iterative calculation, which can effectively avoid the generation of erroneous grids;
[0148] The specific execution process of step a6 under the global optimization constraint is as follows:
[0149] a61. Set the number of iterations k and the initial value of K, where k is initially 1 and the value of K is determined by the user. Calculate the initial matrix The initial value of
[0150] a62. The number of iterations k increases by 1;
[0151] a63. Determine whether k is not greater than K. If so, execute step a64, otherwise execute step a66;
[0152] a64. Traverse each element "o" in HasL i —>{t w ,...,t f}", 1≤i≤num, from the matrix Get node o i The new position o at the current iteration k i , is the set {t w ,...,t f The sum of the tetrahedron computational mesh quality in} is qua k-1 , update node o i for o k i And calculate the sum of the new mesh quality as qua k ;
[0153] a65. Judge qua k Is it greater than qua k-1 If so, update each element "o" in HasL i —>{t w ,...,t f}" is "o k i —>{t w ,...,t f}", where {t w ,...,t f} where the tetrahedral mesh points are updated o k i ;
[0154] a66.HasL has been traversed and Qua is determined k -Qua k-1 ≥ξ is true, if so, iterate and execute step a62 according to formula 5, otherwise execute step a66, where Qua k is the total mass of the inner grid after HasL traversal, Qua k-1 is the sum of the mesh quality before traversal;
[0155] a66.Terminate process calculation;
[0156] a67. When all v processes terminate their calculations, the local regions held by each process are merged.
[0157] The specific process of global optimization calculation is as follows:
[0158] After each local area is distributed to each process, any process pi will first identify all grids with quality lower than the threshold β in the local area Ri, and form a grid node set O corresponding to these grids. Steps a2 to a6 are executed for this screening set, where under the local optimization constraint, step a64 is updated as follows:
[0159] Traverse each element "o" in HasL i —>{t w ,...,t f}", 1≤i≤num, from the matrix Get node o i The new position o at the current iteration k i , is the set {t w ,...,t f The worst mesh quality of the tetrahedron in} is qua k-1 , update node o i for o k i And calculate the worst mesh quality as qua k ;
[0160] Further step a65 is updated as follows:
[0161] Judge qua k Is it less than qua k-1 If so, update each element "o" in HasL i —>{t w ,...,t f}" is "o k i —>{t w ,...,t f}", where {t w ,...,tf} where the tetrahedral mesh points are updated o k i ;
[0162] Functional module 5. Mesh file generation: First, according to the file type "fileType" and file number "flieNumber" input by the user, the parallel file generation process of "Phase 4" in "Functional module 2" is executed to build the continuous small mesh files of the target mesh model;
[0163] Afterwards, the user controls whether the system merges the continuous small grid files into a global overall grid file by selecting the parameter value of "yes" or "no" for the file merge "IsMerge" parameter;
[0164] If you select "yes", they will be merged into a whole grid file, and you can choose to download the whole file;
[0165] If "no" is selected, the user can select any small grid file, or all small grid files to download.
[0166] Specific as Fig. 9 Shows the system service process for file downloading.
[0167] Functional module 6. Visualization display module: Through this system module, users can visualize the local or global grid model of the flow field at a specific core position.
[0168] Functional module 7. Grid integrated function library: This module integrates various data structure representations of complex grids and various efficient and complex grid-oriented operation functions, providing a basis for efficient calculations of other modules. The basic data structure is defined as follows:
[0169] The grid point is defined as a "node" structure, whose attributes include "node.X", "node.Y", and "node.Z" which record the coordinates of the node together, "node.id" records the node number, "node.edge" records the grid edge number to which the node belongs, "node.faces" records the face mesh number to which the node belongs, and "node.meshes" records the volume mesh number to which the point belongs;
[0170] The mesh edge is defined as an "edge" structure, whose attributes include "edge.strnode", "edge.strnode" records the two mesh points that constitute the mesh edge, "edge.id" records the edge number, "edge.faces" records the face mesh number to which the edge belongs, and "edge.meshes" records the volume mesh number to which the edge belongs;
[0171] The mesh face is defined as a "face" structure, whose attributes include "face.nodes" recording the nodes that make up the face, "face.edges" recording the edges that make up the face, "face.id" recording the face number, and "face.meshes" recording the number of the volume mesh to which the face mesh belongs;
[0172] The mesh is defined as a "mesh" structure, whose attributes include "mesh.nodes" recording the nodes that make up the mesh, "mesh.edges" recording the edges that make up the mesh, "mesh.id" recording the mesh number, and "mesh.neighbors" recording the numbers of the meshes adjacent to the mesh.
[0173] Based on the above structure, the index structure for the grid includes various tree-type three-dimensional space indexes, hash indexes, partition and block indexes, and some mixed indexes.
[0174] Based on the above data structure, it also includes various query functions for grid points, grid edges, faces and volumes.
[0175] Functional module 8. Grid model library: This module is the data management center for the realization of the method and system functions. It stores the initial coarse grid models related to various types of components, flow channels, and gap units associated with various types of reactors. The specific form design is shown in the following table. The database includes four types of forms:
[0176] (a) Stacked form
[0177] ID ReactorType related-Ase related-chan related-gap Create-time 0 cefr cefr-ase cefr-chan cefr-gap xx 1 vhtr vhtr-ase vhtr-chan vhtr-gap xx 2 lfr lfr-ase lfr-chan lfr-gap xx … … … … … …
[0178] (b) Component form
[0179]
[0180] (c) Runner form
[0181]
[0182] (d) Gap form
[0183]
[0184] a. Reactor type table, which records the reactor types supported by the system, such as CEFR fast reactor cefr, VHTR reactor vhtr, LFR reactor lfr, etc. A type of reactor occupies one entry in the reactor type table. "Related-Ase, related-Chan, related-Gap" in the table respectively record the corresponding forms of components, flow channels, and gap flow fields associated with a specific reactor type;
[0185] b. Component form. A specific type of reactor has its corresponding component form, which records the component types contained in the reactor, the number of components of each type, the initial position of the component, the axial range of the basic unit corresponding to the coarse grid model, and the axial range of the basic unit, and also includes the storage location information of the coarse grid model file;
[0186] c. Flow channel table. A specific reactor type has its corresponding flow channel table, which records the flow channel types contained in the reactor type, the component information to which each type of flow channel belongs (such as "cefr-fuel" in Table C represents the fuel assembly in the CEFR core), the initial position of the flow channel and the axial range of the basic unit corresponding to the coarse grid model and the axial range of the basic unit, and the storage location information of the coarse grid model file;
[0187] d. Gap form. A specific reactor type has its corresponding gap form, which records the gap types contained in the reactor type, the components associated with each type of gap (such as "cefr-fuel" in Table d), the initial position of the gap and the axial range of the basic unit corresponding to the coarse grid model and the axial range of the basic unit, and the storage location of the coarse grid model file.
[0188] In summary, the present invention designs a numerical reactor unitized efficient integrated grid generation method and system based on the isomorphic structural characteristics of the nuclear reactor core, which has high robustness and scalability, low user dependence, avoids the user's geometric modeling and greatly simplifies the grid model construction process, and can realize customized grid model construction for high-fidelity simulation calculations of the core;
[0189] In addition, the present invention designs geometric unit segmentation for the whole core flow field, whole core layer numbering, translation parameter files, grid file numbering mode, and grid model database design schemes, and designs a set of global and local grid quality optimization methods for large-scale flow field grid models, which can realize the construction of high-quality grid models for the whole core;
[0190] Furthermore, the present invention designs a large-scale parallel massive grid (file) generation strategy for nuclear reactors, which can greatly improve the grid division efficiency and memory consumption of large-scale core flow fields, and can realize the construction of high-precision and high-efficiency grid models of the flow fields of the entire core and any core position;
[0191] Finally, the present invention designs a collaborative characterization method of continuous multiple local small grid files for the target grid model, which is beneficial to the parallel generation of the grid model, effectively alleviates the generation and storage pressure of large-scale grid model files, further alleviates the challenges brought by large-scale grid models to regional decomposition and main solution calculations, and effectively makes up for the disadvantage of difficult data loading during large-scale grid visualization.
[0192] 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 method for generating efficient integrated grids for numerical reactor units, characterized in that: Based on the isomorphic structural characteristics of the core, the complex and huge core system is split into the smallest basic units, the basic units are gridded, the gridded basic units are copied and translated in parallel, and merged into a flow field network model of the entire core or any core position. The method specifically includes the following steps: S1. Coarse grid model screening: Screen the coarse grid models related to the basic unit from the pre-built network model library; S2, coarse grid model refinement and optimization calculation: perform parallel refinement, boundary fitting optimization, and grid quality optimization operations on the coarse grid model selected in S1, and construct the coarse grid model into a high-quality grid model; S3, basic unit grid model construction: construct a basic unit grid model that meets the merging requirements based on the high-quality grid model output in S2; S4. Copy, translate and merge to generate target grid model: Based on the basic unit grid model file at the initial position constructed in S3, large-scale parallel copy and translation calculations are performed to generate the required target grid model file.
2. A method for generating a numerical reactor unitized efficient integrated grid according to claim 1, characterized in that: The type and number of coarse grid models selected in S1 are related to the type of target network model finally generated, specifically: 1) If the target grid model is a full core flow field grid model or a full core component flow field grid model, the types and quantities of the coarse grid models are the types and quantities of all components contained in the core; 2) If the target grid model is a full core gap flow field grid model, the type and number of the coarse grid model are the type and number of gap units contained in the core; 3) If the target grid model is the flow field grid model of a component, flow channel or gap unit at any core position, the type and number of coarse grid models are both 1.
3. A method for generating a numerical reactor unitized efficient integrated grid according to claim 1, characterized in that: The basic unit grid model constructed in S3 is related to the type of the target network model, specifically: 1) If the target grid model is a full core flow field grid model, the basic unit grid model is composed of various types of components contained in the core and various types of gap basic units constructed based on the component basic units; 2) If the target grid model is the flow field grid model of the entire core assembly, the basic unit grid model corresponds one-to-one to each type of assembly contained in the core; 3) If the target grid model is a full core gap flow field grid model, the basic unit grid model corresponds one-to-one to each type of gap unit contained in the core; 4) If the target grid model is a flow field grid model of a component, flow channel or gap unit at any core position, the basic unit grid model corresponds one-to-one to a specific type of component, flow channel or gap unit in the core.
4. A method for generating a numerical reactor unitized efficient integrated grid according to claim 3, characterized in that: The basic unit grid models are all located at the initial position of the core. When constructing the basic unit grid models, the components and gaps of the entire core are designed with hierarchical numbers, and initial position numbers are assigned to various types of components, flow channels, and gaps in the core.
5. A method for generating a numerical reactor unitized efficient integrated grid according to claim 1, characterized in that: The large-scale parallel replication translation calculation described in S4 is implemented based on the designed translation parameter file, which includes a "component translation parameter file", a "gap translation parameter file" and a "flow channel translation parameter file".
6. A numerical reactor unitized efficient integrated grid generation system designed based on the method described in any one of claims 1 to 5, characterized in that: Includes the following: User parameter input module: the user inputs various control parameters for generating the target grid model through this module; the control parameters include reactor type parameters, fluid configuration parameters, core position parameters, grid-related parameters and grid file-related parameters; Target grid model generation module: generates a customized target grid model for the user based on the operation in S4 and the control parameters input by the user; Network model analysis module: using the quality evaluation standard specified by the user as an indicator, it calculates the total mesh volume and total mesh node volume of the target mesh model, the worst mesh quality, average mesh quality, highest mesh quality and mesh quality distribution in the mesh model, divides it into several quality intervals, and counts the proportion of meshes in each quality interval in the target mesh model; Mesh quality optimization module: based on the user input, the maximum number of iterations and quality threshold parameters of the optimization calculation are optimized, and global or local mesh quality optimization calculations are performed for the mesh model uploaded by the user; after the optimization calculation is completed, the mesh quality optimization module automatically calls the quality analysis program of the "mesh model analysis module" to display the quality of the optimized model, and further displays the total value of the improved mesh quality to the user; Mesh file generation module: generates a global or local mesh file of a specific file type of the target mesh model for the user to choose and download according to the file type, number of files and file merging parameters input by the user; Model visualization module: visualizes the local or global grid model of the flow field at a specific core position selected by the user; Grid integrated function library module: It integrates various data structure representations of complex networks and various complex grid-oriented operation functions, providing the basis and support for efficient calculations of other modules; Network model library module: The network model library module is a data management center that stores initial coarse grid models related to various types of components, flow channels, and gap units associated with various types of reactors.
Citation Information
Patent Citations
Large-scale parallel grid generation method and system suitable for numerical reactor
CN112464540A
Fast neutron reactor full-core structure large-scale grid automatic generation method and system
CN113177335A
