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