Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
The grid generation process is highly automated in TGrid. In most cases, you can use the
Auto Mesh feature of TGrid to create the volume mesh from the surface mesh. However,
in some cases, the boundary mesh contains irregularities or highly skewed boundary faces
that can lead to an unacceptable volume mesh or cause TGrid to fail while generating
the initial mesh. As a rule of thumb, check the boundary mesh before attempting to
generate the volume mesh.
This tutorial demonstrates the mesh generation procedure for a problem that has multiple
regions. It also demonstrates the procedure for generating a volume mesh using the
automatic refinement feature of TGrid.
In this tutorial, you will learn the volume mesh generation process which comprises the
following steps:
c Fluent Inc. May 25, 2006 2-1
Tetrahedral Mesh Generation
Some steps described in this tutorial may not be required in all cases, but
i are included to highlight the general capabilities of TGrid. Steps 2 through
7 explain the diagnostic tools in TGrid. In most cases where you know the
boundary mesh is acceptable, use the Auto Mesh/Initialize menu item to
perform the minimal boundary mesh checks and initialize the boundary
mesh, and then proceed to Step 8.
Prerequisites
This tutorial assumes that you have little experience with TGrid, but that you are familiar
with the graphical user interface.
Preparation
1. Download valve.zip from the Fluent Inc. User Services Center to your working
directory. This file can be found from the Documentation link on the TGrid product
page.
OR
2. Unzip valve.zip.
The file, valve-sf.msh is found in the valve folder created on unzipping the file.
2-2
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
c Fluent Inc. May 25, 2006 2-3
Tetrahedral Mesh Generation
(a) Select boundary in the Face Zone Groups selection list to select all the boundary
zones in the Face Zones selection list.
(b) Click Display.
Y
XZ
Mesh
Restrictions: TGrid 4.0 (3D)
2-4
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
450.00
400.00
350.00
300.00
250.00
Faces
200.00
150.00
100.00
50.00
0.00
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00
Y
XZ
Quality
Extra: You can change the Minimum and Maximum skewness to display the number of
faces between two skewness values. It is a good practice to display the upper end of
the skewness range (e.g., between 0.8 and 1.0).
c Fluent Inc. May 25, 2006 2-5
Tetrahedral Mesh Generation
As a rule of thumb, keep the maximum boundary face skewness below 0.85. TGrid has
tools to improve the face skewness (as desribed in Step 4). This is practical only if you
have a relatively small number of boundary faces that are highly skewed. Otherwise, it is
recommended that you regenerate the boundary mesh using your surface mesh generator.
Free nodes are nodes associated with free edges. There should not be any
i free nodes unless there are “thin walls” in the geometry. If a boundary
mesh contains free nodes when there should be none, there will be “holes”
in the boundary mesh and TGrid will report a “no live zone” error after
initializing the boundary mesh. Merging free nodes and deleting unused
nodes are part of the automatic procedure performed by TGrid when the
Auto Mesh/Initialize or Auto Mesh/Init & Refine menu item is used.
2-6
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
c Fluent Inc. May 25, 2006 2-7
Tetrahedral Mesh Generation
The skewness of the volume mesh is always higher than that of the corresponding
boundary mesh. Try to improve the boundary mesh by edge swapping. When you use
Auto Mesh/Initialize or Auto Mesh/Init & Refine, Improve is automatically invoked.
Edge swapping does not always reduce the skewness of the boundary mesh.
! If the boundary mesh is still highly skewed, perform manual repairs, as
described in Step 5.
2-8
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
2. Collapse boundary face bf4995 by merging the selected boundary node with the
longest edge of the face.
(a) Click Merge under Operation.
The modified mesh is shown in Figure 2.4.
If Auto Redisplay is selected in the Modify Boundary panel, the display will
i be updated after every operation. The graphics window update may take
some time if you are displaying a large part of the boundary mesh, or if
you do not restrict the display to the neighborhood of an object.
c Fluent Inc. May 25, 2006 2-9
Tetrahedral Mesh Generation
Y
Z X
Mesh
TGrid 4.0 (3D)
Y
Z X
Mesh
TGrid 4.0 (3D)
2-10
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
3. Click Skew in the Swap Face Edges panel to check the worst boundary face .
Boundary −→Faces...
Ideally, you should continue to modify the boundary faces until the maximum boundary
face skewness is below 0.85. In this tutorial, you will now proceed with the rest of the
mesh generation procedure.
• If you want to mesh multiple regions, change the Non-Fluid Type to solid or fluid
depending on the problem.
• If you have multiple fluid and solid regions, choose one of them and modify the
zone types as necessary using the Cell Zones panel or the solver. When Non-Fluid
Type is set to some parameter other than dead, TGrid treats all the zones as active
zones and automatically refines these zones.
• If your mesh has only one region, this step is not necessary.
c Fluent Inc. May 25, 2006 2-11
Tetrahedral Mesh Generation
i You can also use the Auto Mesh/Initialize menu item to initialize the bound-
ary mesh and to perform node merging and edge swapping (as in Steps 3
and 4).
• By default, Auto Mesh/Refine performs two refinement cycles (i.e., the Number of
Levels in the Auto Mesh Controls panel is set to 2). The refinement parameters for
the first two cycles are listed below:
Level 1 2
Max Cell Skew 0.85 0.70
Max Boundary Skew 0.70 0.70
Min Boundary Closeness 0.85 0.50
• To add more cells to the volume mesh after the automatic mesh refinement with
Auto Mesh/Refine is complete, change the refinement parameters and refine the
mesh manually, as shown in Step 9. You can also increase the Number of Levels in
the Auto Mesh Controls panel and invoke the Auto Mesh/Refine menu item again.
2-12
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
1. Enable Boundary Cells, Cell Zones, and Must Improve Skewness under Refine Options.
2. Click the Refine Controls... button to open the Refinement Controls panel.
(a) Enter 0.6 for Max Cell Skew, 0.6 for Max Boundary Cell Skew, and 0.5 for Min
Boundary Closeness, respectively.
(b) Click OK to close the Refinement Controls panel.
4. Click Swap until TGrid reports that zero faces were swapped.
5. Enter 0.8 for Minimum Skewness, 10 for Iterations, and 0.1 for Minimum Skewness
Change, respectively.
c Fluent Inc. May 25, 2006 2-13
Tetrahedral Mesh Generation
6. Click Smooth.
If more cells are needed, repeat Step 9 with lower refinement parameters.
(a) Select all the zones in the Cell Zones selection list.
(b) Click Plot.
The default quality measure is skewness. Other measures (aspect ratio and
change in size) can be selected in the Quality Measure panel.
2-14
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
700.00
600.00
500.00
400.00
Cells
300.00
200.00
100.00
0.00
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 1.00
Y
Z X Quality
(a) Select all the zones in the Cell Zones selection list.
(b) Click Compute to report the minimum, maximum, and average cell skewness
values.
Note: The maximum skewness of the present volume mesh is acceptable. If you cannot
improve the skewness of the volume mesh by global refinement, refine each individual
cell that is highly skewed.
c Fluent Inc. May 25, 2006 2-15
Tetrahedral Mesh Generation
3. Exit TGrid.
Exit TGrid when the mesh generation is complete.
File −→Exit
2-16
c Fluent Inc. May 25, 2006
Tetrahedral Mesh Generation
Summary
This tutorial demonstrated the use of some of the automatic and manual meshing features
in TGrid. The possible applications of the tools you learned to use are:
• Generate the mesh using only the automatic features (often possible for high-quality
surface meshes).
• Perform some manual repairs, and then continue the mesh generation automatically
(often possible for surface meshes with isolated troubles).
• Generate the mesh automatically and then manually refine it further (often possible
for high-quality surface meshes for which more refinement is needed).
• Perform all or most of the mesh generation manually (likely if the surface mesh has
many problems or the geometry is very complicated).
Always check the boundary mesh before attempting to generate the volume mesh.
• If the boundary mesh seems satisfactory (i.e., the faces are not highly skewed), try
using the Auto Mesh/Init & Refine menu item to automatically generate the mesh.
• If there are problems in the boundary mesh, or if automatic meshing fails, use some
of the manual procedures demonstrated here and described in the TGrid User’s
Guide.
c Fluent Inc. May 25, 2006 2-17
Tetrahedral Mesh Generation
2-18
c Fluent Inc. May 25, 2006