49#ifndef Foam_cellModel_H
50#define Foam_cellModel_H
154 static void constructModels();
209 const label modelEdgei,
216 const label modelFacei,
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A helper class for outputting values to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
Maps a geometry to a set of cell primitives.
vector centre(const labelUList &pointLabels, const UList< point > &points) const
Centroid of the cell.
const word & name() const noexcept
Return model name.
friend Ostream & operator<<(Ostream &os, const cellModel &cm)
cellModel(Istream &is)
Construct from Istream.
scalar mag(const labelUList &pointLabels, const UList< point > &points) const
Cell volume.
edgeList edges(const labelUList &pointLabels) const
Return list of cell edges.
autoPtr< cellModel > clone() const
Return clone.
label nEdges() const noexcept
Return number of edges.
static autoPtr< cellModel > New(Istream &is)
Return a new cellModel created from Istream.
const faceList & modelFaces() const noexcept
Return a raw list of model faces.
bool writeData(Ostream &os) const
The writeData member function required by regIOobject.
InfoProxy< cellModel > info() const noexcept
Return info proxy, used to print information to a stream.
modelType
Enumeration of commonly used cellModel types.
label index() const noexcept
Return index of model in the model list.
Foam::edge edge(const label modelEdgei, const labelUList &pointLabels) const
Return the cell edge for specified model edge.
label nFaces() const noexcept
Return number of faces.
Foam::face face(const label modelFacei, const labelUList &pointLabels) const
Return the cell face for specified model face.
static const cellModel * ptr(const modelType model)
Look up pointer to cellModel by enumeration, or nullptr on failure.
faceList faces(const labelUList &pointLabels) const
Return list of cell faces.
static const Enum< modelType > modelNames
Names of commonly used cellModels corresponding to modelType.
const edgeList & modelEdges() const noexcept
Return a raw list of model edges.
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
A face is a list of labels corresponding to mesh vertices.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< edge > edgeList
List of edge.
bool operator!=(const eddy &a, const eddy &b)
List< face > faceList
List of faces.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
vector point
Point is a vector.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
UList< label > labelUList
A UList of labels.
labelList pointLabels(nPoints, -1)