Updateable mesh geometry and checking routines. More...
Public Member Functions | |
ClassName ("polyMeshGeometry") | |
polyMeshGeometry (const polyMesh &) | |
const polyMesh & | mesh () const |
const vectorField & | faceAreas () const |
const vectorField & | faceCentres () const |
const vectorField & | cellCentres () const |
const scalarField & | cellVolumes () const |
void | correct () |
void | correct (const pointField &p, const labelList &changedFaces) |
bool | checkFaceDotProduct (const bool report, const scalar orthWarn, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr) const |
bool | checkFacePyramids (const bool report, const scalar minPyrVol, const pointField &p, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr) const |
bool | checkFaceTets (const bool report, const scalar minTetQuality, const pointField &p, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr) const |
bool | checkFaceWeights (const bool report, const scalar warnWeight, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr) const |
bool | checkVolRatio (const bool report, const scalar warnRatio, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr) const |
bool | checkFaceAngles (const bool report, const scalar maxDeg, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkFaceTwist (const bool report, const scalar minTwist, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkTriangleTwist (const bool report, const scalar minTwist, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkFaceFlatness (const bool report, const scalar minFlatness, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkFaceArea (const bool report, const scalar minArea, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkCellDeterminant (const bool report, const scalar warnDet, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr) const |
Static Public Member Functions | |
static labelList | affectedCells (const polyMesh &, const labelList &changedFaces) |
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) |
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 | 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 *) |
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) |
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 | 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) |
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 | checkTriangleTwist (const bool report, const scalar minTwist, const polyMesh &, 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) |
static bool | checkFaceArea (const bool report, const scalar minArea, const polyMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr) |
static bool | checkCellDeterminant (const bool report, const scalar minDet, const polyMesh &, const vectorField &faceAreas, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr) |
Updateable mesh geometry and checking routines.
Definition at line 51 of file polyMeshGeometry.H.
|
explicit |
Definition at line 320 of file polyMeshGeometry.C.
References polyMeshGeometry::correct().
ClassName | ( | "polyMeshGeometry" | ) |
|
inline |
Definition at line 137 of file polyMeshGeometry.H.
Referenced by motionSmootherAlgo::checkMesh().
|
inline |
Definition at line 142 of file polyMeshGeometry.H.
Referenced by motionSmootherAlgo::checkMesh().
|
inline |
Definition at line 146 of file polyMeshGeometry.H.
Referenced by motionSmootherAlgo::checkMesh().
|
inline |
Definition at line 150 of file polyMeshGeometry.H.
Referenced by motionSmootherAlgo::checkMesh().
|
inline |
Definition at line 154 of file polyMeshGeometry.H.
void correct | ( | ) |
Definition at line 330 of file polyMeshGeometry.C.
Referenced by polyMeshGeometry::polyMeshGeometry().
void correct | ( | const pointField & | p, |
const labelList & | changedFaces | ||
) |
Definition at line 340 of file polyMeshGeometry.C.
References p.
|
static |
Definition at line 176 of file polyMeshGeometry.C.
References polyMesh::faceNeighbour(), polyMesh::faceOwner(), HashSet::insert(), primitiveMesh::isInternalFace(), and mesh.
|
static |
Definition at line 353 of file polyMeshGeometry.C.
References Foam::acos(), polyMesh::boundaryMesh(), Foam::cos(), coupled(), Foam::degToRad(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::Info, primitiveMesh::isInternalFace(), mesh, primitiveMesh::nBoundaryFaces(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), patches, Foam::radToDeg(), Foam::reduce(), SeriousErrorInFunction, syncTools::swapBoundaryFacePositions(), and polyBoundaryMesh::whichPatch().
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 531 of file polyMeshGeometry.C.
References primitiveMesh::cells(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::Info, HashSet::insert(), primitiveMesh::isInternalFace(), mesh, p, Foam::Pout, Foam::reduce(), and SeriousErrorInFunction.
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 702 of file polyMeshGeometry.C.
References polyMesh::boundaryMesh(), coupled(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMeshTetDecomposition::findBasePoint(), polyMeshTetDecomposition::findSharedBasePoint(), Foam::Info, HashSet::insert(), primitiveMesh::isInternalFace(), mesh, primitiveMesh::nBoundaryFaces(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), p, patches, Foam::reduce(), SeriousErrorInFunction, syncTools::swapBoundaryFacePositions(), and polyBoundaryMesh::whichPatch().
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 923 of file polyMeshGeometry.C.
References primitiveMeshTools::boundaryFaceSkewness(), polyMesh::boundaryMesh(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), primitiveMeshTools::faceSkewness(), Foam::Info, HashSet::insert(), primitiveMesh::isInternalFace(), Foam::max(), mesh, primitiveMesh::nInternalFaces(), Foam::nl, patches, points, Foam::Pout, Foam::reduce(), syncTools::swapBoundaryCellPositions(), WarningInFunction, and polyBoundaryMesh::whichPatch().
|
static |
Definition at line 1128 of file polyMeshGeometry.C.
References polyMesh::boundaryMesh(), coupled(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::Info, HashSet::insert(), primitiveMesh::isInternalFace(), Foam::mag(), mesh, Foam::min(), primitiveMesh::nBoundaryFaces(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, Foam::Pout, Foam::reduce(), syncTools::swapBoundaryFacePositions(), WarningInFunction, and polyBoundaryMesh::whichPatch().
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1276 of file polyMeshGeometry.C.
References polyMesh::boundaryMesh(), coupled(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::Info, HashSet::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::max(), mesh, Foam::min(), primitiveMesh::nBoundaryFaces(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, Foam::Pout, Foam::reduce(), syncTools::swapBoundaryFaceList(), WarningInFunction, and polyBoundaryMesh::whichPatch().
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1412 of file polyMeshGeometry.C.
References Foam::abort(), Foam::asin(), Foam::degToRad(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet::insert(), Foam::mag(), Foam::max(), mesh, Foam::min(), Foam::normalised(), p, Foam::radToDeg(), Foam::reduce(), Foam::sin(), and WarningInFunction.
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1540 of file polyMeshGeometry.C.
References Foam::abort(), triangle::areaNormal(), polyMesh::boundaryMesh(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet::insert(), primitiveMesh::isInternalFace(), Foam::mag(), mesh, primitiveMesh::nBoundaryFaces(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, Foam::normalised(), p, patches, Foam::reduce(), syncTools::swapBoundaryFacePositions(), WarningInFunction, polyBoundaryMesh::whichPatch(), VectorSpace< Vector< scalar >, scalar, 3 >::zero, and Foam::Zero.
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1686 of file polyMeshGeometry.C.
References Foam::abort(), triangle::areaNormal(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet::insert(), Foam::mag(), mesh, Foam::nl, p, Foam::reduce(), and WarningInFunction.
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1832 of file polyMeshGeometry.C.
References Foam::abort(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet::insert(), Foam::mag(), mesh, Foam::nl, p, Foam::reduce(), and WarningInFunction.
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1925 of file polyMeshGeometry.C.
References Foam::endl(), Foam::Info, HashSet::insert(), Foam::mag(), Foam::nl, Foam::reduce(), and WarningInFunction.
Referenced by motionSmootherAlgo::checkMesh().
|
static |
Definition at line 1982 of file polyMeshGeometry.C.
References cells, primitiveMesh::cells(), Foam::det(), Foam::endl(), Foam::Info, HashSet::insert(), Foam::mag(), mesh, Foam::min(), Foam::nl, Foam::reduce(), WarningInFunction, and Foam::Zero.
Referenced by motionSmootherAlgo::checkMesh().
bool checkFaceDotProduct | ( | const bool | report, |
const scalar | orthWarn, | ||
const labelList & | checkFaces, | ||
const List< labelPair > & | baffles, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2074 of file polyMeshGeometry.C.
bool checkFacePyramids | ( | const bool | report, |
const scalar | minPyrVol, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
const List< labelPair > & | baffles, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2097 of file polyMeshGeometry.C.
References p.
bool checkFaceTets | ( | const bool | report, |
const scalar | minTetQuality, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
const List< labelPair > & | baffles, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2121 of file polyMeshGeometry.C.
References p.
bool checkFaceWeights | ( | const bool | report, |
const scalar | warnWeight, | ||
const labelList & | checkFaces, | ||
const List< labelPair > & | baffles, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2172 of file polyMeshGeometry.C.
bool checkVolRatio | ( | const bool | report, |
const scalar | warnRatio, | ||
const labelList & | checkFaces, | ||
const List< labelPair > & | baffles, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2196 of file polyMeshGeometry.C.
bool checkFaceAngles | ( | const bool | report, |
const scalar | maxDeg, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2218 of file polyMeshGeometry.C.
References p.
bool checkFaceTwist | ( | const bool | report, |
const scalar | minTwist, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2240 of file polyMeshGeometry.C.
References p.
bool checkTriangleTwist | ( | const bool | report, |
const scalar | minTwist, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2264 of file polyMeshGeometry.C.
References p.
bool checkFaceFlatness | ( | const bool | report, |
const scalar | minFlatness, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2287 of file polyMeshGeometry.C.
References p.
bool checkFaceArea | ( | const bool | report, |
const scalar | minArea, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2310 of file polyMeshGeometry.C.
bool checkCellDeterminant | ( | const bool | report, |
const scalar | warnDet, | ||
const labelList & | checkFaces, | ||
const labelList & | affectedCells, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 2330 of file polyMeshGeometry.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.