motionSmootherAlgoCheck::checkMesh is used by snappyHexMesh to check the mesh after snapping and morphing. The minVol test which checks for collapsed cells is now relative to the cube of the minimum bounding box length so that it is less dependent on the size of the geometry and less likely to need changing for very small geometries. The default value is set in etc/caseDicts/mesh/generation/meshQualityDict etc/caseDicts/mesh/generation/meshQualityDict.cfg //- Minimum cell pyramid volume relative to min bounding box length^3 // Set to a fraction of the smallest cell volume expected. // Set to very negative number (e.g. -1e30) to disable. minVol 1e-10; The unused minArea and minTriangleTwist tests have been removed
59 lines
1.9 KiB
C++
59 lines
1.9 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 meshQualityDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
|
maxNonOrtho 65;
|
|
|
|
//- Max skewness allowed. Set to <0 to disable.
|
|
maxBoundarySkewness 50;
|
|
maxInternalSkewness 10;
|
|
|
|
//- Max concaveness allowed. Is angle (in degrees) below which concavity
|
|
// is allowed. 0 is straight face, <0 would be convex face.
|
|
// Set to 180 to disable.
|
|
maxConcave 80;
|
|
|
|
//- Minimum quality of the tet formed by the face-centre
|
|
// and variable base point minimum decomposition triangles and
|
|
// the cell centre. This has to be a positive number for tracking
|
|
// to work. Set to very negative number (e.g. -1e30) to
|
|
// disable.
|
|
// <0 = inside out tet,
|
|
// 0 = flat tet
|
|
// 1 = regular tet
|
|
minTetQuality 1e-30;
|
|
|
|
//- Minimum cell pyramid volume relative to min bounding box length^3
|
|
// Set to a fraction of the smallest cell volume expected.
|
|
// Set to very negative number (e.g. -1e30) to disable.
|
|
minVol 1e-10;
|
|
|
|
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
|
|
// and face centre triangles normal
|
|
minTwist 0.001;
|
|
|
|
//- Minimum normalised cell determinant
|
|
// 1 = hex, <= 0 = folded or flattened illegal cell
|
|
minDeterminant 0.001;
|
|
|
|
//- minFaceWeight (0 -> 0.5)
|
|
minFaceWeight 0.02;
|
|
|
|
//- minVolRatio (0 -> 1)
|
|
minVolRatio 0.01;
|
|
|
|
|
|
// ************************************************************************* //
|