Go to the documentation of this file.
79 static const label a[4] = {1, 0, 0, 0};
80 static const label b[4] = {2, 3, 1, 2};
81 static const label c[4] = {3, 2, 3, 1};
84 if (facei < 0 || facei >= 4)
87 <<
"index out of range 0 -> 3. facei = " << facei
105 static const label edgeFaces[6] = {2, 3, 1, 0, 0, 1};
108 if (edgei < 0 || edgei >= 6)
111 <<
"edge index out of range 0 -> 5. edgei = " << edgei
116 return edgeFaces[edgei];
128 static const label adjacentFace[6][4] =
139 if (facei < 0 || facei >= 4)
142 <<
"face index out of range 0 -> 3. facei = " << facei
146 if (edgei < 0 || edgei >= 6)
149 <<
"edge index out of range 0 -> 5. edgei = " << edgei
154 return adjacentFace[edgei][facei];
162 static const label pt0[] = {0, 0, 0, 3, 1, 3};
163 static const label pt1[] = {1, 2, 3, 1, 2, 2};
166 if (edgei < 0 || edgei >= 6)
169 <<
"index out of range 0 -> 5. edgei = " << edgei
174 return edge(
operator[](pt0[edgei]),
operator[](pt1[edgei]));
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
tetCell()
Construct null, with invalid point labels (-1)
tetrahedron< point, const point & > tetPointRef
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
triFace face(const label facei) const
Return i-th face.
errorManip< error > abort(error &err)
edge tetEdge(const label edgei) const
Return i-th edge.
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.
tetPointRef tet(const UList< point > &points) const
Return the tetrahedron.
A 1D vector of objects of type <T> with a fixed length <N>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const dimensionedScalar c
Speed of light in a vacuum.