openfoam中使用snappyhexmesh命令但未生成边界层是什么原因?
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"
castellatedMesh on;
snap on;
addLayers on;
geometry
{
cylinder
{
type searchableCylinder;
point1 (0.5 0.5 0);
point2 (0.5 0.5 0.1);
radius 0.2;
}
}
castellatedMeshControls
{
features
(
);
refinementSurfaces
{
cylinder
{
level (3 3);
patchInfo { type wall; }
}
}
refinementRegions
{
}
locationInMesh (0.8 0 0.1);
}
snapControls
{
explicitFeatureSnap false;
implicitFeatureSnap true;
}
addLayersControls
{
layers
{
"CAD.*"
{
nSurfaceLayers 5;
}
}
relativeSizes true;
expansionRatio 1.2;
finalLayerThickness 0.5;
minThickness 1e-3;
}
meshQualityControls
{}
writeFlags
(
noRefinement
// scalarLevels
// layerSets
// layerFields
);
mergeTolerance 1e-4;
// ************************************************************************* //
想在长1m宽1m厚0.1m的长方体中心挖一个圆柱体,生成5层的边界层,但是paraview中未显示边界层?




按说在cavity文件中应该生成1、2、3三个文件,但是只生成了1和2,请问是为什么?