Go to the documentation of this file.
80 p[i] = meshPoints[operator[](i)];
109 const face& localF = localFaces[i];
113 label meshFaceI = cFaces[j];
115 if (allFaces[meshFaceI] == localF)
117 modelToMesh[i] = meshFaceI;
143 const edge&
e = localEdges[i];
147 label edgeI = cEdges[j];
149 if (allEdges[edgeI] ==
e)
151 modelToMesh[i] = edgeI;
164 return m->faces(*
this);
175 forAll(oldFaces, oldFaceI)
177 const face&
f = oldFaces[oldFaceI];
179 face& newF = newFaces[newFaceI];
184 label prevVertI = -1;
190 if (vertI != prevVertI)
192 newF[newFp++] = vertI;
198 if ((newFp > 1) && (newF[newFp-1] == newF[0]))
225 return m->edges(*
this);
249 return m->mag(*
this,
points);
point centre(const pointField &) const
Centroid of the cell.
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
labelList meshEdges(const edgeList &allEdges, const labelList &) const
Mesh edge labels of this cell (in order of model)
scalar mag(const pointField &) const
Scalar magnitude.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
faceList faces() const
Faces of this cell.
pointField points(const pointField &meshPoints) const
Return the points corresponding to this cellShape.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
edgeList edges() const
Edges of this cellShape.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
autoPtr< cellShape > clone() const
Clone.
const Vector< Cmpt > & centre(const Foam::List< Vector< Cmpt > > &) const
Return *this (used for point which is a typedef to Vector<scalar>.
cellShape()
Construct null.
An analytical geometric cellShape.
const double e
Elementary charge.
void setSize(const label)
Reset size of List.
label nFaces() const
Number of faces.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
label nEdges() const
Number of edges.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label nPoints() const
Number of points.
faceList collapsedFaces() const
Collapsed faces of this cell.
A face is a list of labels corresponding to mesh vertices.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
void size(const label)
Override size to be inconsistent with allocated storage.
A cell is defined as a list of faces with extra functionality.
labelList meshFaces(const faceList &allFaces, const cell &) const
Mesh face labels of this cell (in order of model)
const cellModel & model() const
Model reference.