30 inline void Foam::hexCell::copyFace(
Foam::face&
f,
const label facei)
const 32 f[0] = (*this)[modelFaces_[facei][0]];
33 f[1] = (*this)[modelFaces_[facei][1]];
34 f[2] = (*this)[modelFaces_[facei][2]];
35 f[3] = (*this)[modelFaces_[facei][3]];
69 template<
unsigned AnyNum>
94 <<
"Face index (" << facei <<
") out of range 0..5\n" 112 <<
"Edge index (" << edgei <<
") out of range 0..11\n" 119 (*
this)[modelEdges_[edgei][0]],
120 (*
this)[modelEdges_[edgei][1]]
140 for (
const label pointi : *
this)
144 cEst += meshPoints[pointi];
149 return (npts > 1 ? (cEst/scalar(npts)) : cEst);
155 const UList<point>& meshPoints
158 return pointField(List<point>(meshPoints, *
this));
Foam::edge reverseEdge(const label edgei) const
Return i-th edge reversed.
A face is a list of labels corresponding to mesh vertices.
A 1D vector of objects of type <T> with a fixed length <N>.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
edge reverseEdge() const
Return reverse edge as copy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Foam::face face(const label facei) const
Return i-th face.
Foam::edge edge(const label edgei) const
Return i-th edge.
static constexpr label nEdges() noexcept
Number of edges for HEX.
point centre(const UList< point > &meshPoints) const
Cell centre - uses simple average of points.
vectorField pointField
pointField is a vectorField.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
errorManip< error > abort(error &err)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
pointField points(const UList< point > &meshPoints) const
The points corresponding to this shape.
static constexpr label nFaces() noexcept
Number of faces for HEX.
hexCell()
Default construct, with invalid point labels (-1)
static constexpr const zero Zero
Global zero (0)