OpenFOAM 4.x
This tutorial cannot be run on Ubuntu 14.04 LTS version of OpenFOAM, you need to use Ubuntu 16.04 LTS version of OpenFOAM or build foamyHexMesh by yourself.

Case directory



We use foamyHexMesh to create the mesh. The original geometry is defined in the file constant/triSurface/blob.stl.gz and the mesh settings are defined in the file system/foamyHexMeshDict.

The original geometry The original geometry

The meshes are as follows, and the number of mesh is 11303.

Mesh Meshes
Mesh in XY plane Mesh in XY plane
Mesh in XZ plane Mesh in XZ plane


cp -r $FOAM_TUTORIALS/mesh/foamyHexMesh/blob blob
cd blob

cp $FOAM_TUTORIALS/resources/geometry/blob.stl.gz constant/triSurface/

collapseEdges -latestTime -collapseFaces
collapseEdges -latestTime -collapseFaceSet indirectPatchFaces
checkMesh -latestTime -allGeometry -allTopology


Calculation time

13.38 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz