Making 3D mesh from 2D outline (by extrusion)

Update: June 1, 2017
OpenFOAM 4.x

Case directory

$FOAM_TUTORIALS/mesh/foamyQuadMesh/jaggedBoundary

Summary

First, we create 2D meshes from outline geometry with foamyQuadMesh, and then extrude the meshes vertically to create 3D meshes with extrude2DMesh.

The outline geometry is defined in the file constant/triSurface/jaggedBoundary.stl, and the 2D mesh creation settings are specified in the file system/foamyQuadMeshDict.

jaggedBoundary.stl で定義された輪郭形状 The outline geometry defined in jaggedBoundary.stl

The extrusion method is specified in the file system/extrude2DMeshDict as shown below, and the extrusion is done vertically by setting "linearDirection" as the extrudeModel.

extrudeModel        linearDirection;
patchInfo
{}
patchType           empty;
nLayers             1;
expansionRatio      1.0;
linearDirectionCoeffs
{
    direction       (0 0 1);
    thickness       0.1;
}
wedgeCoeffs
{
    axisPt          (0 0 0);
    axis            (1 0 0);
    angle           10;
}		

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

Outline definition and 3D meshes Outline definition and 3D meshes
2D meshes 2D meshes
2D meshes (zoomed) 2D meshes (zoomed)
3D meshes 3D meshes
3D meshes (zoomed) 3D meshes (zoomed)

Commands

cp -r $FOAM_TUTORIALS/mesh/foamyQuadMesh/jaggedBoundary jaggedBoundary
cd jaggedBoundary

surfaceFeatureExtract
foamyQuadMesh -overwrite
extrude2DMesh -overwrite MeshedSurface
checkMesh -allGeometry -allTopology -constant -noZero

paraFoam

Calculation time

1 minute and 8.39 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz