Volume Mesh

cfMesh is used for volume mesh. It’s fast and gives great hex-dominated meshes with prism layers.

For this bend I just took the setup from one of the tutorials that comes with cfMesh: “tutorials/cartesianMesh/elbow_90degree”.

Then some things had to be adjusted for this case in the system/meshDict file:

/--------------------------------- C++ -----------------------------------\
| ========= | |
| \ / F ield | cfMesh: A library for mesh generation |
| \ / O peration | |
| \ / A nd | Author: Franjo Juretic |
| \/ M anipulation | E-mail: franjo.juretic@c-fields.com |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object meshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
surfaceFile "bend.stl";
minCellSize 15.0;
maxCellSize 25.0;
boundaryCellSize 25.0;
localRefinement
{
"ringArea.*"
{
cellSize 0.2;
}
}
boundaryLayers
{
nLayers 0;
thicknessRatio 1.1;
maxFirstLayerThickness 2.5;
patchBoundaryLayers {
wall
{
nLayers 5;
thicknessRatio 1.2;
maxFirstLayerThickness 2.5;
}
}
}
renameBoundary
{
defaultName fixedWalls;
defaultType wall;
newPatchNames
{
"inlet.*"
{
type patch;
newName inlet;
}
"outlet.*"
{
type patch;
newName outlet;
}
}
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //