nikhil108 |
August 24, 2020 16:32 |
Dynamic mesh (AMR), dynamicRefineFvMesh
Hallo foamers,
I am trying to run a case, the domain is created using blockMesh, then using snappyhex, geometry of the body is captured with stl. I didn't used any refinement levels too. I tried using different settings in snappyHex, but I keep on getting this following error.
Code:
--> FOAM FATAL ERROR:
Celllevel does not satisfy 2:1 constraint.
On face 76826 owner cell 25718 has refinement 0 neighbour cell 26964 has refinement 2
From function void Foam::hexRef8::checkRefinementLevels(Foam::label, const labelList&) const
in file polyTopoChange/polyTopoChange/hexRef8/hexRef8.C at line 4851.
everything runs fine when I just use renumber mesh and run the solver from latest time step, but when I use renumbermesh -overwrite then I am getting above error. Below is my snappyhexdict. Please share your thoughts.
Code:
castellatedMesh true;
snap false;
addLayers false;
geometry
{
pump.stl
{
type triSurfaceMesh;
name walls;
}
inlet1.stl
{
type triSurfaceMesh;
name inlet;
}
box1 //refine porous
{
type searchableBox;
min (-0.47 -0.27 -0.47);
max (0.47 -0.22 0.47);
}
box2 //refine hole
{
type searchableBox;
min (-0.05 -0.05 -0.58);
max (0.05 0.05 -0.48);
}
};
castellatedMeshControls
{
maxLocalCells 100000;
maxGlobalCells 2000000;
minRefinementCells 10;
maxLoadUnbalance 0.10;
nCellsBetweenLevels 1;
features
(
);
refinementSurfaces
{
inlet { level (1 2); patchInfo { type patch; }}
walls { level (1 2); patchInfo { type wall; }}
}
resolveFeatureAngle 30;
refinementRegions
{
/*box1
{
mode inside;
levels ((0 2));
}
box2
{
mode inside;
levels ((0 2));
}*/
}
locationInMesh (0.15 0.12 0.11);
allowFreeStandingZoneFaces true;
}
/*--------------------------------------------------------*/
snapControls
{
nSmoothPatch 3;
tolerance 2.0;
nSolveIter 30;
nRelaxIter 5;
nFeatureSnapIter 10;
implicitFeatureSnap false;
//- Use castellatedMeshControls::features (default = true)
explicitFeatureSnap true;
//- Detect points on multiple surfaces (only for explicitFeatureSnap)
multiRegionFeatureSnap false;
}
/*--------------------------------------------------------*/
addLayersControls
{
relativeSizes true;
layers
{
}
expansionRatio 1.0;
finalLayerThickness 0.3;
minThickness 0.1;
}
meshQualityControls
{
#include "meshQualityDict"
// Advanced
//- Number of error distribution iterations
nSmoothScale 4;
//- Amount to scale back displacement at error points
errorReduction 0.75;
}
I tried turning snap on, and used refinements, did changes in geometry.
I am out of ideas:confused:, what am I doing wrong, any ideas to troubleshoot this?
Thankyou,
cheers,
nikhil.
|