35 #ifndef primitiveMeshGeometry_H 36 #define primitiveMeshGeometry_H 71 void updateFaceCentresAndAreas
79 void updateCellCentresAndVols
144 const scalar orthWarn,
155 const scalar minPyrVol,
166 const scalar internalSkew,
167 const scalar boundarySkew,
179 const scalar warnWeight,
214 const scalar minTwist,
226 const scalar minArea,
251 const scalar orthWarn,
259 const scalar minPyrVol,
268 const scalar internalSkew,
269 const scalar boundarySkew,
277 const scalar warnWeight,
303 const scalar minTwist,
312 const scalar minArea,
320 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)