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,
const vectorField & faceAreas() const
ClassName("primitiveMeshGeometry")
Cell-face mesh analysis engine.
static bool checkFacePyramids(const bool report, const scalar minPyrVol, const primitiveMesh &, const vectorField &cellCentres, const pointField &p, const labelList &checkFaces, labelHashSet *)
const scalarField & cellVolumes() const
labelList affectedCells(const labelList &changedFaces) const
Helper function: get affected cells from faces.
static bool checkFaceArea(const bool report, const scalar minArea, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkCellDeterminant(const bool report, const scalar minDet, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, const labelList &affectedCells, 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)
static bool checkFaceAngles(const bool report, const scalar maxDeg, const primitiveMesh &mesh, const vectorField &faceAreas, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
primitiveMeshGeometry(const primitiveMesh &)
Construct from mesh.
void correct()
Take over properties from mesh.
const vectorField & faceCentres() const
Updateable mesh geometry + checking routines.
static bool checkFaceDotProduct(const bool report, const scalar orthWarn, const primitiveMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
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)
const primitiveMesh & mesh() const
const vectorField & cellCentres() const
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)