CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Meshing & Mesh Conversion (
-   -   snappyHexMesh (

mlong74 June 26, 2013 10:41

Hey Everyone,

I am currently running the blockMesh-snappyHexMesh combo, but I need some help. I'm trying to get the mesh around my imported object to have a finer mesh. As of now, the gradient of mesh fineness quickly turns the mesh into rather large cells.

Is there a way to make the mesh generated around the object to expand to the entire blockmesh or at least a direction?

chegdan June 26, 2013 11:52

In snappyHexMesh, you can do some distance refinement from the .stl surface doing something like


      {                            // refinement level 5 within 1.0 m
          mode distance;            // refinement level 3 within 2.0 m
          levels ((1.0 5) (2.0 3)); // levels must be ordered nearest first

This is a per-stl surface and not a per-patch feature of SHM. See some of the documentation for further details.

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