genericPatches is linked into mesh generation and manipulation utilities but not solvers so that the solvers now check for the availability of the specified patch types. Bugs in the tutorials exposed by this check have been corrected.
137 lines
2.8 KiB
C++
137 lines
2.8 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
object snappyHexMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"
|
|
|
|
castellatedMesh on;
|
|
snap on;
|
|
addLayers off;
|
|
|
|
geometry
|
|
{
|
|
fixed
|
|
{
|
|
type triSurfaceMesh;
|
|
file "fixed.obj";
|
|
regions
|
|
{
|
|
patch0 { name slipWall; }
|
|
patch1 { name outlet; }
|
|
patch2 { name inlet; }
|
|
}
|
|
}
|
|
rotatingZone
|
|
{
|
|
type triSurfaceMesh;
|
|
file "rotatingZone.obj";
|
|
}
|
|
};
|
|
|
|
castellatedMeshControls
|
|
{
|
|
features
|
|
(
|
|
{ file "fixed.eMesh"; level 2; }
|
|
{ file "rotatingZone.eMesh"; level 4; }
|
|
);
|
|
|
|
refinementSurfaces
|
|
{
|
|
fixed
|
|
{
|
|
level (2 2);
|
|
patchInfo { type wall; }
|
|
inGroups (fixed);
|
|
|
|
regions
|
|
{
|
|
patch0
|
|
{
|
|
level (2 2);
|
|
patchInfo { type wall; }
|
|
}
|
|
|
|
patch1
|
|
{
|
|
level (2 2);
|
|
patchInfo { type patch; }
|
|
}
|
|
|
|
patch2
|
|
{
|
|
level (2 2);
|
|
patchInfo { type patch; }
|
|
}
|
|
}
|
|
}
|
|
rotatingZone
|
|
{
|
|
level (4 4);
|
|
faceZone rotatingZone;
|
|
cellZone rotatingZone;
|
|
mode inside;
|
|
}
|
|
|
|
}
|
|
|
|
refinementRegions
|
|
{
|
|
fixed
|
|
{
|
|
mode inside;
|
|
levels ((1e-5 1));
|
|
}
|
|
rotatingZone
|
|
{
|
|
mode inside;
|
|
levels ((1e-5 4));
|
|
}
|
|
}
|
|
|
|
insidePoint (1e-5 1e-5 1e-5); // Offset from (0 0 0) to avoid
|
|
// coinciding with face or edge
|
|
}
|
|
|
|
snapControls
|
|
{
|
|
explicitFeatureSnap true;
|
|
}
|
|
|
|
addLayersControls
|
|
{
|
|
layers
|
|
{
|
|
}
|
|
|
|
relativeSizes true; // false, usually with firstLayerThickness
|
|
expansionRatio 1.2;
|
|
finalLayerThickness 0.5;
|
|
minThickness 1e-3;
|
|
// firstLayerThickness 0.01;
|
|
|
|
// maxThicknessToMedialRatio 0.6;
|
|
}
|
|
|
|
writeFlags
|
|
(
|
|
scalarLevels
|
|
layerSets
|
|
layerFields
|
|
);
|
|
|
|
mergeTolerance 1e-6;
|
|
|
|
// ************************************************************************* //
|