37#ifndef primitiveMeshGeometry_H
38#define primitiveMeshGeometry_H
73 void updateFaceCentresAndAreas
81 void updateCellCentresAndVols
146 const scalar orthWarn,
157 const scalar minPyrVol,
168 const scalar internalSkew,
169 const scalar boundarySkew,
181 const scalar warnWeight,
216 const scalar minTwist,
228 const scalar minArea,
253 const scalar orthWarn,
261 const scalar minPyrVol,
270 const scalar internalSkew,
271 const scalar boundarySkew,
279 const scalar warnWeight,
305 const scalar minTwist,
314 const scalar minArea,
322 const scalar warnDet,
static bool checkFaceTwist(const bool report, const scalar minTwist, const primitiveMesh &, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
const scalarField & cellVolumes() const
static bool checkFaceAngles(const bool report, const scalar maxDeg, const primitiveMesh &mesh, const vectorField &faceAreas, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFaceSkewness(const bool report, const scalar internalSkew, const scalar boundarySkew, const primitiveMesh &mesh, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
const vectorField & faceAreas() const
void correct()
Take over properties from mesh.
static bool checkFaceWeights(const bool report, const scalar warnWeight, const primitiveMesh &mesh, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
labelList affectedCells(const labelList &changedFaces) const
Helper function: get affected cells from faces.
primitiveMeshGeometry(const primitiveMesh &)
Construct from mesh.
static bool checkCellDeterminant(const bool report, const scalar minDet, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr)
const vectorField & faceCentres() const
static bool checkFaceArea(const bool report, const scalar minArea, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
ClassName("primitiveMeshGeometry")
static bool checkFaceDotProduct(const bool report, const scalar orthWarn, const primitiveMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
const primitiveMesh & mesh() const
static bool checkFacePyramids(const bool report, const scalar minPyrVol, const primitiveMesh &, const vectorField &cellCentres, const pointField &p, const labelList &checkFaces, labelHashSet *)
const vectorField & cellCentres() const
Cell-face mesh analysis engine.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
List< label > labelList
A List of labels.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.
vectorField pointField
pointField is a vectorField.