$FOAM_TUTORIALS/mesh/foamyQuadMesh/jaggedBoundary
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.
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
2D meshes
2D meshes (zoomed)
3D meshes
3D meshes (zoomed)
1 minute and 8.39 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz