[go: up one dir, main page]

CN114510775A - A 3D Space Curved Meshing Method for Complex Models - Google Patents

A 3D Space Curved Meshing Method for Complex Models Download PDF

Info

Publication number
CN114510775A
CN114510775A CN202111637505.5A CN202111637505A CN114510775A CN 114510775 A CN114510775 A CN 114510775A CN 202111637505 A CN202111637505 A CN 202111637505A CN 114510775 A CN114510775 A CN 114510775A
Authority
CN
China
Prior art keywords
grid
boundary
point
truncation
points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111637505.5A
Other languages
Chinese (zh)
Other versions
CN114510775B (en
Inventor
黄澍程
徐立
黄桃
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN202111637505.5A priority Critical patent/CN114510775B/en
Publication of CN114510775A publication Critical patent/CN114510775A/en
Application granted granted Critical
Publication of CN114510775B publication Critical patent/CN114510775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)

Abstract

The invention belongs to the technical field of aircraft design, aircraft numerical simulation and numerical calculation technology and grid division, and particularly relates to a complex model three-dimensional space curved grid division method. The invention provides a new control point and space curved grid point selection strategy, which can well meet the grid division requirement of a complex model under the condition of not improving the grid magnitude. The selection of control points and deformation points is reduced while the grid quality is ensured, a large amount of position calculation in the grid division process is reduced, and the grid division strategy is optimized. And a basis function selection mode based on the cosine value of the included angle is provided, on the premise of ensuring the grid quality, the calculation required by the deformation quantity can be greatly reduced by using the low-order polynomial basis function with a simple form, the time consumption of grid division is reduced, and the calculation force requirement is reduced. The problems of poor mesh division universality and poor mesh quality in the mesh division process of the existing complex model are effectively solved.

Description

一种复杂模型三维空间曲网格划分方法A 3D Space Curved Meshing Method for Complex Models

技术领域technical field

本发明属于飞行器设计、飞行器数值模拟和数值计算技术、网格划分技术领域,具体涉及一种复杂模型三维空间曲网格划分方法。The invention belongs to the technical fields of aircraft design, aircraft numerical simulation and numerical calculation, and grid division, and in particular relates to a three-dimensional curved grid division method for complex models.

背景技术Background technique

随着计算机技术的不断发展,数值模拟技术和数值计算技术在航空航天飞行器的相关研究中的应用越来越广泛。相比于风洞试验等实验方法,数值模拟技术有着实验成本低,可重复性强,适用性强等优势。通过航空航天飞行器的数值模拟,可以得到航空航天飞行器的流动特性、热学特性以及电磁特性,再进一步根据数值模拟的结果,优化航空航天飞行器相关参数的设计。在数值模拟过程中各种数值计算方法(如有限元法、有限体积法、间断伽辽金法等)广泛应用于飞行器设计中,而高效精准的网格划分过程是这些数值计算方法的一个关键步骤。With the continuous development of computer technology, numerical simulation technology and numerical calculation technology are more and more widely used in the related research of aerospace vehicles. Compared with experimental methods such as wind tunnel test, numerical simulation technology has the advantages of low experimental cost, strong repeatability, and strong applicability. Through the numerical simulation of the aerospace vehicle, the flow characteristics, thermal characteristics and electromagnetic characteristics of the aerospace vehicle can be obtained, and then the design of the relevant parameters of the aerospace vehicle can be optimized according to the results of the numerical simulation. In the process of numerical simulation, various numerical calculation methods (such as finite element method, finite volume method, discontinuous Galerkin method, etc.) are widely used in aircraft design, and efficient and accurate meshing process is a key to these numerical calculation methods. step.

网格划分是进行高精度数值模拟和数值计算的基础,网格质量的好坏直接影响着数值模拟和数值计算的精度。并且在数值模拟过程中,网格划分过程往往占据了整个数值模拟过程的大部分工作量,因而网格划分尤其是复杂模型的网格划分是数值模拟中十分重要的研究部分。在复杂模型及复杂条件下的数值模拟中对网格划分有着更高的要求。复杂模型中通常包含高曲率的部分或者局部微小的几何邻近特征。为保证离散精度和网格质量,在此类几何特征区域中线性四面体网格需要不断缩小网格尺寸来匹配其几何特征,进一步导致网格量级的不断上升,从而导致计算量的增大以及计算时间的增加。对于复杂外形,较差的网格质量还有可能导致计算过程的发散,进而导致计算失败。因此在超声速或多尺度等复杂条件下通过一些新的技术来提升网格质量是十分必要的,而曲网格是解决现有网格质量问题的一种较好方式。Meshing is the basis of high-precision numerical simulation and numerical calculation, and the quality of mesh directly affects the accuracy of numerical simulation and numerical calculation. And in the process of numerical simulation, the meshing process often occupies most of the workload of the entire numerical simulation process, so meshing, especially the meshing of complex models, is a very important research part in numerical simulation. There are higher requirements for meshing in the numerical simulation of complex models and complex conditions. Complex models usually contain high-curvature parts or locally tiny geometric adjacent features. In order to ensure the discrete accuracy and mesh quality, the linear tetrahedral mesh needs to continuously reduce the mesh size to match its geometric characteristics in such geometric feature regions, which further leads to the continuous increase of the mesh magnitude, which leads to an increase in the amount of calculation. and an increase in computation time. For complex shapes, poor mesh quality may also lead to divergence in the calculation process, resulting in calculation failure. Therefore, it is necessary to use some new technologies to improve the mesh quality under complex conditions such as supersonic speed or multi-scale, and curved mesh is a better way to solve the existing mesh quality problems.

现有曲网格划分方法基本包含直接法和间接法。直接法因计算复杂且适应性差等问题在数值计算中使用较少。间接法可以看作是基于线性网格划分的网格变形,是目前常用的方法。在间接法中,网格变形主要包含外推法、弹簧法和插值法等。外推法难以在复杂模型中取得应用;弹簧法理论较为复杂,计算过程耗时较长且稳定性较差。径向基函数法是一种通过插值点之间距离构建插值基的插值法,因其通用性好、变形网格质量好,近些年被广泛应用于动态网格以及网格变形等领域。但是径向基函数法往往需要进行大量的计算,求解过程非常耗时且不稳定。The existing curved meshing methods basically include direct method and indirect method. The direct method is rarely used in numerical calculation due to the problems of complex calculation and poor adaptability. The indirect method can be regarded as a mesh deformation based on linear mesh division, and is a commonly used method at present. In the indirect method, mesh deformation mainly includes extrapolation method, spring method and interpolation method. The extrapolation method is difficult to apply in complex models; the spring method is more complicated, the calculation process is time-consuming and the stability is poor. The radial basis function method is an interpolation method that constructs an interpolation basis by interpolating the distance between points. Because of its good versatility and good quality of deformed grids, it has been widely used in dynamic grids and grid deformation in recent years. However, the radial basis function method usually requires a lot of calculations, and the solution process is very time-consuming and unstable.

发明内容SUMMARY OF THE INVENTION

针对上述存在的问题或不足,为解决现有复杂模型网格划分过程中存在网格划分普适性较差,网格质量不佳的问题,本发明提供了一种复杂模型三维空间曲网格划分方法。通过提出一种新的控制点和形变点选取策略,在保证网格质量的同时减少了控制点和形变点的选取,减少了网格划分过程中大量的位置计算,优化了网格划分策略,减少了网格划分耗时以及降低了算力需求。In view of the above-mentioned problems or deficiencies, in order to solve the problems of poor universality of grid division and poor grid quality in the process of grid division of existing complex models, the present invention provides a three-dimensional curved grid of complex models. division method. By proposing a new control point and deformation point selection strategy, the selection of control points and deformation points is reduced while ensuring the quality of the mesh, reducing a large number of position calculations in the process of meshing, and optimizing the meshing strategy. Reduced meshing time and reduced computing power requirements.

具体方案如下,一种复杂模型三维空间曲网格划分方法,包括以下步骤:The specific scheme is as follows, a method for dividing a complex model three-dimensional space curved mesh, including the following steps:

步骤1. 输入目标三维物理模型以及网格参数。Step 1. Input the target 3D physical model and mesh parameters.

步骤2.将目标三维物理模型转换为三维空间几何信息,标记并存储计算域边界信息。Step 2. Convert the target 3D physical model into 3D space geometric information, mark and store the computational domain boundary information.

步骤3.依据步骤2中的三维空间几何信息,依次基于阵面推进法和三维约束德洛内(Delaunay)方法生成T个初始线性四面体单元,同时依据T个初始线性四面体单元的网格拓扑关系构造tetra(体)→face(面)→edge(边)→node(点)的层次结构存储网格信息。Step 3. According to the three-dimensional spatial geometric information in step 2, T initial linear tetrahedral elements are generated based on the frontal advancement method and the three-dimensional constraint Delaunay method in turn, and the grid topology relationship of the T initial linear tetrahedral elements is constructed. The hierarchy of tetra (body) → face (face) → edge (edge) → node (point) stores mesh information.

步骤4.根据步骤3中生成的初始线性四面体单元的网格信息以及步骤2中的计算域边界信息,逐个检索步骤3生成的T个初始线性四面体单元。Step 4. According to the mesh information of the initial linear tetrahedral unit generated in step 3 and the computational domain boundary information in step 2, the T initial linear tetrahedral units generated in step 3 are retrieved one by one.

如果第t个单元为边界单元则给该单元附上边界标记并计为第ѱ个边界单元,t∈{1,2,3,…,T}。遍历步骤3中T个初始线性四面体单元,可得到共计Ψ个边界单元,ѱ∈{1,2,3,…,Ψ}。If the t-th element is a boundary element, a boundary label is attached to this element and counted as the ѱ-th boundary element, t∈{1,2,3,…, T }. Traversing the T initial linear tetrahedral elements in step 3, a total of Ψ boundary elements can be obtained, ѱ∈{1,2,3,…,Ψ}.

步骤5.根据步骤4中标记的Ψ个边界单元,逐个检索Ψ个边界单元,取出第ѱ个边界单元的边界面、边界边和边界点信息。Step 5. According to the Ψ boundary elements marked in step 4, retrieve the Ψ boundary elements one by one, and extract the boundary surface, boundary edge and boundary point information of the ѱth boundary element.

四面体单元中的边界面包含三条边界边以及三个顶点,将Ψ个边界单元中所有边界面上的边截断,生成边界面截断点。并将生成的边界面截断点投影至步骤2中的计算域边界得到投影点,且投影点和边界面截断点存在一一对应关系。The boundary surface in the tetrahedral element contains three boundary edges and three vertices. The edges on all boundary surfaces in the Ψ boundary elements are truncated to generate boundary surface truncation points. The generated boundary surface truncation point is projected to the computational domain boundary in step 2 to obtain the projection point, and there is a one-to-one correspondence between the projection point and the boundary surface truncation point.

步骤6.根据步骤5中得到的Ψ个边界单元信息,逐个检索Ψ个边界单元的非边界面的面、边和点信息。Step 6. According to the information of the Ψ boundary elements obtained in step 5, the surface, edge and point information of the non-boundary surfaces of the Ψ boundary elements are retrieved one by one.

步骤7.根据步骤5中得到的Ψ个边界单元信息,逐个检索Ψ个边界单元的相邻单元,取出相邻单元中非相邻面的面、边和点的信息。Step 7. According to the information of the Ψ boundary units obtained in step 5, the adjacent units of the Ψ boundary units are retrieved one by one, and the information of the faces, edges and points of the non-adjacent faces in the adjacent units is extracted.

所述相邻单元:四面体单元中共用一个面的两个单元定义为相邻单元,非边界单元的相邻单元有四个,边界单元的相邻单元少于四个但至少有一个。The adjacent units: two units in the tetrahedron unit that share one face are defined as adjacent units, there are four adjacent units of the non-boundary unit, and the adjacent units of the boundary unit are less than four but at least one.

步骤8.遍历所有边界面截断点及其对应的投影点,计算边界面截断点与其对应投影点之间的夹角余弦值。Step 8. Traverse all boundary surface truncation points and their corresponding projection points, and calculate the cosine of the angle between the boundary surface truncation points and their corresponding projection points.

步骤9.将步骤5、6和7截断得到的全部截断点代入径向基函数计算式中,通过径向基函数计算式求得的值即为截断点形变量。Step 9. Substitute all the truncation points obtained by the truncation in steps 5, 6 and 7 into the radial basis function calculation formula, and the value obtained by the radial basis function calculation formula is the truncation point deformation variable.

控制点为步骤5中边界面截断点,即全部边界面截断点的子集;先通过控制点和投影点计算权重;然后按先取边界面外层循环的全局编号顺序,再取边界边内层循环的局部编号的先后顺序遍历边界面截断点计算控制点位移量,重复点跳过。The control point is the truncation point of the boundary surface in step 5, that is, a subset of the truncation points of all boundary surfaces; the weight is first calculated by the control point and the projection point; The sequence of the local numbers of the loop traverses the truncation point of the boundary surface to calculate the displacement of the control point, and repeats the point to skip.

步骤10.将步骤9计算出来的形变量代入截断点坐标以计算空间曲网格坐标(xc,yc,zc)。Step 10. Substitute the deformation variables calculated in step 9 into the cutoff point coordinates to calculate the spatial curvature grid coordinates (x c , y c , z c ).

步骤11.步骤10计算所得的空间曲网格点作为新增网格节点,插入网格数据中,并更新网格拓扑关系。然后将新的空间曲网格数据用相应的网格数据文件格式输出,并将输出的网格数据文件导入可视化。Step 11. The spatially curved grid points calculated in step 10 are used as new grid nodes, inserted into grid data, and the grid topology relationship is updated. Then, the new spatial curve grid data is output in the corresponding grid data file format, and the output grid data file is imported into the visualization.

进一步的,所述步骤3的具体过程为:首先采用阵面推进法以计算域表面为初始阵面向内部推进生成W层的层次网格,其中W≥1,W可由用户根据实际情况选取(W越大空间曲网格精度越高,但计算量越大,W取值为W∈{1,2,3,…,10})。Further, the specific process of the step 3 is as follows: first, the frontal advance method is used to generate a layered grid of W layer, where W≥1, and W can be selected by the user according to the actual situation (W The larger the space curved grid, the higher the accuracy, but the greater the amount of calculation, the value of W is W∈{1,2,3,…,10}).

然后在剩余计算域中以当前层次网格表面为初始约束条件,采用三维约束德洛内(Delaunay)法生成初始线性四面体单元。Then in the remaining computational domain, the initial linear tetrahedral element is generated by using the three-dimensional constraint Delaunay method with the current hierarchical mesh surface as the initial constraint.

进一步的,所述步骤5中计算截断点位置时,比例参数λ取1,即为边的中点。Further, when calculating the position of the truncation point in the step 5, the scale parameter λ takes 1, which is the midpoint of the edge.

进一步的,所述步骤5中若要构造更高精度的曲网格,则在每个边界单元第一次截断的基础之上继续生成新的截断点。然后将分别求得的新一阶截断点投影到计算域边界得到相应的投影点并存入截断点数据类和投影点数据类,如此循环得到更多的高阶截断点和高阶投影点。Further, if a higher-precision curved mesh is to be constructed in the step 5, new truncation points are continued to be generated on the basis of the first truncation of each boundary element. Then, the new first-order truncation points obtained respectively are projected to the boundary of the computational domain to obtain the corresponding projection points, which are stored in the truncation point data class and the projection point data class.

进一步的,所述步骤9中径向基函数中基函数为紧支型径向基函数。Further, in the step 9, the basis function in the radial basis function is a tightly supported radial basis function.

进一步的,所述步骤9中径向基函数使用二次多项式。Further, in the step 9, the radial basis function uses a quadratic polynomial.

进一步的,所述步骤11中网格数据文件格式输出采用CGNS格式。Further, in the step 11, the grid data file format output adopts CGNS format.

进一步的,所述步骤6采用步骤5步中同样的方法求得非边界面截断点。Further, in the step 6, the same method as in the step 5 is used to obtain the cutoff point of the non-boundary interface.

进一步的,所述步骤7采用步骤5步中同样的方法将每条边截断求得相邻单元截断点。Further, in step 7, the same method as in step 5 is used to truncate each edge to obtain a truncation point of adjacent cells.

进一步的,所述步骤7中,对于多层空间曲网格则进一步循环检索相邻单元的相邻单元。Further, in the step 7, for the multi-layer space curved grid, the adjacent units of the adjacent units are further cyclically searched.

本发明提出的复杂模型三维空间曲网格划分方法通过对原有线性四面体截断生成曲面四面体单元来实现,能在不提升网格量级的情况下很好的满足复杂模型网格划分需求,初始线性网格基于阵面推进法和三维约束德洛内(Delaunay)法。空间曲网格点生成过程中仅选取步骤5中边界面截断点作为控制点,形变点也仅选取边界单元和边界单元相邻单元的截断点,大量减少了控制点和形变点的数量,从而大量减少了形变点即空间曲网格点相关的计算。相比于现有技术,步骤8创新性的提出了基于夹角余弦值的基函数选择方式;在保证网格质量的前提下,使用形式简单的低次多项式基函数的能大量减少形变量所需的计算。形变点计算减少与基函数形式简化使得网格划分的稳定性和速度得到了较大的提升。The three-dimensional space curved meshing method for complex models proposed by the present invention is realized by truncating the original linear tetrahedron to generate curved tetrahedral elements, which can well meet the meshing requirements of complex models without increasing the magnitude of the mesh. , the initial linear mesh is based on the frontal advancement method and the 3D constrained Delaunay method. In the process of generating the space curved grid points, only the truncation point of the boundary surface in step 5 is selected as the control point, and the deformation point also only selects the truncation point of the boundary element and the adjacent element of the boundary element, which greatly reduces the number of control points and deformation points. The calculation related to the deformation points, that is, the spatially curved grid points, is greatly reduced. Compared with the prior art, step 8 innovatively proposes a basis function selection method based on the cosine value of the included angle; on the premise of ensuring the quality of the grid, the use of a simple low-order polynomial basis function can greatly reduce the amount of deformation. required calculation. The reduction of deformation point calculation and the simplification of the basis function form greatly improve the stability and speed of meshing.

综上所述,本发明通过提出一种新的控制点和形变点选取策略,在保证网格质量的同时减少了控制点和形变点的选取,减少了网格划分过程中大量的位置计算,优化了网格划分策略,减少了网格划分耗时以及降低了算力需求。在不提升网格量级的情况下很好的满足复杂模型的网格划分需求。To sum up, the present invention proposes a new control point and deformation point selection strategy, which reduces the selection of control points and deformation points while ensuring the quality of the mesh, and reduces a large number of position calculations in the process of mesh division. The grid division strategy is optimized, which reduces the time-consuming of grid division and reduces the computing power requirement. It can well meet the meshing requirements of complex models without increasing the mesh size.

附图说明Description of drawings

图1为实施例目标模型三维空间曲网格示意图;1 is a schematic diagram of a three-dimensional space curved grid of an embodiment target model;

图2为钝锥(10°)线性/曲网格对比图;Figure 2 is a comparison diagram of a blunt cone (10°) linear/curved grid;

图3为相邻单元剖面(二维)示意图;Figure 3 is a schematic diagram of the cross-section (two-dimensional) of adjacent units;

图4为X-51A线性网格示意图;Figure 4 is a schematic diagram of the X-51A linear grid;

图5为X-51A空间曲网格示意图;Figure 5 is a schematic diagram of the X-51A space curved grid;

图6为本发明流程图。FIG. 6 is a flow chart of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例来详细说明本发明的技术方案。The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and embodiments.

参照附图,一种复杂模型三维曲网格划分方法,包括以下步骤:Referring to the accompanying drawings, a method for dividing a complex model three-dimensional curved mesh includes the following steps:

步骤1.输入目标三维物理模型以及网格参数。step 1. Enter the target 3D physical model and mesh parameters.

根据三维物理模型(尺寸参数、公式、图纸、实物等)绘制基于ACIS内核的数字模型,通过程序读取网格尺寸,边界类型等网格参数设置。According to the 3D physical model (dimension parameters, formulas, drawings, physical objects, etc.), the digital model based on the ACIS kernel is drawn, and the grid parameter settings such as grid size and boundary type are read through the program.

步骤2.将目标三维物理模型转换为三维空间几何信息,标记并存储计算域边界信息。Step 2. Convert the target 3D physical model into 3D space geometric information, mark and store the computational domain boundary information.

建立Model类,将数字模型中三维空间几何信息导入模型Model类中,根据设置的边界类型建立边界标记(程序中为Model类的成员BCtype)。Create the Model class, import the three-dimensional spatial geometric information in the digital model into the Model class, and establish the boundary mark according to the set boundary type (the program is the member BCtype of the Model class).

步骤3.依据步骤2中的三维空间几何信息,依次基于阵面推进法和三维约束德洛内Delaunay方法生成T个初始线性四面体单元,同时依据T个初始线性四面体单元的网格拓扑关系构造tetra体→face面→edge边→node点的层次结构存储网格信息。Step 3. According to the three-dimensional spatial geometric information in step 2, T initial linear tetrahedral elements are generated based on the frontal advancement method and the three-dimensional constraint Delaunay method in turn, and the tetra body is constructed according to the mesh topology relationship of the T initial linear tetrahedral elements. The hierarchy of →face →edge →node points stores mesh information.

