Storage and named access for the indices of a tet which is part of the decomposition of a cell. More...
Public Member Functions | |
constexpr | tetIndices () noexcept |
Default construct, with invalid labels (-1) More... | |
constexpr | tetIndices (label celli, label facei, label tetPointi) noexcept |
Construct from components. More... | |
~tetIndices ()=default | |
Destructor. More... | |
label | cell () const noexcept |
Return the cell index. More... | |
label & | cell () noexcept |
Non-const access to the cell index. More... | |
label | face () const noexcept |
Return the face index. More... | |
label & | face () noexcept |
Non-const access to the face index. More... | |
label | tetPt () const noexcept |
Return the characterising tet point index. More... | |
label & | tetPt () noexcept |
Non-const access to the characterising tet point index. More... | |
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. More... | |
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. More... | |
tetPointRef | tet (const polyMesh &mesh) const |
The tet geometry for this tet, where point0 is the cell centre. More... | |
tetPointRef | oldTet (const polyMesh &mesh) const |
The tet geometry for this tet (using old positions), where point0 is the cell centre. More... | |
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. More... | |
triPointRef | oldFaceTri (const polyMesh &mesh) const |
The triangle geometry for the face for this tet (using old positions) More... | |
point | barycentricToPoint (const polyMesh &mesh, const barycentric &bary) const |
The x/y/z position for given barycentric coordinates (where point0 is the cell centre). More... | |
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. More... | |
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.
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.
|
inlinenoexcept |
Default construct, with invalid labels (-1)
Definition at line 24 of file tetIndicesI.H.
|
inlinenoexcept |
Construct from components.
Definition at line 33 of file tetIndicesI.H.
|
default |
Destructor.
|
inlinenoexcept |
Return the cell index.
Definition at line 146 of file tetIndices.H.
Referenced by Basic< Type >::add(), Dual< Type >::add(), Moment< Type >::add(), tetIndices::compare(), polyMeshTetDecomposition::findTet(), interpolationCell< scalar >::interpolate(), interpolationCellPatchConstrained< Type >::interpolate(), interpolationCellPointWallModified< Type >::interpolate(), interpolationCellPoint< Foam::vector >::interpolate(), interpolation< Foam::vector >::interpolate(), Basic< Type >::interpolate(), Dual< Type >::interpolate(), Moment< Type >::interpolate(), Basic< Type >::interpolateGrad(), Dual< Type >::interpolateGrad(), Moment< Type >::interpolateGrad(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), and wallBoundedStreamLine::track().
|
inlinenoexcept |
Non-const access to the cell index.
Definition at line 151 of file tetIndices.H.
|
inlinenoexcept |
Return the face index.
Definition at line 156 of file tetIndices.H.
Referenced by tetIndices::compare(), polyMesh::findTetFacePt(), interpolationCellPointWallModified< Type >::interpolate(), interpolationCellPoint< Foam::vector >::interpolate(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), wallBoundedStreamLine::track(), and wallBoundedParticle::trackToEdge().
|
inlinenoexcept |
Non-const access to the face index.
Definition at line 161 of file tetIndices.H.
|
inlinenoexcept |
Return the characterising tet point index.
Definition at line 166 of file tetIndices.H.
Referenced by tetIndices::compare(), polyMesh::findTetFacePt(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), and wallBoundedStreamLine::track().
|
inlinenoexcept |
Non-const access to the characterising tet point index.
Definition at line 171 of file tetIndices.H.
|
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 48 of file tetIndicesI.H.
References Foam::endl(), f(), polyMesh::faceOwner(), polyMesh::faces(), UList< T >::fcIndex(), mesh, UList< T >::size(), polyMesh::tetBasePtIs(), triFace(), Foam::Warning, and WarningInFunction.
Referenced by Dual< Type >::add(), Moment< Type >::add(), Dual< Type >::Dual(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), interpolationCellPoint< Foam::vector >::interpolate(), Dual< Type >::interpolate(), Moment< Type >::interpolate(), Dual< Type >::interpolateGrad(), Moment< Type >::Moment(), and AveragingMethod< Foam::vector >::write().
|
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 89 of file tetIndicesI.H.
References Foam::endl(), f(), polyMesh::faceOwner(), polyMesh::faces(), UList< T >::fcIndex(), mesh, UList< T >::size(), polyMesh::tetBasePtIs(), 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 primitiveMesh::cellCentres(), mesh, polyMesh::points(), and pts.
Referenced by nearWallFields::calcAddressing(), Dual< Type >::Dual(), polyMeshTetDecomposition::findTet(), cellPointWeight::findTetrahedron(), interpolation< Foam::vector >::interpolate(), Moment< Type >::Moment(), wallBoundedParticle::trackToEdge(), and AveragingMethod< Foam::vector >::write().
|
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 mesh, polyMesh::oldCellCentres(), polyMesh::oldPoints(), 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 mesh, and polyMesh::points().
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 189 of file tetIndicesI.H.
References mesh, and polyMesh::oldPoints().
|
inline |
The x/y/z position for given barycentric coordinates (where point0 is the cell centre).
Definition at line 160 of file tetIndicesI.H.
References Barycentric< Cmpt >::a(), Foam::constant::physicoChemical::b, Barycentric< Cmpt >::b(), Foam::constant::universal::c, Barycentric< Cmpt >::c(), primitiveMesh::cellCentres(), Barycentric< Cmpt >::d(), mesh, polyMesh::points(), and pts.
|
inlinestaticnoexcept |
Compare tetIndices for equality. Compares cell, face, tetPt elements in order, stopping at the first inequality.
Definition at line 198 of file tetIndicesI.H.
References Foam::constant::physicoChemical::b, tetIndices::cell(), Foam::diff(), tetIndices::face(), and tetIndices::tetPt().
Referenced by Foam::operator<(), Foam::operator<=(), Foam::operator>(), and Foam::operator>=().
|
friend |
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.