1 Introduction
In a nutshell, snappyHexMesh is a mesh generator that takes an already existing mesh (usually created with blockMesh) and chisels it into the mesh you want. But for this, it requires:
- A very well defined dictionary, namely system/snappyHexMeshDict.
- Good geometrical definitions, such as:
- STL/OBJ files with well defined surfaces;
- eMesh feature edge files, that define feature edges that have describe sharp corners.
Note: feature edges only available since .
Configuring both the dictionary file and providing good geometries can be a very arduous task. Therefore, at the moment of this writing (11:06, 18 August 2012 (CEST)), this wiki page will try to point you in the right direction, without describing each and every detail related to using snappyHexMesh. Feel free to contribute to this page!
2 Tutorials and Guides
Here are listed links to tutorials and guides on using snappyHexMesh:
- Official OpenFOAM User Guide, chapter 5.4 - Mesh generation with the snappyHexMesh utility
- A Comprehensive Tour of snappyHexMesh - 7th OpenFOAM Workshop (25 June 2012):
- Original source: EugenedeVilliers-TrainingSlides.tgz
- Local copy here at openfoamwiki.net: Final-AndrewJacksonSlidesOFW7.pdf
3 Tips
Here are listed links and direct tips on using snappyHexMesh.
3.1 Generate 2D meshes
Instructions/examples on how to generate 2D meshes using snappyHexMesh can be found in at least two places:
- Here at the wiki: Main_ContribExamples/2DsHM
- In the tutorial incompressible/pimpleDyMFoam/wingMotion/wingMotion_snappyHexMesh