Hexahedral mesh parameterization automatic generation method based on sweeping strategy
Through the hexahedral mesh parameterization automatic generation method based on sweep strategy, the problem of low degree of grid generation automation in finite element simulation analysis is solved, and the grid is quickly generated and adjusted, reducing the preprocessing time and technical difficulty.
Patent Information
- Application Number
- CN202410249494.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the pre-processing process in finite element simulation analysis, the degree of automation of hexahedral mesh generation is low and takes a long time, mainly relying on human-computer interaction, resulting in low automation and high time consumption.
The parameterized automatic generation method of hexahedral mesh based on sweep strategy is adopted to determine the calculation domain through the parameterized modeling process, and the grid is generated by sweep method, and the grid quality is checked by Ansys mechanical built-in multi-region method to simplify grid generation process.
The preprocessing time for finite element simulation analysis is shortened, technical difficulty is reduced, and the degree of automation of grid generation is improved, allowing rapid modification and adjustment of model grids.
Smart Images

Figure CN119004881A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided geometric design, and in particular to a method for automatically generating parameterized hexahedral meshes based on a sweeping strategy. Background Art
[0002] Statistics show that 70-80% of the time spent on finite element simulation analysis is spent on pre-processing, and more than half of this time is consumed by mesh generation. Most commercial CAD software and finite element pre-processing software use a sweeping method for hexahedral meshing, discretizing the model into basic cells before performing operations such as assembly, scanning, and stretching. This process primarily relies on human-computer interaction, resulting in a low degree of automation and a long processing time. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method for automatic parameterization and generation of hexahedral meshes based on a sweeping strategy. Based on the parametric modeling process, a matching hexahedral mesh generation scheme based on a sweeping method is proposed to shorten the pre-processing process of finite element simulation analysis.
[0004] The present invention solves the technical problem by adopting the following technical solutions:
[0005] A method for automatically generating parameterized hexahedral meshes based on a sweeping strategy includes the following steps:
[0006] S1, design the parameters required for parametric modeling of the stepped shaft and complete the parametric modeling process according to the design parameters;
[0007] S2, according to the parametric modeling process, the calculation domain of the sweeping method is determined to obtain the spatial position of each basic geometric body;
[0008] S3, mesh generation based on the spatial position of basic geometric bodies;
[0009] S4, complete the mesh generation process, convert the mesh file into a finite element engineering file, and check the mesh quality.
[0010] Furthermore, in S1, the parameters required for the stepped shaft structure are the length and diameter of the central cylinder and each hollow ring.
[0011] Furthermore, in S2, the sweeping idea is determined based on the parameters of the stepped shaft: the stepped shaft is composed of three hollow rings and a central cylinder; the given parameters are combined to determine the position of each basic geometric body in space.
[0012] Furthermore, the method for determining the position of each basic geometric body in space is as follows: the model sets the center of the right end face of the central cylinder as the zero point, and determines the spatial position of the central cylinder by the two parameters of radius R and length L; the starting position of the first hollow ring is L1, the thickness is R3-R, and the length is L2; the starting position of the second hollow ring is L1+L2, the thickness is R2-R, and the length is L3; the starting position of the third hollow ring is L1+L2+L3, the thickness is R1-R, and the length is L4.
[0013] Furthermore, the generation process of the central cylinder is as follows: based on the spatial position of the central cylinder, a two-dimensional plane mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the axial direction; the generation process of the first-segment hollow cylinder is as follows: based on the position of the first-segment hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder; the generation process of the second-segment hollow cylinder is as follows: based on the position of the second-segment hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder; the generation process of the third-segment hollow cylinder is as follows: based on the position of the third-segment hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder.
[0014] Furthermore, in S4, the method for checking mesh quality is to automatically divide the mesh using the built-in multi-region method of Ansys Mechanical and use the Jacobi ratio as a mesh quality reference to determine the degree of difference between the actual shape of the unit and the ideal shape of the unit of this type.
[0015] The present invention discloses a method for automatically generating parameterized hexahedral meshes based on a sweeping strategy, which has the following beneficial effects:
[0016] Based on the parametric modeling process, this paper proposes a complementary hexahedral mesh generation scheme using a sweeping method to shorten the pre-processing process for finite element simulation analysis. Parametric meshing allows for rapid mesh generation without the need for block partitioning of existing models, reducing the time and technical difficulty required for finite element analysis pre-processing. Furthermore, this parametric scheme allows for rapid modification and adjustment of the model's mesh. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of the method of the present invention;
[0018] Figure 2 Schematic diagram of the structure of the stepped shaft of the present invention;
[0019] Figure 3 It is a front view of the stepped shaft of the present invention;
[0020] Figure 4 A diagram for generating a central cylindrical grid of the present invention;
[0021] Figure 5 This is the first section of the hollow ring grid generated by the present invention;
[0022] Figure 6 This is the second section of the hollow ring grid generated by the present invention;
[0023] Figure 7 This is the third section of the hollow ring grid generation diagram of the present invention;
[0024] Figure 8 A diagram showing mesh generation using the built-in multi-zone method in Ansys Mechanical.
[0025] Figure 9 Automatically generate mesh quality-Jacobi ratios for ANSYS Mechanical's built-in multi-zone method;
[0026] Figure 10 A diagram for generating a grid using the method of the present invention;
[0027] Figure 11 To automatically generate mesh quality-Jacobi ratio using the method of the present invention;
[0028] Figure 12 This is the grid generation diagram of Example 1;
[0029] Figure 13 is a cross-sectional view of the grid of Example 2;
[0030] Figure 14 This is a side view of the grid of Example 2;
[0031] Figure 15 is a cross-sectional view of the grid of Example 3;
[0032] Figure 16 This is a side view of the grid of Example 3. DETAILED DESCRIPTION
[0033] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0034] Parametric modeling creates and edits models by introducing parameters. When new parameters are input, all objects are automatically created and changed, and the characteristics and relationships of each element in the model can be automatically determined. Parametric modeling can greatly improve modeling efficiency. For example, commonly used parts, typical structures, etc. can be quickly generated through parametric modeling. For models widely used in engineering, the geometric feature information of the model in the parametric modeling process can be pre-processed and converted into calculation domain information in the hexahedral mesh division process. The application of this process has positive significance for improving mesh generation. This technology will save a lot of time for CAE engineers. Based on this, the present invention provides a hexahedral mesh parameterization automatic generation method based on a sweeping strategy. The purpose is to propose a matching hexahedral mesh generation scheme based on the sweeping method based on the parametric modeling process to shorten the pre-processing process of finite element simulation analysis.
[0035] Based on the idea of parametric modeling, for commonly used models in engineering such as shaft systems and boxes, the sweep method is used to achieve fully automatic generation of hexahedral meshes based on parameters. The invention will design a mesh generation idea based on the idea of the parametric modeling process of the stepped shaft, generate the mesh and perform a preliminary analysis of the mesh quality. Figure 1 The present invention discloses a method for automatically generating parameterized hexahedral meshes based on a sweeping strategy, comprising the following steps:
[0036] S1, design the parameters required for parametric modeling of the stepped shaft and complete the parametric modeling process according to the design parameters;
[0037] S2, according to the parametric modeling process, the calculation domain of the sweeping method is determined to obtain the spatial position of each basic geometric body;
[0038] S3, mesh generation based on the spatial position of basic geometric bodies;
[0039] S4, complete the mesh generation process and convert the mesh file into a finite element engineering file, check the mesh quality, and compare it with commercial meshing methods.
[0040] In S1 of this embodiment, the parameters required for the stepped shaft structure are the length and diameter of the central cylinder and each hollow ring segment.
[0041] In S2 of this embodiment, the sweeping idea is determined according to the parameters of the stepped shaft: the stepped shaft is composed of three hollow rings and a central cylinder, such as Figure 2 As shown; the given parameters are combined to determine the position of each basic geometric body in space.
[0042] like Figure 3As shown in the figure, the method for determining the position of each basic geometric body in space is as follows: the model sets the center of the right end face of the central cylinder as the zero point, and determines the spatial position of the central cylinder by the two parameters of radius R and length L; the starting position of the first hollow ring is L1, the thickness is R3-R, and the length is L2; the starting position of the second hollow ring is L1+L2, the thickness is R2-R, and the length is L3; the starting position of the third hollow ring is L1+L2+L3, the thickness is R1-R, and the length is L4.
[0043] In S3 of this embodiment, the process of generating the central cylinder is as follows: based on the spatial position of the central cylinder, a two-dimensional plane mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the axis direction, such as Figure 4 As shown in the figure, the process of generating the first hollow cylinder is as follows: based on the position of the first hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder, as shown in the figure. Figure 5 As shown in the figure, the second hollow cylinder generation process is as follows: based on the position of the second hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder, as shown in the figure. Figure 6 As shown in the figure, the generation process of the third hollow cylinder is as follows: based on the position of the third hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder, as shown in the figure. Figure 7 shown.
[0044] In S4 of this embodiment, the method for checking the mesh quality is: using the built-in multi-region method of Ansys Mechanical to automatically divide the mesh, such as Figure 8 and Figure 9 As shown in the figure, the Jacobi ratio (MAPDL) is used as the mesh quality reference to compare with the mesh generation method of the present invention. Figure 10 and Figure 11 The Jacob Ratio is used to determine how much the actual shape of a cell differs from the ideal (standard) shape for that type of cell. Values are ≥ 1. A Jacob Ratio of 1 indicates an ideal shape, while larger values increase the mesh's distortion. A high-quality mesh's Jacob Ratio ranges from 1 to 10.
[0045] Based on the parametric modeling process, this paper proposes a complementary hexahedral mesh generation scheme using a sweeping method to shorten the pre-processing process for finite element simulation analysis. Parametric meshing allows for rapid mesh generation without the need for block partitioning of existing models, reducing the time and technical difficulty required for finite element analysis pre-processing. Furthermore, this parametric scheme allows for rapid modification and adjustment of the model's mesh.
[0046] Example 1
[0047] Set the length and diameter of each shaft from left to right to be: 60mm / 25mm, 39mm / 28mm, 39mm / 31mm, 39mm / 34mm, 30mm / 25mm. Set the parameter group and divide the model into three hollow rings and a central cylinder. Use the generation command of the corresponding model in the program console to generate the corresponding model mesh and complete the node merging operation. The final number of nodes is 17527 and the number of units is 15936. Use the parameters used in this process to complete the modeling in the software, set the mesh size to 3mm, and use the multi-region method to automatically generate the mesh, such as Figure 12 shown.
[0048] Example 2
[0049] The following model is automatically generated based on the hexahedral mesh parameterization of the present invention: end cap.
[0050] End caps are components included in most mechanical structures and are often used to seal shafts in housings or as valve body closures. Based on common end cap shapes, design and generate end cap hexahedron meshes, such as Figure 13 and Figure 14 shown.
[0051] Example 3
[0052] The following models are automatically generated based on the hexahedral mesh parameterization of the present invention: a cuboid model (including local encryption).
[0053] In common collision simulations, cube models are more common. Since high-speed simulations have strict requirements on the size and number of meshes, the present invention includes a local encryption process for some models, designs and generates end cap hexahedron meshes, such as Figure 15 and Figure 16 shown.
[0054] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for automatic generation of hexahedral mesh parameterization based on a sweeping strategy, characterized in that: The steps include: S1, design the parameters required for parametric modeling of the stepped shaft, and complete the parametric modeling process according to the design parameters; S2, determining the computational domain of the sweeping method according to the parametric modeling process, and obtaining the spatial position of each basic geometric body; S3, mesh generation based on the spatial position of the basic geometric body; S4, complete the mesh generation process, convert the mesh file into a finite element engineering file, and check the mesh quality.
2. The method for automatically generating hexahedral mesh parameters based on a sweep strategy according to claim 1, characterized in that: In S1, the parameters required for the stepped shaft structure are the length and diameter of the central cylinder and each hollow ring.
3. The method for automatically generating hexahedral mesh parameters based on a sweep strategy according to claim 2, characterized in that: In S2, the sweeping idea is determined according to the parameters of the stepped shaft: the stepped shaft is composed of three hollow rings and a central cylinder; the given parameters are combined to determine the position of each basic geometric body in space.
4. The method for automatically generating hexahedral mesh parameters based on a sweep strategy according to claim 3, characterized in that: The method for determining the position of each basic geometric body in space is as follows: the model sets the center of the right end face of the central cylinder as the zero point, and determines the spatial position of the central cylinder by the two parameters of radius R and length L; the starting position of the first hollow ring is L1, the thickness is R3-R, and the length is L2; the starting position of the second hollow ring is L1+L2, the thickness is R2-R, and the length is L3; the starting position of the third hollow ring is L1+L2+L3, the thickness is R1-R, and the length is L4.
5. The method for automatically generating hexahedral mesh parameters based on a sweep strategy according to claim 4, characterized in that: The generation process of the central cylinder is as follows: based on the spatial position of the central cylinder, a two-dimensional plane mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the axial direction; the generation process of the first-segment hollow cylinder is as follows: based on the position of the first-segment hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder; the generation process of the second-segment hollow cylinder is as follows: based on the position of the second-segment hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder; the generation process of the third-segment hollow cylinder is as follows: based on the position of the third-segment hollow ring, a two-dimensional mesh is first constructed, and then a hexahedral mesh is generated by sweeping along the circumferential direction and merged with the central cylinder.
6. The method for automatically generating hexahedral mesh parameters based on a sweep strategy according to claim 5, characterized in that: In S4, the method for checking mesh quality is to automatically divide the mesh using the built-in multi-zone method of Ansys mechanical, and use the Jacobi ratio as a mesh quality reference to determine the degree of difference between the actual shape of the unit and the ideal shape of this type of unit.
Citation Information
Cited By
Hexahedral mesh model generation method, CAE software, equipment and medium
CN120526079A
