Go to the documentation of this file.
35 #ifndef primitiveMeshGeometry_H
36 #define primitiveMeshGeometry_H
144 const scalar orthWarn,
145 const primitiveMesh&,
155 const scalar minPyrVol,
156 const primitiveMesh&,
166 const scalar internalSkew,
167 const scalar boundarySkew,
168 const primitiveMesh&
mesh,
179 const scalar warnWeight,
180 const primitiveMesh&
mesh,
192 const primitiveMesh&
mesh,
214 const scalar minTwist,
215 const primitiveMesh&,
226 const scalar minArea,
227 const primitiveMesh&,
237 const primitiveMesh&,
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,
vectorField faceAreas_
Uptodate copy of face areas.
vectorField cellCentres_
Uptodate copy of cell centres.
vectorField pointField
pointField is a vectorField.
const vectorField & faceAreas() const
labelList affectedCells(const labelList &changedFaces) const
Helper function: get affected cells from faces.
List< label > labelList
A List of labels.
const vectorField & cellCentres() const
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
Field< vector > vectorField
Specialisation of Field<T> for vector.
static bool checkCellDeterminant(const bool report, const scalar minDet, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr)
Updateable mesh geometry + checking routines.
Pre-declare SubField and related Field type.
const primitiveMesh & mesh_
Reference to primitiveMesh.
vectorField faceCentres_
Uptodate copy of face centres.
const vectorField & faceCentres() 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)
void correct()
Take over properties from mesh.
const primitiveMesh & mesh() const
primitiveMeshGeometry(const primitiveMesh &)
Construct from mesh.
scalarField cellVolumes_
Uptodate copy of cell volumes.
static bool checkFaceArea(const bool report, const scalar minArea, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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)
void updateCellCentresAndVols(const labelList &changedCells, const labelList &changedFaces)
Update cell volumes and centres on selected cells. Requires.
void updateFaceCentresAndAreas(const pointField &p, const labelList &changedFaces)
Update face areas and centres on selected faces.
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)
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
ClassName("primitiveMeshGeometry")
Cell-face mesh analysis engine.