58#ifndef Foam_tetIndices_H
59#define Foam_tetIndices_H
101 static constexpr int maxNWarnings = 100;
105 static int nWarnings_;
133 label
cell()
const noexcept {
return celli_; }
158 const bool warn =
true
166 const bool warn =
true
222template<>
struct is_contiguous_label<tetIndices> : std::true_type {};
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Mesh consisting of general polyhedral cells.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
label face() const noexcept
Return the face index.
tetPointRef oldTet(const polyMesh &mesh) const
The tet geometry for this tet (using old positions), where point0 is the cell centre.
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 ...
~tetIndices()=default
Destructor.
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 ...
label & face() noexcept
Non-const access to the face index.
friend Ostream & operator<<(Ostream &, const tetIndices &)
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 th...
tetPointRef tet(const polyMesh &mesh) const
The tet geometry for this tet, 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.
label tetPt() const noexcept
Return the characterising tet point index.
label cell() const noexcept
Return the cell index.
constexpr tetIndices() noexcept
Default construct, with invalid labels (-1).
friend Istream & operator>>(Istream &, tetIndices &)
triPointRef oldFaceTri(const polyMesh &mesh) const
The triangle geometry for the face for this tet (using old positions).
label & tetPt() noexcept
Non-const access to the characterising tet point index.
point barycentricToPoint(const polyMesh &mesh, const barycentric &bary) const
The x/y/z position for given barycentric coordinates (where point0 is the cell centre).
label & cell() noexcept
Non-const access to the cell index.
A triangular face using a FixedList of labels corresponding to mesh vertices.
bool operator!=(const eddy &a, const eddy &b)
bool operator<=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or older than B.
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
tetrahedron< point, const point & > tetPointRef
A tetrahedron using referred points.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
vector point
Point is a vector.
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
triangle< point, const point & > triPointRef
A triangle using referred points.
Barycentric< scalar > barycentric
A scalar version of the templated Barycentric.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
A template class to specify if a data type is composed solely of Foam::label elements.
A template class to specify that a data type can be considered as being contiguous in memory.