Simple shapes
Update: June 1, 2017
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
$FOAM_TUTORIALS/mesh/foamyHexMesh/simpleShapes
Summary
We use foamyHexMesh to create the mesh for the outside of the overlapping sphere and cone shape. The original geometry is defined in the files constant/triSurface/sphere_orient.stl and constant/triSurface/cone_orient.stl, and the mesh settings are defined in the file system/foamyHexMeshDict.
The original geometry
The original geometry (Wireframe)
The meshes are as follows, and the number of mesh is 75625.
Meshes
The meshes in XY plane
Commands
cp -r $FOAM_TUTORIALS/mesh/foamyHexMesh/simpleShapes simpleShapes
cd simpleShapes
surfaceOrient constant/triSurface/cone.stl -inside '(0 -0.5 0)' constant/triSurface/cone_orient.stl
surfaceOrient constant/triSurface/sphere.stl -inside '(0 -0.5 0)' constant/triSurface/sphere_orient.stl
surfaceBooleanFeatures intersection constant/triSurface/cone_orient.stl constant/triSurface/sphere_orient.stl
foamyHexMesh
collapseEdges -latestTime -collapseFaceSet indirectPatchFaces
collapseEdges -latestTime -collapseFaces
paraFoam
Calculation time
1 minute and 28.53 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz