Beruflich Dokumente
Kultur Dokumente
Type of mesh Hexahedral mesh Export STL file from blender SnappyHexMesh
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
Unstructured
2D : quadrangular and triangle 3D : hexahedron, tetrahedron, prism, pyramid
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
Hexahedron mesh
Higher accuracy and performance in structured mesh Difficulty in fitting to complex geometry Advantages of unstructured hexahedral mesh
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
Blender
Open source 3D CG animation creator http://www.blender. org/ Runs on Win & Linux
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
Copy two files from other cases to proper position under myMesh case
$FOAM_TUTORIALS/mesh/snappyHexMesh/motorBike/system/ snappyHexMeshDict $FOAM_TUTORIALS/mesh/snappyHexMesh/motorBike/system/ decomposeParDict
Setting of mesh
Edit blockMeshDict
Modify the block size to cover your STL obj
. . geometry castellatedMeshControls { { yourStlFile.stl maxLocalCells 100000; { maxGlobalCells 2000000; type triSurfaceMesh; minRefinementCells 0; name yourStlObjectName; nCellsBetweenLevels 1; } features }; ( . );
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
This will determine which side of STL object (in or out) will be meshed
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
10
Execute snappyHexMesh
Execute and check
$ snappyHexMesh [Enter]
Created two time sequences dir contain mesh
$ paraFoam
Preview the mesh
11
2. Edit features of castllateMeshControls in snappyHexMeshDict 3. Add nFeatureSnapIter setting to snapControls 4. Execute snappyHexMesh again
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
12
Examples: snappyHexMeshDict
2. In castellatedMeshControl castellatedMeshControls { ... features ( { file yourStlObject.eMesh"; level 0; } ); ... }
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
13
Feature angle
featureAngle 60;
meshQualityControl
meshQualityControls { ... minTetQuality -1e30; ... }
14
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
15
castellatedMeshControls { ... refinementRegions { refinementBox { mode inside; levels ((1 1)); } } ...
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
16
Parallelization of snappyHexMesh
Reduce the time of meshing by multi CPUs
deconposePar mpirun np 4 snappyHexMesh parallel reconstructParMesh lastTime mergeTol 1e-6
H. AKIMOTO, Division of Ocean Systems Engineering (OSE), Korea Advanced Institute of Science and Technology
17