ANSYS Fluent can use meshes composed of triangular or quadrilateral cells (or a combination of the two) in 2D, and tetrahedral, hexahedral, polyhedral, pyramid, or wedge cells (or a combination of these) in 3D. The choice of which mesh type to use will depend on your application. When choosing mesh type, consider the following issues:
setup time
computational expense
numerical diffusion
Many flow problems solved in engineering practice involve complex geometries. The creation of structured or block-structured meshes (consisting of quadrilateral or hexahedral elements) for such problems can be extremely time-consuming if not impossible. Therefore, setup time for complex geometries is the major motivation for using unstructured meshes employing triangular or tetrahedral cells. However, if your geometry is relatively simple, there may be no saving in setup time with either approach.
Other risks of using structured or block-structured meshes with complicated geometries include the oversimplification of the geometry, mesh quality issues, and a less efficient mesh distribution (for example, fine resolution in areas of less importance) that results in a high cell count.
If you already have a mesh created for a structured code, it will save you time to use this mesh in ANSYS Fluent rather than regenerate it. This can be a motivation for using quadrilateral or hexahedral cells in your ANSYS Fluent simulation.
Note: ANSYS Fluent has a range of filters that allow you to import structured meshes from other codes, including FLUENT 4. For details, see Mesh Sources.
When geometries are complex or the range of length scales of the flow is large, a triangular/tetrahedral mesh can be created with far fewer cells than the equivalent mesh consisting of quadrilateral/hexahedral elements. This is because a triangular/tetrahedral mesh allows clustering of cells in selected regions of the flow domain. Structured quadrilateral/hexahedral meshes will generally force cells to be placed in regions where they are not needed. Unstructured quadrilateral/hexahedral meshes offer many of the advantages of triangular/tetrahedral meshes for moderately-complex geometries.
A characteristic of quadrilateral/hexahedral elements that might make them more economical in some situations is that they permit a much larger aspect ratio than triangular/tetrahedral cells. A large aspect ratio in a triangular/tetrahedral cell will invariably affect the skewness of the cell, which is undesirable as it may impede accuracy and convergence. Therefore, if you have a relatively simple geometry in which the flow conforms well to the shape of the geometry, such as a long thin duct, use a mesh of high-aspect-ratio quadrilateral/hexahedral cells. The mesh is likely to have far fewer cells than if you use triangular/tetrahedral cells.
Converting the entire domain of your (tetrahedral) mesh to a polyhedral mesh will result in a lower cell count than your original mesh. Although the result is a coarser mesh, convergence will generally be faster, possibly saving you some computational expense.
In summary, the following practices are generally recommended:
For simple geometries, use quadrilateral/hexahedral meshes.
For moderately complex geometries, use unstructured quadrilateral/hexahedral meshes.
For relatively complex geometries, use triangular/tetrahedral meshes with wedge elements in the boundary layers.
For extremely complex geometries, use pure triangular/tetrahedral meshes.
A dominant source of error in multidimensional situations is numerical diffusion (false diffusion). The term false diffusion is used because the diffusion is not a real phenomenon, yet its effect on a flow calculation is analogous to that of increasing the real diffusion coefficient.
The following comments can be made about numerical diffusion:
Numerical diffusion is most noticeable when the real diffusion is small, that is, when the situation is convection-dominated.
All practical numerical schemes for solving fluid flow contain a finite amount of numerical diffusion. This is because numerical diffusion arises from truncation errors that are a consequence of representing the fluid flow equations in discrete form.
The second-order and the MUSCL discretization scheme used in ANSYS Fluent can help reduce the effects of numerical diffusion on the solution.
The amount of numerical diffusion is inversely related to the resolution of the mesh. Therefore, one way of dealing with numerical diffusion is to refine the mesh.
Numerical diffusion is minimized when the flow is aligned with the mesh.
This is the most relevant to the choice of the mesh. If you use a triangular/tetrahedral mesh, the flow can never be aligned with the mesh. If you use a quadrilateral/hexahedral mesh, this situation might occur, but not for complex flows. It is only in a simple flow, such as the flow through a long duct, in which you can rely on a quadrilateral/hexahedral mesh to minimize numerical diffusion. In such situations, it is advantageous to use a quadrilateral/hexahedral mesh, since you will be able to get a better solution with fewer cells than if you were using a triangular/tetrahedral mesh.
If you would like higher resolution for a gradient that is perpendicular to a wall, you can create prism layers with higher aspect ratios near the wall.