CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: snappyHexMesh and Others (
-   -   snappyHexMesh: How can be avoided polyhedra (

idrama March 18, 2010 06:50

snappyHexMesh: How can be avoided polyhedra
Hello Foamers,

certainly a simple question: How can I avoid that snappyHexMesh generates polyhedrai.e. I just want a purely mesh consisting of hexhedra.

Cheers in advance!

mediode March 19, 2010 10:34

I am not too familiar with it, but I think you have to control the refinement. The refinment level should be even all over your domain. Another way would be to set a background mesh with your desired resolution and suppressing refinment totally, but the might create a huge amount of data.


File September 25, 2013 09:16


I need the same thing so just the information if you made some progress and if yes could you please describe how you did it??


haakon September 25, 2013 09:48

Unfortuneatly I do not think that it is possible to avoid polyhedras all together when using sHM. It's just the way it works. Even tough you can avoid many polyhedras by specifying uniform mesh density outside your geometry, I think that it still produces polyhedras when cutting cells and snapping to surfaces.

Anyways, if you need a pure hex mesh you are better of searching for an alternative grid generator. I know that GridPro can make some really amazing block-structured grids, however, it require much user training.

One small question: why do you need a grid withouut polyhedral cells?

File September 26, 2013 05:12

Tnx Hakon, I actually need structured mesh because I need it later to implement my own code on it after calculating flow field in OpenFOAM

Tobi September 27, 2013 06:35


ANSYS-ICEM can build only hexaedral meshes too but it could be very difficult.

Maybe the following tool will be good for your - depend on your geometry


All times are GMT -4. The time now is 23:37.