74template<
unsigned AnyNum>
99 <<
"Face index (" << facei <<
") out of range 0..3\n"
106 (*
this)[modelFaces_[facei][0]],
107 (*
this)[modelFaces_[facei][1]],
108 (*
this)[modelFaces_[facei][2]]
117 static const label edgeFaces[6] = {2, 3, 1, 0, 0, 1};
123 <<
"Edge index (" << edgei <<
") out of range 0..5\n"
128 return edgeFaces[edgei];
140 static const label adjacentFace[6][4] =
154 <<
"Face index (" << facei <<
") out of range 0..3\n"
161 <<
"Edge index (" << edgei <<
") out of range 0..5\n"
166 return adjacentFace[edgei][facei];
176 <<
"Edge index (" << edgei <<
") out of range 0..5\n"
183 (*
this)[modelEdges_[edgei][0]],
184 (*
this)[modelEdges_[edgei][1]]
192 return this->
edge(edgei).reverseEdge();
A 1D vector of objects of type <T> with a fixed length <N>.
label & operator[](const label i)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
Foam::edge edge(const label edgei) const
Return i-th edge.
label edgeFace(const label edgei) const
Return first face adjacent to the given edge.
pointField points(const UList< point > &meshPoints) const
The points corresponding to this shape.
tetPointRef tet(const UList< point > &meshPoints) const
Return the tetrahedron.
label edgeAdjacentFace(const label edgei, const label facei) const
Return face adjacent to the given face sharing the same edge.
Foam::edge reverseEdge(const label edgei) const
Return i-th edge reversed.
Foam::triFace face(const label facei) const
Return i-th face.
tetCell()
Default construct, with invalid point labels (-1).
static constexpr label nFaces() noexcept
Number of faces for TET.
static constexpr label nEdges() noexcept
Number of edges for TET.
A triangular face using a FixedList of labels corresponding to mesh vertices.
const volScalarField & p0
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tetrahedron< point, const point & > tetPointRef
A tetrahedron using referred points.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
vectorField pointField
pointField is a vectorField.
UList< label > labelUList
A UList of labels.