September 2, 2016, 06:24
|
SnappyHexMesh not creating cellzones
|
#1
|
Member
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 18
|
Dear All,
I am trying hard and checking different options to create a cellzone in the mesh. It is not at all creating the cellzone. Below is the dict.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"
castellatedMesh on;
snap off;
addLayers off;
geometry
{
fixed.stl
{
type triSurfaceMesh;
name fixed;
regions
{
/* <inletPatch> { name inlet; }
<outletPatch> { name outlet; }
*/
}
}
/* rotatingZone.stl
{
type triSurfaceMesh;
name rotatingZone;
}*/
rotating.stl
{
type triSurfaceMesh;
name rotating;
}
rad.stl
{
type triSurfaceMesh;
name rad;
}
};
castellatedMeshControls
{
features
(
/*{ file "fixed.eMesh"; level 1; }
{ file "rotating.eMesh"; level 1; }
{ file "rotatingZone.eMesh"; level 1; }
*/
);
refinementSurfaces
{
fixed
{
level (1 1);
patchInfo { type wall; }
inGroups (fixed);
regions
{/*
<inletPatch>
{
level (2 2);
patchInfo
{
type patch;
inGroups (inlet);
}
}
<outletPatch>
{
level (2 2);
patchInfo
{
type patch;
inGroups (outlet);
}
}
*/}
}
/* rotatingZone
{
level (1 1);
patchInfo { type wall; }
}*/
rotating
{
level (1 1);
faceZone arotating;
cellZone arotating;
cellZoneInside inside;
boundary internal;
}
rad
{
level (1 1);
patchInfo { type wall; }
}
}
refinementRegions
{
rotating
{
mode inside;
levels ((1E15 2));
}
}
locationInMesh (10 10 10); // Offset from (0 0 0) to avoid
// coinciding with face or edge
}
snapControls
{
explicitFeatureSnap true;
}
addLayersControls
{
layers
{
"(rotating|fixed)"
{
nSurfaceLayers 2;
}
}
relativeSizes true; // false, usually with firstLayerThickness
expansionRatio 1.2;
finalLayerThickness 0.5;
minThickness 1e-3;
// firstLayerThickness 0.01;
// maxThicknessToMedialRatio 0.6;
}
meshQualityControls
{
// minTetQuality -1e+30;
}
writeFlags
(
scalarLevels
layerSets
layerFields
);
mergeTolerance 1e-6;
// ************************************************************************* //
PLease help!
|
|
|