读取网格参数和Model类中的三维空间几何信息,首先采用阵面推进法由计算区域表面向内部推进生成多(球实施例中为两层)层网格单元,然后利用三维约束德洛内(Delaunay)法以当前阵面为约束条件生成剩余区域的网格。同时构造tetraArray类、faceArray类、edgeArray类、nodeArray类来存储单元信息。Read the grid parameters and the 3D space geometric information in the Model class, first use the frontal advancement method to advance from the surface of the calculation area to the inside to generate multi-layer (two layers in the spherical embodiment) grid unit, and then use the 3D constraint Delo The inner (Delaunay) method generates a mesh of the remaining area with the current array as the constraint. Construct tetraArray class, faceArray class, edgeArray class, nodeArray class at the same time to store unit information.

步骤4.根据步骤3中生成的初始线性四面体单元的网格信息以及步骤2中的计算域边界信息,逐个检索步骤3生成的T个初始线性四面体单元。Step 4. According to the mesh information of the initial linear tetrahedral unit generated in step 3 and the computational domain boundary information in step 2, the T initial linear tetrahedral units generated in step 3 are retrieved one by one.

如果第t个单元为边界单元则给该单元附上边界标记并计为第ѱ个边界单元,t∈{1,2,3,…,T};遍历步骤3中T个初始线性四面体单元,可得到共计Ψ个边界单元,ѱ∈{1,2,3,…,Ψ}。If the t-th element is a boundary element, attach a boundary label to the element and count it as the ѱ-th boundary element, t∈{1,2,3,…, T }; traverse the T initial linear tetrahedral elements in step 3 , a total of Ψ boundary elements can be obtained, ѱ∈{1,2,3,…,Ψ}.

本实施例中:将边界标记BCtype插入tetraArray类,并建立对应关系。再将tetraArray类中BCtype(程序中为tetraArray类的成员BCtype)的插入faceArray类,edgeArray类,nodeArray类中,标记单元中的边界面、边界边和边界点。In this embodiment: insert the boundary marker BCtype into the tetraArray class, and establish a corresponding relationship. Then insert the BCtype in the tetraArray class (the member BCtype of the tetraArray class in the program) into the faceArray class, edgeArray class, nodeArray class, and mark the boundary surface, boundary edge and boundary point in the unit.

步骤5.根据步骤4中标记的Ψ个边界单元,逐个检索Ψ个边界单元,取出第ѱ个边界单元的边界面、边界边和边界点信息;Step 5. According to the Ψ boundary elements marked in step 4, retrieve the Ψ boundary elements one by one, and extract the boundary surface, boundary edge and boundary point information of the ѱth boundary element;

四面体单元中的边界面包含三条边界边以及顶点P 1(x1,y1,z1)、P 2(x2,y2,z2)和P 3(x3,y3,z3),x、y和z分别代表点在三维笛卡尔直角坐标系下三个维度的坐标值;第一条边对应顶点P 1P 2,第二条边对应P 1P 3,第三条边对应P 2P 3。将Ψ个边界单元中所有边界面上的边(四面体单元面包含三条边)截断,生成边界面截断点。A boundary surface in a tetrahedral element contains three boundary edges and vertices P 1 (x 1 , y 1 , z 1 ), P 2 (x 2 , y 2 , z 2 ) and P 3 (x 3 , y 3 , z 3 ) ), x, y and z respectively represent the coordinate values of the point in three dimensions in the three-dimensional Cartesian coordinate system; the first edge corresponds to vertices P 1 and P 2 , the second edge corresponds to P 1 and P 3 , and the third edge corresponds to P 1 and P 3 . The edges correspond to P 2 and P 3 . Truncate edges on all boundary faces in Ψ boundary elements (tetrahedral element faces contain three edges) to generate boundary face truncation points.

第一条边界边(第二和第三条边界边同理)截断位置点的位置通过顶点P 1(x1,y1,z1)和P 2(x2,y2,z2)计算,其计算公式为:The position of the truncation point of the first boundary edge (similar to the second and third boundary edges) is calculated by vertices P 1 (x 1 , y 1 , z 1 ) and P 2 (x 2 , y 2 , z 2 ) , its calculation formula is:

Figure 532136DEST_PATH_IMAGE001
Figure 532136DEST_PATH_IMAGE001

并将生成的边界面截断点P H (xn,1,yn,1,zn,1)(H代表边界面截断点标号)投影至步骤2中的计算域边界得到投影点P sub (xn,1,yn,1,zn,1)(sub代表投影点标号,且投影点和边界面截断点存在一一对应关系),λ为比例参数(大部分情况下为省略计算步骤可直接取λ=1即为边的中点,高曲率等特别的复杂模型中可以基于物理模型曲率、径向基函数来调整,调整范围为λ∈[0.5,2]。and project the generated boundary surface truncation point P H (x n,1 ,y n,1 ,z n,1 ) ( H represents the boundary surface truncation point label) to the computational domain boundary in step 2 to obtain the projected point P sub ( x n,1 ,y n,1 ,z n,1 ) ( sub represents the label of the projection point, and there is a one-to-one correspondence between the projection point and the truncation point of the boundary surface), λ is the scale parameter (in most cases, the calculation step is omitted λ=1 can be directly taken as the midpoint of the edge. In special complex models such as high curvature, it can be adjusted based on the physical model curvature and radial basis function, and the adjustment range is λ∈[0.5,2].

每生成一个截断点,就将截断点P H (xn,1,yn,1,zn,1)存入截断点数据类P H (xN,1,yN,1,zN,1)中,并计数(P H 中n代表第n个截断点,最大计数值为N)。同时将所有投影至边界表面得到投影点P sub (xn,1,yn,1,zn,1)也存入投影点数据类P sub (xN,1,yN,1,zN,1)中,并计数(P sub 中n代表第n个投影点,最大计数值也为N)。Every time a truncation point is generated, the truncation point P H (x n,1 ,y n,1 ,z n,1 ) is stored in the truncation point data class P H (x N,1 ,y N,1 ,z N, 1 ), and count (n in P H represents the nth truncation point, and the maximum count value is N ). At the same time, all the projection points P sub (x n,1 ,y n,1 ,z n,1 ) are obtained by projecting them to the boundary surface and also stored in the projected point data class P sub (x N,1 ,y N,1 ,z N ) ,1 ), and count (n in P sub represents the nth projection point, and the maximum count value is also N ).

进一步的,如果要构造更高精度的曲网格,则在每个边界单元第一次截断的基础之上继续生成新的截断点。以点P H (xn,1,yn,1,zn,1)和P 1(x1,y1,z1),以及P H (xn,1,yn,1,zn,1)和P 2(x2,y2,z2)分别为端点继续根据Further, if a higher-precision curved mesh is to be constructed, new truncation points are continued to be generated on the basis of the first truncation of each boundary element. Take the points P H (x n,1 ,y n,1 ,z n,1 ) and P 1 (x 1 ,y 1 ,z 1 ), and P H (x n,1 ,y n,1 ,z n , 1 ) and P 2 (x 2 , y 2 , z 2 ) are the endpoints, respectively, according to

Figure 744943DEST_PATH_IMAGE002
Figure 744943DEST_PATH_IMAGE002

生成截断点,此时(xi,yi,zi)为一次截断点P H (xn,1,yn,1,zn,1),(xj,yj,zj)为分别为顶点P 1(x1,y1,z1)和P 2(x2,y2,z2)的值。Generate a truncation point, at this time (x i , y i , z i ) is a truncation point P H (x n,1 ,y n,1 ,z n,1 ), (x j ,y j ,z j ) is are the values of vertices P 1 (x 1 , y 1 , z 1 ) and P 2 (x 2 , y 2 , z 2 ), respectively.

然后将分别求得的截断点P H (xn,21,yn,21,zn,21)和P H (xn,22,yn,22,zn,22)投影到计算域边界得到P sub (xn,21,yn,21,zn,21)和P sub (xn,22,yn,22,zn,22)并存入相应的截断点数据类和投影点数据类。如此循环得到更多的高阶截断点和高阶投影点,一般情况下每条边截断一次得到一个一阶截断点或者截断两次得到三个二阶截断点就可以满足网格精度需求。虽然可以循环截取更多截断点来提高网格精度,但是截断次数越多带来的计算量越大,计算速度越慢且算力需求越大。因此在网格划分中不建议采用高于二阶截断点的计算方案。Then, the obtained truncation points P H (x n,21 ,y n,21 ,z n,21 ) and P H (x n,22 ,y n,22 ,z n,22 ) are projected to the computational domain boundary Get P sub (x n,21 ,y n,21 ,z n,21 ) and P sub (x n,22 ,y n,22 ,z n,22 ) and store them in the corresponding truncation point data class and projection point data class. In this way, more high-order truncation points and high-order projection points are obtained. Generally, each edge is truncated once to obtain a first-order truncation point or truncates twice to obtain three second-order truncation points, which can meet the grid accuracy requirements. Although more truncation points can be cyclically intercepted to improve the grid accuracy, the more truncation times, the greater the amount of computation, the slower the computation speed, and the greater the computing power requirement. Therefore, it is not recommended to use a calculation scheme higher than the second-order truncation point in meshing.

本实施例为:在tetraArray类检索边界标记BCtype,当该单元为边界单元时检索单元对应的edgeArray类,nodeArray类。再进一步检索边的边界标记BCtype,检索到边界边时,通过该边界边对应的点坐标和公式求截断点P H (xn,1,yn,1,zn,1)和投影点P sub (xn,1,yn,1,zn,1)。求得截断点P H (xn,1,yn,1,zn,1)和投影点P sub (xn,1,yn,1,zn,1)后存入截断点数据类P H (x N,1,y N,1,z N,1)和P sub (x N,1,y N,1,z N,1)中,并计数(n最大计数值为N)。In this embodiment, the boundary marker BCtype is retrieved in the tetraArray class, and when the unit is a boundary unit, the edgeArray class and nodeArray class corresponding to the unit are retrieved. Further search for the boundary marker BCtype of the edge. When the boundary edge is retrieved, the truncation point P H (x n,1 ,y n,1 ,z n,1 ) and the projection point P are obtained through the point coordinates and formula corresponding to the boundary edge sub (x n,1 ,y n,1 ,z n,1 ). After the truncation point P H (x n,1 ,y n,1 ,z n,1 ) and the projection point P sub (x n,1 ,y n,1 ,z n,1 ) are obtained, they are stored in the truncation point data class P H (x N ,1 ,y N ,1 ,z N ,1 ) and P sub (x N ,1 ,y N ,1 ,z N ,1 ), and count (the maximum count value of n is N ).

步骤6.根据步骤5中得到的Ψ个边界单元信息,逐个检索Ψ个边界单元的非边界面的面、边和点信息;采用步骤5步中同样的方法求得非边界面截断点P inr (xm,1,ym,1,zm,1),存入截断点数据类P inr (xM,1,yM,1,zM,1),并计数,inr代表非边界面截断点标号,P inr 中m最大计数值记为M。Step 6. According to the information of the Ψ boundary elements obtained in step 5, retrieve the surface, edge and point information of the non-boundary planes of the Ψ boundary elements one by one; adopt the same method in step 5 to obtain the non-boundary plane truncation point P inr (x m ,1 ,y m,1 ,z m,1 ), stored in the truncation point data class P inr (x M,1 ,y M,1 ,z M,1 ), and counted, inr represents the non-boundary interface truncation point label , the maximum count value of m in Pinr is denoted as M.

步骤7.根据步骤5中得到的Ψ个边界单元信息,逐个检索Ψ个边界单元的相邻单元,取出相邻单元中非相邻面的面、边和点的信息,如果需要多层空间曲网格则进一步循环检索相邻单元的相邻单元。Step 7. According to the information of the Ψ boundary units obtained in step 5, the adjacent units of the Ψ boundary units are retrieved one by one, and the information of the faces, edges and points of the non-adjacent surfaces in the adjacent units is taken out. Further loops to retrieve adjacent cells of adjacent cells.

所述相邻单元:四面体单元中共用一个面的两个单元定义为相邻单元,非边界单元的相邻单元有四个,边界单元的相邻单元少于四个但至少有一个。The adjacent units: two units in the tetrahedron unit that share one face are defined as adjacent units, there are four adjacent units of the non-boundary unit, and the adjacent units of the boundary unit are less than four but at least one.

采用步骤5步中同样的方法将每条边截断求得相邻单元截断点P adj (xk,1,yk,1,zk,1)存入截断点数据类P adj (xK,1,yK,1,zK,1)中,并计数,P adj 中k最大计数值为K,adj代表相邻单元截断点标号。Use the same method in step 5 to truncate each edge to obtain the adjacent unit truncation point P adj (x k,1 ,y k,1 ,z k,1 ) and store it in the truncation point data class P adj (x K, 1 , y K,1 ,z K,1 ), and count, the maximum count value of k in Padj is K, and adj represents the label of the truncation point of the adjacent unit.

本实施例中,检索faceArray类的类成员tetra[A,B],A和B即为面所属的两个单元全局编号。再根据全局编号A或者B,在tetraArray类中检索相邻单元,取出非相邻面的边和点的信息。In this embodiment, the class member tetra[A,B] of the faceArray class is retrieved, and A and B are the global numbers of the two units to which the face belongs. Then according to the global number A or B, the adjacent units are retrieved in the tetraArray class, and the information of the edges and points of the non-adjacent faces is taken out.

步骤8.遍历边界面截断点数据类P H (xN,1,yN,1,zN,1)和投影点数据类P sub (xN,1,yN,1,zN,1)中所有点,计算边界面截断点P H (xn,1,yn,1,zn,1)与其对应投影点P sub (xn,1,yn,1,zn,1)之间的夹角余弦值,记为cos(θ) H-sub ,存入nodeArray类中每个点对应的位置。Step 8. Traverse all boundary surface truncation point data class P H (x N,1 ,y N,1 ,z N,1 ) and projected point data class P sub (x N,1 ,y N,1 ,z N,1 ) point, calculate the boundary surface truncation point P H (x n,1 ,y n,1 ,z n,1 ) and its corresponding projection point P sub (x n,1 ,y n,1 ,z n,1 ) between The cosine value of the included angle, denoted as cos( θ ) H-sub , is stored in the corresponding position of each point in the nodeArray class.

Figure 811250DEST_PATH_IMAGE003
Figure 811250DEST_PATH_IMAGE003

其中xn,H,yn,H,zn,H为第n个边界面截断点的三维坐标值,代表xn,sub ,yn,sub ,zn,sub 为第n个投影点的三维坐标值。where x n,H ,y n,H ,z n,H are the three-dimensional coordinate values of the nth boundary surface truncation point, representing x n, sub ,y n, sub ,z n, sub for the nth projection point 3D coordinate value.

步骤9.将步骤5、6和7截断得到的全部截断点代入径向基函数计算式中,通过径向基函数计算式求得的f(x,y,z)的值即为截断点形变量;存入临时变量mesh-distancecurved(总数N+M+K)中。径向基函数计算式为:Step 9. Substitute all truncation points obtained by truncation in steps 5, 6 and 7 into the radial basis function calculation formula, and the value of f ( x, y, z ) obtained by the radial basis function calculation formula is the truncation point shape variable; into the temporary variable mesh-distancecurved (total N+M+K ). The radial basis function is calculated as:

Figure 411996DEST_PATH_IMAGE004
Figure 411996DEST_PATH_IMAGE004

其中α为系数,

Figure 547442DEST_PATH_IMAGE005
为权重,I N 为控制点总数且I N =N
Figure 157415DEST_PATH_IMAGE006
为径向基函数,
Figure 920971DEST_PATH_IMAGE007
表示全部截断点到对应控制点的欧式距离,控制点
Figure 82831DEST_PATH_IMAGE008
为步骤5中边界面截断点P H (xN,1,yN,1,zN,1),即全部边界面截断点的子集;where α is the coefficient,
Figure 547442DEST_PATH_IMAGE005
is the weight, I N is the total number of control points and I N = N ;
Figure 157415DEST_PATH_IMAGE006
is the radial basis function,
Figure 920971DEST_PATH_IMAGE007
Indicates the Euclidean distance from all truncation points to the corresponding control point, the control point
Figure 82831DEST_PATH_IMAGE008
is the boundary interface truncation point PH (x N ,1 , y N,1 , z N,1 ) in step 5, that is, a subset of all boundary interface truncation points;

在实施例中,基于截断点(即空间曲网格点)的最大夹角余弦值,本发明所使用的径向基函数计算式为:In the embodiment, based on the maximum angle cosine value of the truncation point (that is, the space curved grid point), the radial basis function calculation formula used in the present invention is:

Figure 299049DEST_PATH_IMAGE009
Figure 299049DEST_PATH_IMAGE009

径向基函数在大部分情况下仅使用二次多项式,使用形式简单的低次多项式基函数能大量减少形变量所需的计算;仅在复杂模型出现高曲率等复杂情况则采用高次多项式来满足网格质量要求。Radial basis functions only use quadratic polynomials in most cases, and the use of low-order polynomial basis functions with simple forms can greatly reduce the calculation required for deformation variables; only in complex cases such as high curvature in complex models, high-order polynomials are used. Meet mesh quality requirements.

先通过控制点(边界面截断点)和投影点计算权重

Figure 712713DEST_PATH_IMAGE005
,计算权重时
Figure 206142DEST_PATH_IMAGE007
X代表边界面截断点(即为步骤5中边界面截断点P H (xN,1,yN,1,zN,1),所以总数为I N =N;计算权重时f (x,y,z)为已知量,代表控制点位移量,f (x,y,z)取同一边界面上截断点到投影点的欧式距离的最小值,以避免有平凡解的情况出现;First calculate the weights through the control points (boundary interface truncation points) and projection points
Figure 712713DEST_PATH_IMAGE005
, when calculating the weights
Figure 206142DEST_PATH_IMAGE007
where X represents the boundary surface cut-off point (that is, the boundary surface cut-off point P H (x N,1 ,y N,1 ,z N,1 ) in step 5, so the total number is I N = N ; when calculating the weight, f ( x , y, z ) is a known quantity, representing the displacement of the control point, f ( x, y, z ) takes the minimum value of the Euclidean distance from the truncation point to the projection point on the same boundary surface to avoid the occurrence of trivial solutions;

f (x,y,z)=min{║X b -X sub ║} f ( x,y,z )=min{║ X b - X sub ║}

其中一阶截断点情况下X b ,b∈{1,2,3}为同一边界面上的三条边界边对应的三个截断点,X sub 为截断点相对应的投影点的坐标值;然后按先取边界面外层循环的全局编号顺序,再取边界边内层循环的局部编号的先后顺序遍历边界面截断点计算控制点位移量,重复点跳过;In the case of the first-order truncation point, X b ,b∈{1,2,3} are the three truncation points corresponding to the three boundary edges on the same boundary surface, and X sub is the coordinate value of the projection point corresponding to the truncation point; then According to the order of the global numbering of the outer loop of the boundary surface, then the local number of the inner loop of the boundary surface, traverse the truncation point of the boundary surface to calculate the displacement of the control point, and repeat the point skipping;

求得权重

Figure 945428DEST_PATH_IMAGE005
后代入截断点计算f (x,y,z),此时
Figure 74708DEST_PATH_IMAGE005
为已知量,f (x,y,z)为待求量;计算网格点位移时
Figure 636270DEST_PATH_IMAGE010
X=X j X j 代表步骤5中边界面截断点、步骤6中非边界面截断点和步骤7中相邻单元截断点求得的全部截断点,截断点总数I SUM =N+M+K;get weight
Figure 945428DEST_PATH_IMAGE005
The descendants enter the truncation point to calculate f ( x, y, z ), at this time
Figure 74708DEST_PATH_IMAGE005
is a known quantity, f ( x, y, z ) is the quantity to be determined; when calculating the displacement of grid points
Figure 636270DEST_PATH_IMAGE010
where X = X j , X j represents the boundary surface truncation point in step 5, the non-boundary surface truncation point in step 6 and the truncation point of adjacent units in step 7. The total number of truncation points is I SUM = N+ M + K;

步骤10.将步骤9计算出来的形变量f (x,y,z)代入截断点坐标(xJ,1,yJ,1,zJ,1)以计算空间曲网格坐标(xc,yc,zc),其计算式为:Step 10. Substitute the deformation variable f ( x,y,z ) calculated in step 9 into the cut-off point coordinates (x J,1 ,y J,1 ,z J,1 ) to calculate the space curved grid coordinates (x c ,y c , z c ), its calculation formula is:

(xc,yc,zc)=(xJ,1,yJ,1,zJ,1)+f (x,y,z),J∈{N},{M},{K}(x c , y c , z c ) = (x J,1 ,y J,1 ,z J,1 ) + f ( x,y,z ),J∈{ N } , {M} , {K}

遍历临时变量mesh-distancecurved取出每个截断点对应的形变量,与截断点初始位置相加求得形变后的截断点(相加后的截断点位置即为空间曲网格点)位置,即为空间曲网格点坐标。再将求得空间曲网格点坐标存入截断点类,代替原有截断点坐标。Traverse the temporary variable mesh-distancecurved to take out the deformation variable corresponding to each truncation point, and add it to the initial position of the truncation point to obtain the position of the truncation point after deformation (the position of the added truncation point is the space curve grid point), which is Coordinates of the space curved grid points. Then save the coordinates of the obtained space curve grid points into the truncation point class to replace the original truncation point coordinates.

步骤11.步骤10计算所得的高阶网格点(xc,yc,zc)作为新增网格节点,即从截断点类读取步骤10计算所得的空间曲网格点坐标,作为新增网格节点node5至node10,插入网格数据中,并更新网格拓扑关系;然后将新的空间曲网格数据用相应的网格数据文件格式(如CGNS格式)输出,并将输出的网格数据文件导入可视化。Step 11. The high-order grid points (x c , y c , z c ) calculated in step 10 are used as new grid nodes, that is, the coordinates of the spatially curved grid points calculated in step 10 are read from the truncation point class, as the newly added grid points. The grid nodes node5 to node10 are inserted into the grid data, and the grid topology relationship is updated; then the new spatial curve grid data is output in the corresponding grid data file format (such as CGNS format), and the output grid data File import visualization.

本实施例采用3个目标物体做出示例以验证本发明的有效性;各实施例最终网格划分的空间曲网格结果如图1和图2的右图,以及图5所示。In this embodiment, three target objects are used as examples to verify the effectiveness of the present invention; the spatial curved grid results of final grid division in each embodiment are shown in Figures 1 and 2 on the right, and Figure 5 .

图1是以球体为目标物体,左图空间曲网格全局表面视图,中间图为空间曲网格剖面图,右图为局部放大图。Figure 1 is a sphere as the target object, the left is a global surface view of the space curved grid, the middle is a cross-sectional view of the space curved grid, and the right is a partial enlarged view.

图2是钝锥(10°)空间曲网格结果图。左图为步骤三所得初始线性四面体网格,右图为完成后的空间曲网格示意图。Figure 2 is the result of a blunt cone (10°) space curved grid. The left picture is the initial linear tetrahedral mesh obtained in step 3, and the right picture is the schematic diagram of the completed space curved mesh.

图4和5是X-51A飞行器的结果图。图4为步骤三所得初始线性四面体网格,图5为完成后的空间曲网格示意图。Figures 4 and 5 are results plots for the X-51A aircraft. FIG. 4 is the initial linear tetrahedral mesh obtained in step 3, and FIG. 5 is a schematic diagram of the completed space curved mesh.

从图2中左图和右图的对比,图4和图5的对比可以看出,在保证网格质量和基本拓扑结构不变的情况下,本发明所提出的空间曲网格划分方法实现了高精度的空格曲网格。现有曲网格技术基本上只实现了物面曲网格,虽然物面曲网格提升了边界处的计算精度,数值计算精度往往受限制于内部网格的精度。本发明采取了全新的控制点和形变点(即空间曲网格点)选取策略,将曲网格拓展至空间内层网格中实现复杂模型的高精度空间曲网格划分。综上可见本发明切实有效。It can be seen from the comparison between the left picture and the right picture in Fig. 2 and the comparison between Fig. 4 and Fig. 5 that the space curved grid division method proposed by the present invention realizes the grid quality and the basic topology structure unchanged. A high-precision space curve grid is obtained. The existing curved grid technology basically only realizes the object surface curved grid. Although the object surface curved grid improves the calculation accuracy at the boundary, the numerical calculation accuracy is often limited by the accuracy of the internal grid. The invention adopts a brand-new selection strategy of control points and deformation points (that is, space curved grid points), and extends the curved grid to the inner space grid to realize high-precision spatial curved grid division of complex models. To sum up, it can be seen that the present invention is practical and effective.

综上可见,本发明通过提出一种新的控制点和形变点选取策略,在不提升网格量级的情况下很好的满足复杂模型的网格划分需求。相比现有技术:1. 本发明实现了空间曲网格划分,现有技术基本为物面曲面网格;2. 采用新的控制点和形变点选取策略以及计算方法,在不提升网格量级的情况下很好的满足复杂模型的网格划分需求;3. 径向基函数根据夹角余弦值选取。本发明在保证网格质量的同时减少了控制点和形变点的选取,减少了网格划分过程中大量的位置计算,优化了网格划分策略,减少了网格划分耗时以及降低了算力需求。形变点计算减少与基函数形式简化使得网格划分的稳定性和速度得到了较大的提升。To sum up, it can be seen that, by proposing a new control point and deformation point selection strategy, the present invention can well meet the grid division requirements of complex models without increasing the grid magnitude. Compared with the prior art: 1. The present invention realizes the division of space curved grids, and the prior art is basically an object surface curved grid; 2. A new control point and deformation point selection strategy and calculation method are adopted, and the grid is not improved by adopting a new selection strategy and calculation method. Under the circumstance of the order of magnitude, it can well meet the meshing requirements of complex models; 3. The radial basis function is selected according to the cosine value of the included angle. The invention reduces the selection of control points and deformation points while ensuring the quality of the grid, reduces a large number of position calculations in the process of grid division, optimizes the grid division strategy, reduces the time consumption of grid division and reduces the computing power need. The reduction of deformation point calculation and the simplification of the basis function form greatly improve the stability and speed of meshing.

Claims (10)

1. A complex model three-dimensional space curved grid division method is characterized by comprising the following steps:
step 1, inputting a target three-dimensional physical model and grid parameters;
step 2, converting the target three-dimensional physical model into three-dimensional space geometric information, and marking and storing the boundary information of the calculation domain;
and 3, generating the three-dimensional space geometrical information according to the three-dimensional space geometrical information in the step 2 on the basis of a wavefront advancing method and a three-dimensional constrained Delaunay methodTAn initial linear tetrahedral unit, according toTConstructing a tetra body → face surface → edge → node point hierarchical structure to store grid information by the grid topological relation of the initial linear tetrahedron units;
step 4, according to the grid information of the initial linear tetrahedron units generated in the step 3 and the calculation domain boundary information in the step 2, the grid information generated in the step 3 is searched one by oneTAn initial linear tetrahedral unit;
if the t-th cell is a border cell, then the cell is given a border label and is counted as the ѱ -th border cell, t e { 1,2,3, …,T};in step 3 of traversalTObtaining a total of psi boundary units by using an initial linear tetrahedron unit, wherein ѱ is equal to { 1,2,3, …, psi };
step 5, retrieving psi boundary units one by one according to the psi boundary units marked in the step 4, and extracting boundary surfaces, boundary edges and boundary point information of ѱ th boundary units;
the boundary surface in the tetrahedron unit comprises three boundary edges and three vertexes, and edges on all the boundary surfaces in the psi boundary units are truncated to generate boundary surface truncation points; projecting the generated boundary surface truncation point to the calculation domain boundary in the step 2 to obtain a projection point, wherein the projection point and the boundary surface truncation point have a one-to-one correspondence relationship;
step 6, retrieving the surface, edge and point information of the non-boundary surface of the psi boundary units one by one according to the psi boundary unit information obtained in the step 5;
step 7, retrieving adjacent units of the psi boundary units one by one according to the psi boundary unit information obtained in the step 5, and extracting the information of surfaces, edges and points of non-adjacent surfaces in the adjacent units;
the adjacent unit: two units sharing a face in tetrahedral units are defined as adjacent units, four adjacent units are not boundary units, and less than four adjacent units are boundary units but at least one;
step 8, traversing all the boundary surface truncation points and the corresponding projection points thereof, and calculating the cosine value of the included angle between the boundary surface truncation points and the corresponding projection points thereof;
step 9, substituting all the truncation points obtained by truncation in the steps 5, 6 and 7 into a radial basis function calculation formula, wherein the value obtained through the radial basis function calculation formula is the deformation amount of the truncation point;
the control points are the boundary surface truncation points in the step 5, namely the subsets of all the boundary surface truncation points; firstly, calculating the weight through the control point and the projection point; then, traversing the boundary surface interception points according to the sequence of the global serial numbers of the outer layer cycle of the boundary surface and the sequence of the local serial numbers of the inner layer cycle of the boundary surface to calculate the displacement of the control points, and skipping the repeated points;
step 10, substituting the deformation amount calculated in the step 9 into the coordinate of the truncation point to calculate the coordinate of the space curved grid;
step 11, the high-order grid points obtained by calculation in the step 10 are used as newly added grid nodes, inserted into grid data and updated in the grid topological relation; and then outputting the new space curved grid data by using a corresponding grid data file format, and importing the output grid data file into visualization.
2. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, wherein in the step 3: firstly, a wavefront advancing method is adopted to advance the calculation domain surface serving as an initial wavefront to the inside to generate a hierarchical grid of a W layer, wherein W is larger than or equal to 1, the spatial curve grid precision is higher when W is larger, but the calculation amount is larger, and W belongs to { 1,2,3, …,10 };
and then, generating initial linear tetrahedral units by adopting a three-dimensional constrained Delaunay method in the residual calculation domain by taking the current hierarchical grid surface as an initial constraint condition.
3. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: and (5) when the position of the truncation point is calculated in the step (5), taking 1 as the proportional parameter lambda, namely the middle point of the edge.
4. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that:
if a curved grid with higher precision is to be constructed in the step 5, continuously generating a new truncation point on the basis of the first truncation of each boundary unit;
and then projecting the obtained new first-order truncation points to the boundary of the calculation domain to obtain corresponding projection points, and storing the corresponding projection points into a truncation point data class and a projection point data class, and circularly obtaining more high-order truncation points and high-order projection points.
5. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: and in the step 9, the basis function in the radial basis function is a tight-branch radial basis function.
6. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: the radial basis function in step 9 uses a quadratic polynomial.
7. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: in the step 11, the format output of the grid data file adopts a CGNS format.
8. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: and step 6, calculating the non-boundary surface truncation point by the same method in step 5.
9. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: and 7, truncating each edge by adopting the same method in the step 5 to obtain a truncation point of the adjacent unit.
10. The method for dividing the three-dimensional space curved grid of the complex model according to claim 1, characterized in that: in step 7, for the multi-layer space curved grid, the neighboring cells of the neighboring cells are further retrieved in a loop.
CN202111637505.5A 2021-12-30 2021-12-30 A 3D Space Curved Meshing Method for Complex Models Active CN114510775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111637505.5A CN114510775B (en) 2021-12-30 2021-12-30 A 3D Space Curved Meshing Method for Complex Models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111637505.5A CN114510775B (en) 2021-12-30 2021-12-30 A 3D Space Curved Meshing Method for Complex Models

Publications (2)

Publication Number Publication Date
CN114510775A true CN114510775A (en) 2022-05-17
CN114510775B CN114510775B (en) 2023-06-27

Family

ID=81548505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111637505.5A Active CN114510775B (en) 2021-12-30 2021-12-30 A 3D Space Curved Meshing Method for Complex Models

Country Status (1)

Country Link
CN (1) CN114510775B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115186074A (en) * 2022-06-24 2022-10-14 深圳市规划和自然资源数据管理中心 Meta analysis-based method for simulating spatial distribution pattern of pH value of soil
CN116401916A (en) * 2023-03-20 2023-07-07 北京云境智仿信息技术有限公司 Method, device, medium and equipment for generating high-quality three-dimensional grid

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130300735A1 (en) * 2012-05-14 2013-11-14 Autodesk, Inc. Mesh boundary smoothing
CN109636913A (en) * 2018-12-04 2019-04-16 山东理工大学 Triangle gridding increment topology joining method based on Delaunay subdivision
CN112015735A (en) * 2020-08-20 2020-12-01 西安数峰信息科技有限责任公司 A data storage structure and data storage method of unstructured grid

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130300735A1 (en) * 2012-05-14 2013-11-14 Autodesk, Inc. Mesh boundary smoothing
CN109636913A (en) * 2018-12-04 2019-04-16 山东理工大学 Triangle gridding increment topology joining method based on Delaunay subdivision
CN112015735A (en) * 2020-08-20 2020-12-01 西安数峰信息科技有限责任公司 A data storage structure and data storage method of unstructured grid

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
骆冠勇 等: "用逐点插入法生成Delaunay四面体自适应网络", 计算力学学报, vol. 24, no. 6, pages 917 - 922 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115186074A (en) * 2022-06-24 2022-10-14 深圳市规划和自然资源数据管理中心 Meta analysis-based method for simulating spatial distribution pattern of pH value of soil
CN116401916A (en) * 2023-03-20 2023-07-07 北京云境智仿信息技术有限公司 Method, device, medium and equipment for generating high-quality three-dimensional grid
CN116401916B (en) * 2023-03-20 2024-01-26 北京云境智仿信息技术有限公司 Method, device, medium and equipment for generating high-quality three-dimensional grid

Also Published As

Publication number Publication date
CN114510775B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
Li et al. Fourier neural operator with learned deformations for pdes on general geometries
CN112862972B (en) A Method of Surface Structure Mesh Generation
CN102306396B (en) Three-dimensional entity model surface finite element mesh automatic generation method
US20070057938A1 (en) Method and program for generating volume data from boundary representation data
JPH077426B2 (en) Shape design method or shape prediction method
CN114510775B (en) A 3D Space Curved Meshing Method for Complex Models
CN106504326A (en) Encryption Method of Terrain Elevation Sampling Points Considering Morphology Accuracy
Cao et al. Bi-stride multi-scale graph neural network for mesh-based physical simulation
CN111047687B (en) A solid modeling method for heterogeneous materials based on 3D T-splines
CN114004115A (en) Novel rapid three-dimensional pipe network half-gas thermal coupling evaluation method for complex cooling blades
CN102637304B (en) Method for synthesizing isotropic/anisotropic texture on geometric surface based on GPU (Graphics Processing Unit)
CN117272500A (en) Automatic generation method of rotary mechanical structure grid based on multi-block topology
CN117113525A (en) Rotary machine Gao Jiequ grid generation method based on multi-block topology and BRF
CN113111612B (en) Discrete point cloud repeated point fast searching method based on self-adaptive space subdivision
CN119129183B (en) A collision detection method for 3D CAD models based on BVH and sum-of-squares programming
CN110868325B (en) Uniform grid division method capable of reducing rigidity matrix construction difficulty
Chi et al. A conformal design approach of TPMS-based porous microchannels with freeform boundaries
Loseille et al. Developments on the P^ 2 cavity operator and Bézier Jacobian correction using the simplex algorithm.
CN118657078A (en) A large-scale fluid computing parallel optimization method and system for supercomputing environment
CN118691764A (en) Tunnel-free voxelization method for lightweight conceptual design prototype based on boundary marker filling
Alexa Polycover: Shape approximating with discrete surface orientation
Hou et al. Knot optimization for biharmonic b-splines on manifold triangle meshes
CN109801348B (en) Three-order high-precision convection interpolation algorithm suitable for three-dimensional fluid simulation
CN106777538A (en) A kind of bearing structure method of topological optimization design based on limited cellular description
CN119477662B (en) A GPU parallel acceleration method for subdivision volume parameter evaluation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant