Updateable mesh geometry + checking routines. More...
#include <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) |
Updateable mesh geometry + checking routines.
Definition at line 47 of file primitiveMeshGeometry.H.
| primitiveMeshGeometry | ( | const primitiveMesh & | mesh | ) |
Construct from mesh.
Definition at line 206 of file primitiveMeshGeometry.C.
References correct(), and mesh().

| ClassName | ( | "primitiveMeshGeometry" | ) |
|
inline |
Definition at line 113 of file primitiveMeshGeometry.H.
Referenced by checkCellDeterminant(), checkFaceAngles(), checkFaceArea(), checkFaceDotProduct(), checkFacePyramids(), checkFaceSkewness(), checkFaceTwist(), checkFaceWeights(), and primitiveMeshGeometry().

|
inline |
Definition at line 118 of file primitiveMeshGeometry.H.
Referenced by checkCellDeterminant(), checkFaceAngles(), checkFaceArea(), checkFaceDotProduct(), checkFaceSkewness(), checkFaceTwist(), and checkFaceWeights().

|
inline |
Definition at line 122 of file primitiveMeshGeometry.H.
Referenced by checkFaceSkewness(), checkFaceTwist(), and checkFaceWeights().

|
inline |
Definition at line 126 of file primitiveMeshGeometry.H.
Referenced by checkFaceDotProduct(), checkFacePyramids(), checkFaceSkewness(), and checkFaceWeights().

|
inline |
Definition at line 130 of file primitiveMeshGeometry.H.
| void correct | ( | ) |
Take over properties from mesh.
Definition at line 219 of file primitiveMeshGeometry.C.
Referenced by 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 228 of file primitiveMeshGeometry.C.
References affectedCells(), and p.

| Foam::labelList affectedCells | ( | const labelList & | changedFaces | ) | const |
Helper function: get affected cells from faces.
Definition at line 181 of file primitiveMeshGeometry.C.
References affectedCells(), and UList< T >::size().
Referenced by affectedCells(), checkCellDeterminant(), checkCellDeterminant(), and correct().


|
static |
Definition at line 241 of file primitiveMeshGeometry.C.
References Foam::acos(), cellCentres(), Foam::cos(), Foam::degToRad(), Foam::endl(), faceAreas(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh(), Foam::Pout, Foam::radToDeg(), Foam::reduce(), Foam::returnReduce(), s(), SeriousErrorInFunction, UList< T >::size(), and WarningInFunction.
Referenced by checkFaceDotProduct().


|
static |
Definition at line 381 of file primitiveMeshGeometry.C.
References cellCentres(), Foam::endl(), f(), Foam::Info, HashSet< Key, Hash >::insert(), pyramid< Point, PointRef, PolygonRef >::mag(), mesh(), p, Foam::Pout, Foam::reduce(), and SeriousErrorInFunction.
Referenced by checkFacePyramids().


|
static |
Definition at line 489 of file primitiveMeshGeometry.C.
References cellCentres(), Foam::endl(), faceAreas(), faceCentres(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh(), Foam::nl, Foam::normalised(), Foam::Pout, Foam::reduce(), and WarningInFunction.
Referenced by checkFaceSkewness().


|
static |
Definition at line 624 of file primitiveMeshGeometry.C.
References cellCentres(), Foam::endl(), faceAreas(), faceCentres(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh(), Foam::min(), Foam::nl, Foam::Pout, Foam::reduce(), and WarningInFunction.
Referenced by checkFaceWeights().


|
static |
Definition at line 706 of file primitiveMeshGeometry.C.
References Foam::abort(), Foam::asin(), Foam::degToRad(), Foam::endl(), f(), faceAreas(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), mesh(), Foam::min(), Foam::normalised(), p, Foam::radToDeg(), Foam::reduce(), Foam::sin(), and WarningInFunction.
Referenced by checkFaceAngles().


|
static |
Definition at line 959 of file primitiveMeshGeometry.C.
References Foam::abort(), triangle< point, const point & >::areaNormal(), Foam::endl(), f(), faceAreas(), faceCentres(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh(), Foam::nl, p, Foam::reduce(), and WarningInFunction.
Referenced by checkFaceTwist().


|
static |
Definition at line 1063 of file primitiveMeshGeometry.C.
References Foam::endl(), faceAreas(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh(), Foam::nl, Foam::reduce(), and WarningInFunction.
Referenced by checkFaceArea().


|
static |
Definition at line 1120 of file primitiveMeshGeometry.C.
References affectedCells(), cells, Foam::det(), Foam::endl(), faceAreas(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), mesh(), Foam::min(), Foam::nl, Foam::reduce(), WarningInFunction, and Foam::Zero.
Referenced by checkCellDeterminant().


| bool checkFaceDotProduct | ( | const bool | report, |
| const scalar | orthWarn, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1219 of file primitiveMeshGeometry.C.
References checkFaceDotProduct().

| bool checkFacePyramids | ( | const bool | report, |
| const scalar | minPyrVol, | ||
| const pointField & | p, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1240 of file primitiveMeshGeometry.C.
References checkFacePyramids(), and p.

| bool checkFaceSkewness | ( | const bool | report, |
| const scalar | internalSkew, | ||
| const scalar | boundarySkew, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1262 of file primitiveMeshGeometry.C.
References checkFaceSkewness().

| bool checkFaceWeights | ( | const bool | report, |
| const scalar | warnWeight, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1286 of file primitiveMeshGeometry.C.
References checkFaceWeights().

| bool checkFaceAngles | ( | const bool | report, |
| const scalar | maxDeg, | ||
| const pointField & | p, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1308 of file primitiveMeshGeometry.C.
References checkFaceAngles(), and p.

| bool checkFaceTwist | ( | const bool | report, |
| const scalar | minTwist, | ||
| const pointField & | p, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1353 of file primitiveMeshGeometry.C.
References checkFaceTwist(), and p.

| bool checkFaceArea | ( | const bool | report, |
| const scalar | minArea, | ||
| const labelList & | checkFaces, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1376 of file primitiveMeshGeometry.C.
References checkFaceArea().

| bool checkCellDeterminant | ( | const bool | report, |
| const scalar | warnDet, | ||
| const labelList & | checkFaces, | ||
| const labelList & | affectedCells, | ||
| labelHashSet * | setPtr ) const |
Definition at line 1396 of file primitiveMeshGeometry.C.
References affectedCells(), and checkCellDeterminant().
