Updateable mesh geometry + checking routines. More...
#include <meshTools/primitiveMeshGeometry.H>
Updateable mesh geometry + checking routines.
Definition at line 50 of file primitiveMeshGeometry.H.
Public Member Functions | |
ClassName ("primitiveMeshGeometry") | |
primitiveMeshGeometry (const primitiveMesh &) | |
Construct from mesh. | |
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. | |
void | correct (const pointField &p, const labelList &changedFaces) |
Recalculate on selected faces. Recalculates cell properties. | |
labelList | affectedCells (const labelList &changedFaces) const |
Helper function: get affected cells from faces. | |
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) |
primitiveMeshGeometry | ( | const primitiveMesh & | mesh | ) |
ClassName | ( | "primitiveMeshGeometry" | ) |
|
inline |
Definition at line 99 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 104 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 108 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 112 of file primitiveMeshGeometry.H.
|
inline |
Definition at line 116 of file primitiveMeshGeometry.H.
void correct | ( | ) |
Take over properties from mesh.
Definition at line 234 of file primitiveMeshGeometry.C.
void correct | ( | const pointField & | p, |
const labelList & | changedFaces | ||
) |
Recalculate on selected faces. Recalculates cell properties.
Recalculate on selected faces.
on owner and neighbour of these cells.
Definition at line 245 of file primitiveMeshGeometry.C.
Foam::labelList affectedCells | ( | const labelList & | changedFaces | ) | const |
Helper function: get affected cells from faces.
Definition at line 189 of file primitiveMeshGeometry.C.
References forAll, and List< T >::size().
|
static |
Definition at line 258 of file primitiveMeshGeometry.C.
References Foam::acos(), Foam::cos(), d, Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::mathematicalConstant::pi(), Foam::Pout, Foam::reduce(), SeriousErrorIn, List< T >::size(), and WarningIn.
|
static |
Definition at line 412 of file primitiveMeshGeometry.C.
References primitiveMesh::cells(), Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), primitiveMesh::faces(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::Pout, Foam::reduce(), and SeriousErrorIn.
|
static |
Definition at line 528 of file primitiveMeshGeometry.C.
References Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::nl, Foam::Pout, Foam::reduce(), and WarningIn.
|
static |
Definition at line 672 of file primitiveMeshGeometry.C.
References Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::min(), Foam::nl, Foam::Pout, Foam::reduce(), and WarningIn.
|
static |
Definition at line 762 of file primitiveMeshGeometry.C.
References Foam::abort(), Foam::asin(), Foam::endl(), primitiveMesh::faces(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), Foam::mathematicalConstant::pi(), Foam::reduce(), Foam::sin(), List< T >::size(), and WarningIn.
|
static |
Definition at line 1042 of file primitiveMeshGeometry.C.
References Foam::abort(), Foam::endl(), primitiveMesh::faces(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), face::nextLabel(), Foam::nl, Foam::reduce(), List< T >::size(), and WarningIn.
|
static |
Definition at line 1158 of file primitiveMeshGeometry.C.
References Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::nl, Foam::reduce(), and WarningIn.
|
static |
Definition at line 1223 of file primitiveMeshGeometry.C.
References cells, primitiveMesh::cells(), Foam::det(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), Foam::nl, Foam::reduce(), WarningIn, and Tensor< Cmpt >::zero.
bool checkFaceDotProduct | ( | const bool | report, |
const scalar | orthWarn, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1329 of file primitiveMeshGeometry.C.
bool checkFacePyramids | ( | const bool | report, |
const scalar | minPyrVol, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1350 of file primitiveMeshGeometry.C.
bool checkFaceSkewness | ( | const bool | report, |
const scalar | internalSkew, | ||
const scalar | boundarySkew, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1372 of file primitiveMeshGeometry.C.
bool checkFaceWeights | ( | const bool | report, |
const scalar | warnWeight, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1396 of file primitiveMeshGeometry.C.
bool checkFaceAngles | ( | const bool | report, |
const scalar | maxDeg, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1418 of file primitiveMeshGeometry.C.
bool checkFaceTwist | ( | const bool | report, |
const scalar | minTwist, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1463 of file primitiveMeshGeometry.C.
bool checkFaceArea | ( | const bool | report, |
const scalar | minArea, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1486 of file primitiveMeshGeometry.C.
bool checkCellDeterminant | ( | const bool | report, |
const scalar | warnDet, | ||
const labelList & | checkFaces, | ||
const labelList & | affectedCells, | ||
labelHashSet * | setPtr | ||
) | const |
Definition at line 1506 of file primitiveMeshGeometry.C.