Difference between revisions of "SnappyHexMesh"

From OpenFOAMWiki
m (Added line breaks before each chapter)
(Tips: Added GUI references)
Line 38: Line 38:
 
* Instructions on how to remove an external unwanted region: [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/96545-background-mesh-snappy-multi-domain-cht.html#post341623 Background Mesh in snappy with multi domain (CHT) post #3]
 
* Instructions on how to remove an external unwanted region: [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/96545-background-mesh-snappy-multi-domain-cht.html#post341623 Background Mesh in snappy with multi domain (CHT) post #3]
 
** Note: this happens whenever the base mesh doesn't coincide with the outer limits of the target surface geometry. The tutorial <tt>heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater</tt> is such an example where the outside of the original STL files coincides with the base mesh.
 
** Note: this happens whenever the base mesh doesn't coincide with the outer limits of the target surface geometry. The tutorial <tt>heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater</tt> is such an example where the outside of the original STL files coincides with the base mesh.
 +
 +
== GUI (Graphical User Interfaces) ==
 +
Currently there are several interactive ways (using GUI) of generating meshes with <tt>snappyHexMesh</tt>. Here will only be listed the ones that are '''open-source''':
 +
; [http://www.discretizer.org Discretizer] : Check the [http://www.discretizer.org/node/14 Screencasts] page for more information.
 +
 +
; [[SwiftSnap]] : A very useful plug-in for Blender for configuring <tt>snappyHexMeshDict</tt>. There is [[SwiftBlock]] for <tt>blockMeshDict</tt> as well!
 +
 +
; [http://engys.com/products/helyx-os Helyx<sup>OS</sup>] : A GUI for using OpenFOAM. See the video tutorials: <br><ul><li>[http://www.youtube.com/watch?v=yJbFnFzDLqo Helyx<sup>OS</sup> - Example: External Aerodynamics Setup]</li><li>[http://www.youtube.com/watch?v=ZdQsHhZJTxo Helyx<sup>OS</sup> - Engys' free-to-download Open Source native GUI for OPENFOAM®]</li></ul>

Revision as of 09:30, 18 August 2012


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.


Valid versions: OF version 15.png OF version 16.png OF version 17.png OF Version 20.png OF Version 21.png OF Version 15dev.png OF Version 16ext.png

Note: feature edges only available in: OF Version 20.png OF Version 21.png


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:


3 Tips

On this chapter 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:

3.2 Multi-region meshes

There are a few instructions/examples on how to generate multi-region meshes with snappyHexMesh:

  • See the tutorial heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater.
  • Instructions on how to remove an external unwanted region: Background Mesh in snappy with multi domain (CHT) post #3
    • Note: this happens whenever the base mesh doesn't coincide with the outer limits of the target surface geometry. The tutorial heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater is such an example where the outside of the original STL files coincides with the base mesh.

3.3 GUI (Graphical User Interfaces)

Currently there are several interactive ways (using GUI) of generating meshes with snappyHexMesh. Here will only be listed the ones that are open-source:

Discretizer 
Check the Screencasts page for more information.
SwiftSnap 
A very useful plug-in for Blender for configuring snappyHexMeshDict. There is SwiftBlock for blockMeshDict as well!
HelyxOS 
A GUI for using OpenFOAM. See the video tutorials: