Go to the documentation of this file.
41 #ifndef polyMeshGeometry_H
42 #define polyMeshGeometry_H
77 void updateFaceCentresAndAreas
85 void updateCellCentresAndVols
92 static scalar checkNonOrtho
96 const scalar severeNonorthogonalityThreshold,
101 label& severeNonOrth,
107 static scalar calcSkewness
115 static bool checkFaceTet
119 const scalar minTetQuality,
192 const scalar orthWarn,
197 const List<labelPair>& baffles,
205 const scalar minPyrVol,
210 const List<labelPair>& baffles,
218 const scalar minPyrVol,
224 const List<labelPair>& baffles,
232 const scalar internalSkew,
233 const scalar boundarySkew,
234 const polyMesh&
mesh,
240 const List<labelPair>& baffles,
248 const scalar warnWeight,
249 const polyMesh&
mesh,
254 const List<labelPair>& baffles,
262 const scalar warnRatio,
263 const polyMesh&
mesh,
266 const List<labelPair>& baffles,
275 const polyMesh&
mesh,
287 const scalar minTwist,
301 const scalar minTwist,
314 const scalar minFlatness,
327 const scalar minArea,
353 const scalar orthWarn,
355 const List<labelPair>& baffles,
362 const scalar minPyrVol,
365 const List<labelPair>& baffles,
372 const scalar minTetQuality,
375 const List<labelPair>& baffles,
382 const scalar warnWeight,
384 const List<labelPair>& baffles,
391 const scalar warnRatio,
393 const List<labelPair>& baffles,
409 const scalar minTwist,
418 const scalar minTwist,
427 const scalar minFlatness,
436 const scalar minArea,
444 const scalar warnDet,
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
static bool checkFaceDotProduct(const bool report, const scalar orthWarn, const polyMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
ClassName("polyMeshGeometry")
const vectorField & faceAreas() const
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const scalarField & cellVolumes() const
static bool checkFaceWeights(const bool report, const scalar warnWeight, const polyMesh &mesh, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
static bool checkFaceTets(const bool report, const scalar minPyrVol, const polyMesh &, const vectorField &cellCentres, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *)
polyMeshGeometry(const polyMesh &)
A HashTable with keys but without contents that is similar to std::unordered_set.
Mesh consisting of general polyhedral cells.
const vectorField & faceCentres() const
static bool checkFaceSkewness(const bool report, const scalar internalSkew, const scalar boundarySkew, const polyMesh &mesh, const pointField &points, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static labelList affectedCells(const polyMesh &, const labelList &changedFaces)
static bool checkFaceArea(const bool report, const scalar minArea, const polyMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
Generic templated field type.
const polyMesh & mesh() const
static bool checkFaceTwist(const bool report, const scalar minTwist, const polyMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFaceFlatness(const bool report, const scalar minFlatness, const polyMesh &, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, 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...
Updateable mesh geometry and checking routines.
static bool checkFacePyramids(const bool report, const scalar minPyrVol, const polyMesh &, const vectorField &cellCentres, const pointField &p, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *)
static bool checkCellDeterminant(const bool report, const scalar minDet, const polyMesh &, const vectorField &faceAreas, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr)
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys and label hasher.
static bool checkTriangleTwist(const bool report, const scalar minTwist, const polyMesh &, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
const vectorField & cellCentres() const
static bool checkVolRatio(const bool report, const scalar warnRatio, const polyMesh &mesh, const scalarField &cellVolumes, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
static bool checkFaceAngles(const bool report, const scalar maxDeg, const polyMesh &mesh, const vectorField &faceAreas, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)