Go to the documentation of this file.
67 Ostream&
operator<<(Ostream& os,
const cellModel& cm);
150 static void constructModels();
179 inline label
index()
const;
185 inline label
nEdges()
const;
188 inline label
nFaces()
const;
242 Ostream&
operator<<(Ostream& os,
const InfoProxy<cellModel>& ip);
248 inline bool operator==(
const cellModel& lhs,
const cellModel& rhs);
251 inline bool operator!=(
const cellModel& lhs,
const cellModel& rhs);
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
InfoProxy< cellModel > info() const
Return info proxy.
label nFaces() const
Return number of faces.
faceList faces(const labelUList &pointLabels) const
Return list of 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.
static autoPtr< cellModel > New(Istream &is)
Return a new cellModel on free-store 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)
label nEdges() const
Return number of edges.
edgeList edges(const labelUList &pointLabels) const
Return list of edges.
autoPtr< cellModel > clone() const
Return clone.
cellModel(Istream &is)
Construct from Istream.
vector centre(const labelList &pointLabels, const UList< point > &points) const
Vector centroid.
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
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)....
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.
const faceList & modelFaces() const
Return a raw list of model faces.
const word & name() const
Return model name.
const edgeList & modelEdges() const
Return a raw list of model edges.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
label index() const
Return index of model in the model list.
labelList pointLabels(nPoints, -1)
label nPoints() const
Return number of points.