Go to the documentation of this file.
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);
vectorField pointField
pointField is a vectorField.
static constexpr label nEdges() noexcept
Number of edges for HEX.
edge reverseEdge() const
Return reverse edge as copy.
static constexpr const zero Zero
Global zero (0)
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
pointField points(const UList< point > &meshPoints) const
The points corresponding to this shape.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Foam::edge edge(const label edgei) const
Return i-th edge.
Foam::face face(const label facei) const
Return i-th face.
static constexpr label nFaces() noexcept
Number of faces for HEX.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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> with a fixed length <N>.
point centre(const UList< point > &meshPoints) const
Cell centre - uses simple average of points.
hexCell()
Default construct, with invalid point labels (-1)
A face is a list of labels corresponding to mesh vertices.
Foam::edge reverseEdge(const label edgei) const
Return i-th edge reversed.