Storage and named access for the indices of a tet which is part of the decomposition of a cell. More...
#include <tetIndices.H>
Public Member Functions | |
| constexpr | tetIndices () noexcept |
| Default construct, with invalid labels (-1). | |
| constexpr | tetIndices (label celli, label facei, label tetPointi) noexcept |
| Construct from components. | |
| ~tetIndices ()=default | |
| Destructor. | |
| label | cell () const noexcept |
| Return the cell index. | |
| label & | cell () noexcept |
| Non-const access to the cell index. | |
| label | face () const noexcept |
| Return the face index. | |
| label & | face () noexcept |
| Non-const access to the face index. | |
| label | tetPt () const noexcept |
| Return the characterising tet point index. | |
| label & | tetPt () noexcept |
| Non-const access to the characterising tet point index. | |
| triFace | faceTriIs (const polyMesh &mesh, const bool warn=true) const |
| The indices corresponding to the tri on the face for this tet. The normal of the tri points out of the cell. | |
| triFace | triIs (const polyMesh &mesh, const bool warn=true) const |
| Local indices corresponding to the tri on the face for this tet. The normal of the tri points out of the cell. | |
| tetPointRef | tet (const polyMesh &mesh) const |
| The tet geometry for this tet, where point0 is the cell centre. | |
| tetPointRef | oldTet (const polyMesh &mesh) const |
| The tet geometry for this tet (using old positions), where point0 is the cell centre. | |
| triPointRef | faceTri (const polyMesh &mesh) const |
| The triangle geometry for the face for this tet. The normal of the tri points out of the cell. | |
| triPointRef | oldFaceTri (const polyMesh &mesh) const |
| The triangle geometry for the face for this tet (using old positions). | |
| point | barycentricToPoint (const polyMesh &mesh, const barycentric &bary) const |
| The x/y/z position for given barycentric coordinates (where point0 is the cell centre). | |
Static Public Member Functions | |
| static label | compare (const tetIndices &a, const tetIndices &b) noexcept |
| Compare tetIndices for equality. Compares cell, face, tetPt elements in order, stopping at the first inequality. | |
Friends | |
| Istream & | operator>> (Istream &, tetIndices &) |
| Ostream & | operator<< (Ostream &, const tetIndices &) |
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
Tets are designated by
facePtB is next one after/before facePtA e.g.:
+—+ |2 /| | / | |/ 1| <- tetPt (so 1 for first triangle, 2 for second) +—+ ^ faceBasePt
Definition at line 78 of file tetIndices.H.
|
inlineconstexprnoexcept |
Default construct, with invalid labels (-1).
Definition at line 24 of file tetIndicesI.H.
References Foam::noexcept.
Referenced by compare(), operator<<, and operator>>.

|
inlineconstexprnoexcept |
|
default |
Destructor.
|
inlinenoexcept |
Return the cell index.
Definition at line 146 of file tetIndices.H.
References Foam::noexcept.
Referenced by Basic< Type >::add(), Dual< Type >::add(), Moment< Type >::add(), polyMeshTetDecomposition::findTet(), Basic< Type >::interpolate(), Dual< Type >::interpolate(), Moment< Type >::interpolate(), interpolation< Type >::interpolate(), interpolationCell< Type >::interpolate(), interpolationCellPatchConstrained< Type >::interpolate(), interpolationCellPoint< Type >::interpolate(), interpolationCellPointWallModified< Type >::interpolate(), Basic< Type >::interpolateGrad(), Dual< Type >::interpolateGrad(), Moment< Type >::interpolateGrad(), and wallBoundedStreamLine::track().

|
inlinenoexcept |
Non-const access to the cell index.
Definition at line 151 of file tetIndices.H.
References Foam::noexcept.
|
inlinenoexcept |
Return the face index.
Definition at line 156 of file tetIndices.H.
References Foam::noexcept.
Referenced by polyMesh::findTetFacePt(), interpolationCellPoint< Type >::interpolate(), interpolationCellPointWallModified< Type >::interpolate(), wallBoundedStreamLine::track(), and wallBoundedParticle::trackToEdge().

|
inlinenoexcept |
Non-const access to the face index.
Definition at line 161 of file tetIndices.H.
References Foam::noexcept.
|
inlinenoexcept |
Return the characterising tet point index.
Definition at line 166 of file tetIndices.H.
References Foam::noexcept.
Referenced by polyMesh::findTetFacePt(), and wallBoundedStreamLine::track().

|
inlinenoexcept |
Non-const access to the characterising tet point index.
Definition at line 171 of file tetIndices.H.
References Foam::noexcept.
|
inline |
The indices corresponding to the tri on the face for this tet. The normal of the tri points out of the cell.
Definition at line 47 of file tetIndicesI.H.
References Foam::endl(), f(), mesh, triFace(), Foam::Warning, and WarningInFunction.
Referenced by Dual< Type >::add(), Moment< Type >::add(), barycentricToPoint(), Dual< Type >::Dual(), faceTri(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), Dual< Type >::interpolate(), Moment< Type >::interpolate(), interpolationCellPoint< Type >::interpolate(), Dual< Type >::interpolateGrad(), Moment< Type >::Moment(), oldFaceTri(), oldTet(), and tet().


|
inline |
Local indices corresponding to the tri on the face for this tet. The normal of the tri points out of the cell.
Definition at line 88 of file tetIndicesI.H.
References Foam::endl(), f(), mesh, triFace(), Foam::Warning, and WarningInFunction.
Referenced by wallBoundedParticle::trackToEdge().


|
inline |
The tet geometry for this tet, where point0 is the cell centre.
Definition at line 129 of file tetIndicesI.H.
References faceTriIs(), mesh, and pts.
Referenced by nearWallFields::calcAddressing(), Dual< Type >::Dual(), polyMeshTetDecomposition::findTet(), cellPointWeight::findTetrahedron(), interpolation< Type >::interpolate(), Moment< Type >::Moment(), and wallBoundedParticle::trackToEdge().


|
inline |
The tet geometry for this tet (using old positions), where point0 is the cell centre.
Definition at line 144 of file tetIndicesI.H.
References faceTriIs(), mesh, and pts.

|
inline |
The triangle geometry for the face for this tet. The normal of the tri points out of the cell.
Definition at line 182 of file tetIndicesI.H.
References faceTriIs(), and mesh.
Referenced by cellPointWeight::findTriangle(), FreeStream< CloudType >::inflow(), polyMesh::pointInCell(), wallBoundedStreamLine::track(), and wallBoundedParticle::trackToEdge().


|
inline |
The triangle geometry for the face for this tet (using old positions).
Definition at line 188 of file tetIndicesI.H.
References faceTriIs(), and mesh.

|
inline |
The x/y/z position for given barycentric coordinates (where point0 is the cell centre).
Definition at line 159 of file tetIndicesI.H.
References Barycentric< Cmpt >::a(), b, Barycentric< Cmpt >::b(), Barycentric< Cmpt >::c(), Barycentric< Cmpt >::d(), faceTriIs(), mesh, pts, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

|
inlinestaticnoexcept |
Compare tetIndices for equality. Compares cell, face, tetPt elements in order, stopping at the first inequality.
Definition at line 197 of file tetIndicesI.H.
References b, Foam::diff(), and tetIndices().
Referenced by Foam::operator<(), Foam::operator<=(), Foam::operator>(), and Foam::operator>=().


|
friend |
References tetIndices().
|
friend |
References tetIndices().