Go to the documentation of this file.
86 static const label a[4] = {1, 0, 0, 0};
87 static const label
b[4] = {2, 3, 1, 2};
88 static const label
c[4] = {3, 2, 3, 1};
91 if (facei < 0 || facei >= 4)
94 <<
"index out of range 0 -> 3. facei = " << facei
101 operator[](a[facei]),
102 operator[](
b[facei]),
112 static const label edgeFaces[6] = {2, 3, 1, 0, 0, 1};
115 if (edgei < 0 || edgei >= 6)
118 <<
"edge index out of range 0 -> 5. edgei = " << edgei
123 return edgeFaces[edgei];
135 static const label adjacentFace[6][4] =
146 if (facei < 0 || facei >= 4)
149 <<
"face index out of range 0 -> 3. facei = " << facei
153 if (edgei < 0 || edgei >= 6)
156 <<
"edge index out of range 0 -> 5. edgei = " << edgei
161 return adjacentFace[edgei][facei];
169 static const label pt0[] = {0, 0, 0, 3, 1, 3};
170 static const label pt1[] = {1, 2, 3, 1, 2, 2};
173 if (edgei < 0 || edgei >= 6)
176 <<
"index out of range 0 -> 5. edgei = " << edgei
181 return Foam::edge(
operator[](pt0[edgei]),
operator[](pt1[edgei]));
187 return tetEdge(edgei);
edge reverseEdge() const
Return reverse edge as copy.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
tetCell()
Default construct, with invalid point labels (-1)
tetrahedron< point, const point & > tetPointRef
A tetrahedron using referred points.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label edgeAdjacentFace(const label edgei, const label facei) const
Return face adjacent to the given face sharing the same edge.
Foam::triFace face(const label facei) const
Return i-th face.
errorManip< error > abort(error &err)
Foam::edge tetEdge(const label edgei) const
Return i-th edge from tet.
label edgeFace(const label edgei) const
Return first face adjacent to the given edge.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A triangular face using a FixedList of labels corresponding to mesh vertices.
Foam::edge edge(const label edgei) const
Return i-th edge. Identical to tetEdge but with generic name.
tetPointRef tet(const UList< point > &points) const
Return the tetrahedron.
A 1D vector of objects of type <T> with a fixed length <N>.
const dimensionedScalar c
Speed of light in a vacuum.
Foam::edge reverseEdge(const label edgei) const
Return i-th edge reversed.