CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   cell shapes (

guy_smiling September 12, 2010 15:24

cell shapes
I'm trying to use blockMesh (and create a blockMeshDict file) with keywords other than "hex". There seems to be conflicting documentation: in I see that I need to have 8 vertices, and all blocks are inherently hexahedral; in order to make a prism I need to collapse two vertices, and still use hex.

However, here apparently I can use any of these keywords listed (such as prism) to generate a prism with only 6 vertices. I have found that the keyword prism in blockMeshDict still gives me 8 vertices (two of which are garbage) or 7 (one of which is garbage) if I order the vertices in a wrong way.

Is there some way to get a different geometry besides hex in blockMesh? Does anyone know how to use blockMesh without just hex?

mturcios777 September 13, 2010 16:49

The cellShapes tools only apply when you writing your own mesh conversion utility, or using a mesh conversion utility. From the link you provided:

The vast majority of mesh generators and post-processing systems support only a fraction of the possible polyhedral cell shapes in existence. They define a mesh in terms of a limited set of 3D cell geometries, referred to as cell shapes. The OpenFOAM library contains definitions of these standard shapes, to enable a conversion of such a mesh into the polyMesh format described in the previous section.

blockMesh only ever uses hexes, and all other degenerate hexa are created by collapsing points. Hope this clears up your question.

All times are GMT -4. The time now is 16:14.