# Tetrahedral Vs. Hexahedral Mesh (Mesh Comparison)

• As we know that the accuracy of CFD simulation highly depends on mesh quality. If mesh quality is not good but the solution procedure is carried out in the best way, then it may possible to achieve an inaccurate result. No one mesh type is universally acceptable. Accuracy of different types of mesh depends on the model or object which is to be analyzed. Different mesh types give different results. There are many mesh type available is Ansys fluent. Here I did a little comparison between tetrahedrons ( Unstructural mesh ), hex dominant ( Structural mesh ) and hex prism mesh and analysis carried out is velocity analysis at the outlet of pipe, pressure analysis at the outlet of pipe and temperature analysis on the wall of the pipe. Note that analysis is done in ‘fluent’ software.
• First of all, I create simple geometry as shown in fig below… • Geometry has 2 inlets, inlet-1, and inlet-2 has a diameter of 10 cm and 7 cm respectively. Inlet velocity at inlet-1 is 1 m/sec with temperature 335 k and inlet velocity at inlet-2 is 0.5 m/sec with temperature 315 k. The outlet diameter is 7 cm. For simply understanding, all parameters are indicated in the above fig.

After that, I created different types of mesh ( tetrahedrons, hex dominant, hex prism ) shown in fig below.

## Tetrahedral mesh

###### While generating the above mesh, the following parameter is taken.
• Physics preference = cfd
• Solver preference = fluent
• Element order = liner
• Mesh size = 10 mm
• Use adaptive sizing = No
• Growth rate = Default (1.2)

###### After creating a fluid domain and applying name selection, the setup is done. While the setup of above mesh, the following parameter is taken.
• Gravitational acceleration = -9.81 m/s2 ( negative Y – axis)
• Model = energy equation is on and the laminar model is taken.
• Fluid material = water-liquid
• Boundary condition = at both inlet ‘velocity inlet’ boundary condition is taken. at outlet ‘outflow’ boundary condition is taken. at the pipe wall ‘wall’ boundary condition is taken.
• Solution method = SIMPLE ( Semi Implicit Method for Pressure Linked Equation ) algorithm which is widely used in the numerical procedure to solve Navier stokes equations.
• Residual = 1 * e-3

## Hex prism mesh

### Conclusion

I already mentioned that no one mesh type is universally acceptable. The reliability of the mesh depends on the object or model which is to be analyzed. Here I have done little experiment between the above three mesh types and the result obtained is related to the above geometry.

• Another thing is to conclude that mesh with more number of elements takes more time to converged . For example, the tetrahedral mesh has 39386 element which is the highest elements compare to the remaining two mesh, and tetrahedrons mesh take more ( 2 min 52 sec ) time to converged the solution. Other hands, hex prism mesh have less no. of elements (7216) but it has the highest number of nodes and time required to converge the solution is 1 min 5 sec because of less no. of elements.The above fig shows a graphical representation of nodes and elements. From the graph, it is concluded that mesh which has less no. of node, has more no. of element and mesh which have more no. of node, have less no. of element.
• Finally from CFD result, For faster CFD simulation, hex prism mesh can use. But if you do not have a time constrain then the tetrahedral mesh is good and gives a better result.

### Result of analysis 