the advantage of polyhedral

2
S ince the introduction of the STAR-CCM+ solver and an automatic polyhedral mesher by CD-adapco, we are asked one question more than any other: why use polyhedral rather than tetrahedral meshes? In this article we provide some explanations and a demonstration providing some answers to this question. Tetrahedra are the simplest volume elements; their faces are plane segments, so both face and volume centroid locations are well defined. Tetrahedral meshes are also relatively easy to generate automatically; their use is often standard practice in automatic mesh generation and they are used by all major CFD software tools. On the negative side, tetrahedra cannot be stretched too much, so in order to achieve a reasonable accuracy in boundary layers, long channels or small gaps, a much larger number of control volumes is needed than if structured (hexahedral) meshes are used. These problems are partly overcome by using prism layers along walls. Tetrahedral control volumes have only four neighbors, and computing gradients at cell centers using standard approximations (linear shape functions) can be problematic. One problem is linked with the spatial position of neighbor nodes, because they may all lie in nearly one plane, making it impossible to evaluate the gradient in the direction normal to that plane. Another problem is encountered for cells next to boundaries: even when only one face is a boundary face, the remaining three neighbors may be unfavorably distributed, moreover along edges or at corners, one may end up with only one or two neighbor cell, which can cause serious numerical problems, let alone reduced accuracy. In order to achieve accurate solutions and good convergence properties on tetrahedral meshes, one needs special discretization techniques and a large number of cells. None of these remedies is optimal; the first makes the code more complicated, more difficult to extend and maintain, while the second increases the memory and computing time requirements. Polyhedra offer the same automatic meshing benefits as tetrahedra while overcoming these disadvantages. A major advantage of polyhedral cells is that they have many neighbors (typically of order 10), so gradients can be much better approximated (using linear shape functions and the information from nearest neighbors only) than is the case with tetrahedral cells. Even along wall edges and at corners, a polyhedral cell is likely to have a couple of neighbors, thus allowing for a reasonable prediction of both gradients and local flow distribution. The fact that more neighbors means more storage and computing operations per cell is more than compensated by a higher accuracy, as will be demonstrated below. Polyhedral cells are also less sensitive to stretching than tetrahedra. Smart grid generation and optimization techniques offer limitless possibilities: cells can automatically be joined, split, or modified by introducing additional points, edges and faces. Indeed, substantial improvements in grid quality are expected in the future, benefiting both solver efficiency and accuracy of solutions. Also, many situations with tetrahedral meshes requiring special treatment in the solver cease to be special when using polyhedral cell topology: cell-wise local mesh refinement, sliding grid interfaces, periodic boundaries, etc., only create special types of polyhedra, but for the solver they are all the same. Polyhedral cells are especially beneficial for handling recirculating flows. Tests have shown that, for example, in the cubic lid-driven cavity flow, many fewer polyhedra are needed to achieve a specified accuracy than even Cartesian hexahedra (which one would expect to be optimal for rectangular solution domains). This can be explained by The advantage of polyhedral meshes Milovan Peric and Stephen Ferguson, CD-adapco fig:01

Upload: electricv

Post on 26-Nov-2015

134 views

Category:

Documents


9 download

