- First step of the meshing process is a definition of a background mesh.
- Background mesh is an initial mesh from which snappyHexHesh starts generating the final mesh following an input geometry.
- The background mesh must include hexahedras only.
- Boundaries of the background mesh can fully (or partially) define the outer shape of the final mesh (typically for external aero simulations), or can disappear (typically for internal aero simulations). Therefore, background mesh position and dimensions are crucial.
- The simplest way for defining the background mesh is to set and run blockMesh utility.
- In this example, the blockMesh mesh is defined so that the input geometry sits inside the backgroundm mesh, see Figure .
Figure: Background mesh position.
- Go to the case and run:
# blockMesh > log.blockMesh 2>&1 &
- The background mesh together with the input geometry can be visualized in ParaView. In the test case directory run:
# paraFoam &
- visualize internalMesh (from Mesh Parts)
- set Wireframe representation (default is Surface)
- open *.stl files from costant/triSurface directory
- Whenever the background mesh is properly defined the snappyHexMesh-ing can be performed.