Go to the documentation of this file.
67 Ostream&
operator<<(Ostream& os,
const cellModel& cm);
150 static void constructModels();
176 inline const word&
name() const noexcept;
179 inline label
index() const noexcept;
182 inline label
nPoints() const noexcept;
185 inline label
nEdges() const noexcept;
188 inline label
nFaces() const noexcept;
205 const label modelEdgei,
212 const label modelFacei,
255 Ostream&
operator<<(Ostream& os,
const InfoProxy<cellModel>& ip);
261 inline bool operator==(
const cellModel& lhs,
const cellModel& rhs) noexcept;
264 inline bool operator!=(
const cellModel& lhs,
const cellModel& rhs) noexcept;
label index() const noexcept
Return index of model in the model list.
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
InfoProxy< cellModel > info() const
Return info proxy.
faceList faces(const labelUList &pointLabels) const
Return list of cell faces.
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
static const Enum< modelType > modelNames
Names of commonly used cellModels corresponding to modelType.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
static autoPtr< cellModel > New(Istream &is)
Return a new cellModel created from Istream.
static const cellModel * ptr(const modelType model)
Look up pointer to cellModel by enumeration, or nullptr on failure.
friend Ostream & operator<<(Ostream &os, const cellModel &cm)
edgeList edges(const labelUList &pointLabels) const
Return list of cell edges.
autoPtr< cellModel > clone() const
Return clone.
cellModel(Istream &is)
Construct from Istream.
vector centre(const labelList &pointLabels, const UList< point > &points) const
Centroid of the cell.
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool writeData(Ostream &os) const
The writeData member function required by regIOobject.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const edgeList & modelEdges() const noexcept
Return a raw list of model edges.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
static const cellModel & ref(const modelType model)
Look up reference to cellModel by enumeration. Fatal on failure.
label nEdges() const noexcept
Return number of edges.
const word & name() const noexcept
Return model name.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
label nFaces() const noexcept
Return number of faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label nPoints() const noexcept
Return number of points.
const faceList & modelFaces() const noexcept
Return a raw list of model faces.
A face is a list of labels corresponding to mesh vertices.
modelType
Enumeration of commonly used cellModel types.
Maps a geometry to a set of cell primitives.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool good() const
Return true if next operation might succeed.
scalar mag(const labelList &pointLabels, const UList< point > &points) const
Cell volume.
labelList pointLabels(nPoints, -1)