69 static const label a[] = {1, 0, 0, 0};
70 static const label b[] = {2, 3, 1, 2};
71 static const label c[] = {3, 2, 3, 1};
77 <<
"index out of range 0 -> 3. faceI = " << faceI
96 static const label edgeFaces[6] = {2, 3, 1, 0, 0, 1};
103 "tetCell::edgeFace(const label edgeI)" 105 ) <<
"edge index out of range 0 -> 5. edgeI = " << edgeI
110 return edgeFaces[edgeI];
122 static const label adjacentFace[6][4] =
137 "tetCell::edgeAdjacentFace(const label edgeI, const label faceI)" 139 ) <<
"face index out of range 0 -> 3. faceI = " << faceI
147 "tetCell::edgeAdjacentFace(const label edgeI, const label faceI)" 149 ) <<
"edge index out of range 0 -> 5. edgeI = " << edgeI
154 return adjacentFace[edgeI][faceI];
163 static const label start[] = {0, 0, 0, 3, 1, 3};
164 static const label end[] = {1, 2, 3, 1, 2, 2};
169 FatalErrorIn(
"tetCell::tetEdge(const label edgeI) const")
170 <<
"index out of range 0 -> 5. edgeI = " << edgeI
175 return edge(
operator[](start[edgeI]),
operator[](end[edgeI]));
183 points[
operator[](0)],
184 points[
operator[](1)],
185 points[
operator[](2)],
186 points[
operator[](3)]
edge tetEdge(const label edgeI) const
Return i-th edge.
const pointField & 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)...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label edgeAdjacentFace(const label edgeI, const label faceI) const
Return face adjacent to the given face sharing the same edge.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
tetrahedron< point, const point & > tetPointRef
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
tetPointRef tet(const pointField &) const
Return the tetrahedron.
label & operator[](const label)
Return element of FixedList.
iterator end()
Return an iterator to end traversing the FixedList.
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
triFace face(const label faceI) const
Return i-th face.
A triangular face using a FixedList of labels corresponding to mesh vertices.
const dimensionedScalar c
Speed of light in a vacuum.
label edgeFace(const label edgeI) const
Return first face adjacent to the given edge.