Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
In cases where you want to resolve the boundary layer, it is often more efficient to use
prismatic cells in the boundary layer rather than tetrahedral cells. The prismatic cells
allow you to resolve the normal gradients associated with boundary layers with fewer
cells. The resulting mesh is referred to as a “viscous” hybrid mesh.
TGrid allows you to create a viscous hybrid mesh by growing prisms from the faces on the
surface mesh. It creates high quality prism elements near the boundary and tet elements
in the rest of the domain. TGrid also supports automatic collision detection and height
adjustment while growing prisms in a narrow gap. Prism creation also allows special
treatment for sharp corners.
This tutorial demonstrates the mesh generation procedure for a viscous hybrid mesh,
starting from a triangular boundary mesh for a sedan car body.
In this tutorial, the volume mesh generation comprises the following steps:
Prerequisites
This tutorial assumes that you have some experience with TGrid, and that you are familiar
with the graphical user interface.
c Fluent Inc. May 25, 2006 4-1
Viscous Hybrid Mesh Generation
Preparation
1. Download sedan.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 sedan.zip.
The file, sedan.msh can be found in the sedan folder created on unzipping the file.
4-2
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
c Fluent Inc. May 25, 2006 4-3
Viscous Hybrid Mesh Generation
(a) Select boundary in the Face Zone Groups selection list to select all boundary
zones in the Face Zones selection list.
(b) Click Display.
4-4
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
(c) Rotate the display and familiarize yourself with the boundary mesh.
• The wall zones defining the car body are car, wheel-front, and wheel-rear.
• The side and top of the domain are in the tunnel zone.
• The flow inlet and exit are inlet and outlet, respectively.
• The floor of the tunnel is ground.
• The symmetry boundary for the car and tunnel is symmetry.
c Fluent Inc. May 25, 2006 4-5
Viscous Hybrid Mesh Generation
Free nodes are nodes associated with free edges. There should not be any
i free nodes unless you have “thin walls” in your geometry. If free nodes are
located between a zone you are building prisms from and an adjacent zone,
TGrid will be unable to project to and retriangulate the adjacent zone.
(a) Select all the zones in the Tri Boundary Zones selection list.
(b) Click Check.
The Message box reports 69 violations. This means that there are 69 faces that
do not satisfy the circumcircle test. You may be able to improve these faces
by performing edge swapping.
(c) Click Improve until TGrid reports zero modifications in the Message box.
In this case, TGrid performs no modifications because the angles between the
face normals are greater than 10 degrees. It is possible to increase the Maximum
Angle between Face Normals to swap the edges of these faces, but doing so may
distort the discrete geometry represented by the boundary faces.
The presence of these violations does not necessarily mean that TGrid will fail
to initialize the tetrahedral mesh. To ensure that the faces are acceptable, check
that the maximum skewness is less than 0.75. If so, you need not worry about
the violations.
4-6
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
1. Select car, ground, wheel-front, and wheel-rear in the Boundary Zones selection list.
2. Select aspect-ratio in the Offset Method drop-down list and enter 5 for First Aspect
Ratio.
c Fluent Inc. May 25, 2006 4-7
Viscous Hybrid Mesh Generation
4-8
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
Figure 4.2: Collision of Prism Lay- Figure 4.3: Adjusted Prism Layers
ers to Avoid Collision
Y
Z X
Mesh
Restrictions: TGrid 4.0 (3D)
c Fluent Inc. May 25, 2006 4-9
Viscous Hybrid Mesh Generation
9. Verify that the normals for the selected zones are pointing in the right direction.
Display −→Grid...
(a) Select car, ground, wheel-front, and wheel-rear in the Face Zones selection list.
(b) Enable Normals under Options in the Attributes section of the Display Grid
panel.
(c) Click Display.
If you zoom in, the normals on the car, wheel-front, and wheel-rear zones point
outward, while those on the ground zone point upward.
10. Click Apply in the Prisms panel to save the prism parameters and save an interme-
diate mesh file.
It is a good practice to save the prism settings and the mesh file before generating
prisms. If for any reason you are dissatisfied with the prisms, you can read the
mesh file back in, modify the parameters, and try again.
4-10
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
c Fluent Inc. May 25, 2006 4-11
Viscous Hybrid Mesh Generation
Step 7: Examine the Prism Growth in the Proximity and Sharp Angle Regions
Now that the tetrahedral volume mesh has been generated, examine the prism growth in
the proximity and sharp angle regions.
Display −→Grid...
1. Examine the prism boundary faces and the retriangulated boundary zones.
(a) Select only symmetry in the Face Zones selection list in the Faces section of the
Display Grid panel.
(b) Click Display.
(c) Zoom in to see the boundary layers (Figure 4.5).
4-12
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
Y
Z X
Mesh
Restrictions: TGrid 4.0 (3D)
Figure 4.5: Quadrilateral and Retriangulated Faces of the Symmetry Zone–Zoomed View
TGrid reports the cells and faces that were moved to new zones.
ii. Select fluid-17 and fluid-17:1 in the Cell Zones selection list in the Cells tab.
iii. Click the Attributes tab and enable Filled and Lights under Options.
iv. Click the Colors... button in the Attributes tab and select Color by ID in
the Grid Colors panel.
v. Click Display (Figure 4.6).
3. Zoom in to the region of proximity of the car and the wheel.
In Figure 4.7, the prism heights are automatically adjusted to avoid collision of the
prism layers.
c Fluent Inc. May 25, 2006 4-13
Viscous Hybrid Mesh Generation
4-14
c Fluent Inc. May 25, 2006
Viscous Hybrid Mesh Generation
In Figure 4.8, the sharp corner region has been ignored while generating prisms.
(a) Select all the zones in the Cell Zones selection list.
c Fluent Inc. May 25, 2006 4-15
Viscous Hybrid Mesh Generation
(b) Click Compute to report the Minimum, Maximum, and Average cell skewness
values.
TGrid reports the Maximum Skewness to be around 0.92, which is acceptable.
You will have to fix the mesh if TGrid reports negative volumes or “left-
! handed” faces when it checks face handedness.
2. Save the mesh
File −→ Write −→Mesh...
(a) Change the Mesh File entry to sedan-vol.msh.
(b) Click OK to save the volume mesh.
3. Exit TGrid.
File −→Exit
Summary
This tutorial demonstrated the creation of viscous hybrid mesh starting from a triangular
mesh. You did the following:
• Set controls to create prisms from multiple zones using the additional growth op-
tions to detect proximity/collision and to ignore sharp corners
• Examined the region of proximity of the car and the wheel and the region near the
wheel and the ground
4-16
c Fluent Inc. May 25, 2006