Updateable mesh geometry + checking routines. More...
Public Member Functions | |
ClassName ("primitiveMeshGeometry") | |
primitiveMeshGeometry (const primitiveMesh &) | |
Construct from mesh. More... | |
const primitiveMesh & | mesh () const |
const vectorField & | faceAreas () const |
const vectorField & | faceCentres () const |
const vectorField & | cellCentres () const |
const scalarField & | cellVolumes () const |
void | correct () |
Take over properties from mesh. More... | |
void | correct (const pointField &p, const labelList &changedFaces) |
Recalculate on selected faces. Recalculates cell properties. More... | |
labelList | affectedCells (const labelList &changedFaces) const |
Helper function: get affected cells from faces. More... | |
bool | checkFaceDotProduct (const bool report, const scalar orthWarn, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkFacePyramids (const bool report, const scalar minPyrVol, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkFaceSkewness (const bool report, const scalar internalSkew, const scalar boundarySkew, const labelList &checkFaces, labelHashSet *setPtr) const |
bool | checkFaceWeights (const bool report, const scalar warnWeight, const labelList &checkFaces, 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 | 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 bool | checkFaceDotProduct (const bool report, const scalar orthWarn, const primitiveMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr) |
static bool | checkFacePyramids (const bool report, const scalar minPyrVol, const primitiveMesh &, const vectorField &cellCentres, const pointField &p, const labelList &checkFaces, labelHashSet *) |
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 | checkFaceWeights (const bool report, const scalar warnWeight, 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) |
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) |
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) |
Updateable mesh geometry + checking routines.
Definition at line 51 of file primitiveMeshGeometry.H.
primitiveMeshGeometry | ( | const primitiveMesh & | mesh | ) |
Construct from mesh.
Definition at line 210 of file primitiveMeshGeometry.C.
References primitiveMeshGeometry::correct().
ClassName | ( | "primitiveMeshGeometry" | ) |
|
inline |
Definition at line 100 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 105 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 109 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 113 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 117 of file primitiveMeshGeometry.H.
void correct | ( | ) |
Take over properties from mesh.
Definition at line 223 of file primitiveMeshGeometry.C.
Referenced by primitiveMeshGeometry::primitiveMeshGeometry().
void correct | ( | const pointField & | p, |
const labelList & | changedFaces | ||
) |
Recalculate on selected faces. Recalculates cell properties.
on owner and neighbour of these cells.
Definition at line 232 of file primitiveMeshGeometry.C.
References p.
Foam::labelList affectedCells | ( | const labelList & | changedFaces | ) | const |
Helper function: get affected cells from faces.
Definition at line 185 of file primitiveMeshGeometry.C.
References HashSet< Key, Hash >::insert(), UList< T >::size(), and HashTable< T, Key, Hash >::toc().
|
static |
Definition at line 245 of file primitiveMeshGeometry.C.
References Foam::acos(), Foam::cos(), Foam::degToRad(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), mesh, Foam::Pout, Foam::radToDeg(), Foam::reduce(), s(), SeriousErrorInFunction, UList< T >::size(), and WarningInFunction.
|
static |
Definition at line 386 of file primitiveMeshGeometry.C.
References primitiveMesh::cells(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), mesh, p, Foam::Pout, Foam::reduce(), and SeriousErrorInFunction.
|
static |
Definition at line 494 of file primitiveMeshGeometry.C.
References Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), mesh, Foam::nl, Foam::normalised(), Foam::Pout, Foam::reduce(), and WarningInFunction.
|
static |
Definition at line 629 of file primitiveMeshGeometry.C.
References Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), mesh, Foam::min(), Foam::nl, Foam::Pout, Foam::reduce(), and WarningInFunction.
|
static |
Definition at line 711 of file primitiveMeshGeometry.C.
References Foam::abort(), Foam::asin(), Foam::degToRad(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), UList< T >::last(), Foam::mag(), Foam::max(), mesh, Foam::min(), Foam::normalised(), p, Foam::radToDeg(), Foam::reduce(), Foam::sin(), and WarningInFunction.
|
static |
Definition at line 964 of file primitiveMeshGeometry.C.
References Foam::abort(), triangle< Point, PointRef >::areaNormal(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh, Foam::nl, p, Foam::reduce(), UList< T >::size(), and WarningInFunction.
|
static |
Definition at line 1068 of file primitiveMeshGeometry.C.
References Foam::endl(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::nl, Foam::reduce(), and WarningInFunction.
|
static |
Definition at line 1125 of file primitiveMeshGeometry.C.
References cells, primitiveMesh::cells(), Foam::det(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh, Foam::min(), Foam::nl, Foam::reduce(), WarningInFunction, and Foam::Zero.
bool checkFaceDotProduct | ( | const bool | report, |
const scalar | orthWarn, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1224 of file primitiveMeshGeometry.C.
bool checkFacePyramids | ( | const bool | report, |
const scalar | minPyrVol, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1245 of file primitiveMeshGeometry.C.
References p.
bool checkFaceSkewness | ( | const bool | report, |
const scalar | internalSkew, | ||
const scalar | boundarySkew, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1267 of file primitiveMeshGeometry.C.
bool checkFaceWeights | ( | const bool | report, |
const scalar | warnWeight, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1291 of file primitiveMeshGeometry.C.
bool checkFaceAngles | ( | const bool | report, |
const scalar | maxDeg, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1313 of file primitiveMeshGeometry.C.
References p.
bool checkFaceTwist | ( | const bool | report, |
const scalar | minTwist, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1358 of file primitiveMeshGeometry.C.
References p.
bool checkFaceArea | ( | const bool | report, |
const scalar | minArea, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1381 of file primitiveMeshGeometry.C.
bool checkCellDeterminant | ( | const bool | report, |
const scalar | warnDet, | ||
const labelList & | checkFaces, | ||
const labelList & | affectedCells, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1401 of file primitiveMeshGeometry.C.