Running SnappyHexMesh - Solid Region

Utility snappyHexMesh refines background mesh in the direction to the surface model, reading set-up from system/snappyHexMeshDict. Create the mesh running snappyHexMesh utility:

 snappyHexMesh

Renumber mesh using renumberMesh utility:

 renumberMesh -latestTime

When finished, check the mesh running checkMesh and view the mesh in paraview:

 checkMesh
 paraFoam

 

Figure: Solid mesh view

The final mesh is located in the directory called by a number. Copy the mesh to the constant/polyMesh directory and remove unnecessary directories:

 cp -rf 2/polyMesh/* constant/polyMesh/
 rm -rf 1 2 3 processor*