37 const Foam::label Foam::hexCell::modelFaces_[6][4] =
52 const Foam::label Foam::hexCell::modelEdges_[12][2] =
73 static std::unique_ptr<Foam::faceList> ptr(
nullptr);
82 f[0] = modelFaces_[facei][0];
83 f[1] = modelFaces_[facei][1];
84 f[2] = modelFaces_[facei][2];
85 f[3] = modelFaces_[facei][3];
96 static std::unique_ptr<Foam::edgeList> ptr(
nullptr);
105 e[0] = modelEdges_[edgei][0];
106 e[1] = modelEdges_[edgei][1];
122 for (
auto&
f : theFaces)
137 for (
auto&
e : theEdges)
139 e[0] = (*this)[modelEdges_[edgei][0]];
140 e[1] = (*this)[modelEdges_[edgei][1]];
150 static const cellModel* modelPtr(
nullptr);
157 return cellShape(*modelPtr, *
this, doCollapse);
A face is a list of labels corresponding to mesh vertices.
An analytical geometric cellShape.
static const Foam::edgeList & modelEdges()
Return the model edges.
static const Foam::faceList & modelFaces()
Return the model faces.
static constexpr label nEdges() noexcept
Number of edges for HEX.
const dimensionedScalar e
Elementary charge.
static const cellModel * ptr(const modelType model)
Look up pointer to cellModel by enumeration, or nullptr on failure.
cellShape shape(const bool doCollapse=false) const
Return HEX shape cell.
static constexpr label nFaces() noexcept
Number of faces for HEX.
Foam::edgeList edges() const
Return list of cell edges [12].
Foam::faceList faces() const
Return list of cell faces [6].