TRANSCRIPT

  • Since the introduction of the STAR-CCM+ solver and anautomatic polyhedral mesher by CD-adapco, we are asked onequestion more than any other: why use polyhedral rather thantetrahedral meshes? In this article we provide some explanations anda demonstration providing some answers to this question.

    Tetrahedra are the simplest volumeelements; their faces are planesegments, so both face andvolume centroid locations arewell defined. Tetrahedralmeshes are also relativelyeasy to generateautomatically; their use isoften standard practice inautomatic meshgeneration and they areused by all major CFDsoftware tools. On the negativeside, tetrahedra cannot bestretched too much, so in order toachieve a reasonable accuracy inboundary layers, long channels or smallgaps, a much larger number of control volumes is needed than ifstructured (hexahedral) meshes are used. These problems are partlyovercome by using prism layers along walls.

    Tetrahedral control volumes have only four neighbors, and computinggradients at cell centers using standard approximations (linear shapefunctions) can be problematic. One problem is linked with the spatialposition of neighbor nodes, because they may all lie in nearly oneplane, making it impossible to evaluate the gradient in the directionnormal to that plane. Another problem is encountered for cells next toboundaries: even when only one face is a boundary face, theremaining three neighbors may be unfavorably distributed, moreoveralong edges or at corners, one may end up with only one or twoneighbor cell, which can cause serious numerical problems, let alonereduced accuracy.

    In order to achieve accurate solutions and good convergenceproperties on tetrahedral meshes, one needs special discretizationtechniques and a large number of cells. None of these remedies isoptimal; the first makes the code more complicated, more difficult toextend and maintain, while the second increases the memory andcomputing time requirements.

    Polyhedra offer the same automatic meshing benefits as tetrahedrawhile overcoming these disadvantages.

    A major advantage of polyhedral cells is that they have many neighbors(typically of order 10), so gradients can be much better approximated(using linear shape functions and the information from nearestneighbors only) than is the case with tetrahedral cells. Even along walledges and at corners, a polyhedral cell is likely to have a couple ofneighbors, thus allowing for a reasonable prediction of both gradientsand local flow distribution. The fact that more neighbors means morestorage and computing operations per cell is more than compensatedby a higher accuracy, as will be demonstrated below.

    Polyhedral cells are also less sensitive to stretching than tetrahedra.Smart grid generation and optimization techniques offer limitlesspossibilities: cells can automatically be joined, split, or modified byintroducing additional points, edges and faces. Indeed, substantialimprovements in grid quality are expected in the future, benefiting bothsolver efficiency and accuracy of solutions. Also, many situations withtetrahedral meshes requiring special treatment in the solver cease tobe special when using polyhedral cell topology: cell-wise local meshrefinement, sliding grid interfaces, periodic boundaries, etc., onlycreate special types of polyhedra, but for the solver they are all thesame.

    Polyhedral cells are especially beneficial for handling recirculatingflows. Tests have shown that, for example, in the cubic lid-driven cavityflow, many fewer polyhedra are needed to achieve a specifiedaccuracy than even Cartesian hexahedra (which one would expect tobe optimal for rectangular solution domains). This can be explained by

    The advantage ofpolyhedral meshes

    Milovan Peric and Stephen Ferguson, CD-adapco

    fig:01

  • the fact that, for a hexahedral cell, there are three optimal flowdirections which lead to the maximum accuracy (normal to each of thethree sets of parallel faces); for a polyhedron with 12 faces, there aresix optimal directions which, together with the larger number ofneighbors, leads to a more accurate solution with a lower cell count.

    A more detailed analysis of properties of various mesh types and someresults from test cases are published in an article by Peric (2004) [1].

    Comparisons in many practical tests have verified that with polyhedralmeshes, one needs about four times fewer cells, half the memory anda tenth to fifth of computing time compared to tetrahedral meshes toreach solutions of the same accuracy. In addition, convergenceproperties are much better in computations on polyhedral meshes,where the default solver parameters usually do not need to beadjusted. An example is presented below to demonstrate this.

    The test case represents a water jacket of an engine; the pressuredrop between inlet and outlet is the relevant engineering quantity thatis monitored. Computations were performed on six polyhedral and sixtetrahedral grids, with numbers of cells ranging between 21872 and593888 (polyhedra) and between 39587 and 2322106 (tetrahedra).Prismatic layers along walls were generated in all cases. Figure 01shows one polyhedral mesh.

    Figure 02 shows computed pressure distribution on the finesttetrahedral and polyhedral mesh. Since these meshes were very fine,the results are also very similar. In order to determine the meshdependency of the solutions, the pressure drops computed on all gridsare compared in Figure 03. This figure shows that the results fromboth grid types are indeed as required converging against a grid-independent value. In all cases, the same discretization and solutionmethod was used (second-order upwind differencing scheme forconvective fluxes)

    It is important to note that the results obtained on any polyhedralmesh are more accurate than the results obtained on a tetrahedralmesh with a comparable number of cells. Actually, the result frompolyhedral mesh with 65513 cells is slightly more accurate than theresult from a tetrahedral mesh with 393273 cells (about 6 timesmore). The computing time on this polyhedral mesh is less than onetenth of the computing time for the tetrahedral mesh that woulddeliver the same accuracy. Similar conclusions resulted from allcomparative applications performed so far, verifying that the decisionby CD-adapco to develop this new technology was the right one. Withthe availability of CD-adapco's fully-automatic mesh generation toolsfor polyhedral control volumes, polyhedral meshes are expected tosoon become the standard in engineering applications.

    Reference[1] M. Peric: Flow simulation using control volumes of arbitrarypolyhedral shape, ERCOFTAC Bulletin, No. 62, September 2004.

    Figures01: One polyhedral mesh for the computation of flow through a water jacket of

    an engine.02: Pressure distribution on the walls of the water jacket as predicted on the

    finest tetrahedral mesh (left) and the finest polyhedral mesh (right).03: Pressure drop between inlet and outlet of the water jacket, as predicted on

    different tetrahedral and polyhedral meshes.

    fig:02

    fig:03