97 const word& modelName,
176 for (
const label meshFacei : cFaces)
178 if (allFaces[meshFacei] == localF)
180 modelToMesh[i] = meshFacei;
207 for (
const label edgei : cEdges)
209 if (allEdges[edgei] ==
e)
211 modelToMesh[i] = edgei;
223 return m->
face(modelFacei, *
this);
229 return m->faces(*
this);
246 label prevVerti = -1;
248 for (
const label verti :
f)
250 if (verti != prevVerti)
252 newF[newFp++] = verti;
257 if ((newFp > 1) && (newF[newFp-1] == newF[0]))
269 newFaces.
resize(newFacei);
277 return m->
edge(modelEdgei, *
this);
283 return m->edges(*
this);
289 return m->centre(*
this,
points);
303 const bool doCollapse
321 const bool doCollapse
A 1D vector of objects of type <T> with a fixed length <N>.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void resize(const label len)
Adjust allocated size of list.
scalar centre() const
Mid-point location, zero for an empty list.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A List with indirect addressing. Like IndirectList but does not store addressing.
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Maps a geometry to a set of cell primitives.
const cellModel & model() const
Model reference.
autoPtr< cellShape > clone() const
Clone.
void collapse()
Collapse shape to correct one after removing duplicate vertices.
labelList meshFaces(const faceList &allFaces, const cell &cFaces) const
Mesh face labels of this cell (in order of model)
label nPoints() const noexcept
Number of points.
faceList faces() const
Faces of this cell.
constexpr cellShape() noexcept
Default construct. Empty shape, no cell model.
edgeList edges() const
Edges of this shape.
faceList collapsedFaces() const
Collapsed faces of this cell.
label nEdges() const
Number of edges.
label nFaces() const
Number of faces.
A cell is defined as a list of faces with extra functionality.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
edge()
Default construct, with invalid point labels (-1)
void reset()
Reset to defaults.
A face is a list of labels corresponding to mesh vertices.
constexpr face() noexcept=default
Default construct.
Computes the magnitude of an input field.
mag(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const labelList & meshEdges() const
Return global edge index for local edges.
A class for handling words, derived from Foam::string.
vectorField pointField
pointField is a vectorField.
#define forAll(list, i)
Loop across all elements in list.