CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: snappyHexMesh and Others (
-   -   snappyHexMesh does not snap everywhere (

flowris February 11, 2011 06:47

snappyHexMesh does not snap everywhere
3 Attachment(s)

I am trying to make a mesh around a polyhedron that approximates a ball, using snappyHexMesh in 1.7.1. I try to snap the surface, but this only works out around the "equator" (xy-plane). Near the "poles" the mesh remains blocky and does not follow the surface.

What did I forget?

flowman February 13, 2011 18:56

It's not snapping to the surface because you have the refinement turned off.

In the refinementSurfaces section set level (1 1) to level (1 2) and in the refinementRegions section set levels ((1e5 0)) to levels ((1e5 2))

flowris February 14, 2011 03:12

I am sorry, but that does not help. I thought that anything that had to do with the snapping action, was in the snapControls subdictionary.

giovanidiniz June 4, 2013 14:23


I am having the exact same problem wit my geometry. Did you figure out what was going on?

kwardle June 5, 2013 13:52

Hello ~ this does seem like odd behavior and just looking at your dict file I don't see any obvious problems. However, you are using an old version of OF, one in which snappy was still relatively new. Many developments, especially with surface/feature snapping, have happened since then. I would suggest that you try it with a new(er) version and verify that you still have this problem.

mihaipruna June 11, 2013 10:40

might sound counterintuitive but try to decrease the maximum global cells.

giovanidiniz June 11, 2013 10:47


So, I figured out what the problem was.

In the blockMeshDict I had set the inlet and outlet patches as "empty".
As soon as I set them as "patches", everything worked out.

Thanks for the reply, though!


All times are GMT -4. The time now is 02:49.