44 #ifndef Foam_cellShape_H 45 #define Foam_cellShape_H 61 bool operator==(
const cellShape& a,
const cellShape&
b);
66 Ostream& operator<<(Ostream& os, const InfoProxy<cellShape>& ip);
95 const bool doCollapse =
false 104 const bool doCollapse =
false 112 const bool doCollapse =
false 120 const bool doCollapse =
false 128 const bool doCollapse =
false 134 const word& modelName,
136 const bool doCollapse =
false 155 inline label
nEdges()
const;
158 inline label
nFaces()
const;
203 const bool doCollapse =
false 212 const bool doCollapse =
false label nPoints() const noexcept
Number of points.
A face is a list of labels corresponding to mesh vertices.
A 1D vector of objects of type <T> with a fixed length <N>.
void collapse()
Collapse shape to correct one after removing duplicate vertices.
An analytical geometric cellShape.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
InfoProxy< cellShape > info() const noexcept
Return info proxy, used to print information to a stream.
autoPtr< cellShape > clone() const
Clone.
labelList meshEdges(const edgeList &allEdges, const labelList &cEdges) const
Mesh edge labels of this cell (in order of model)
friend Istream & operator>>(Istream &is, cellShape &s)
friend bool operator==(const cellShape &a, const cellShape &b)
friend Ostream & operator<<(Ostream &os, const cellShape &s)
faceList faces() const
Faces of this cell.
label nEdges() const
Number of edges.
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
labelList meshFaces(const faceList &allFaces, const cell &cFaces) const
Mesh face labels of this cell (in order of model)
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
void reset(const cellModel &model, const labelUList &labels, const bool doCollapse=false)
Reset from components.
pointField points(const UList< point > &meshPoints) const
The points corresponding to this shape.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Foam::edge edge(const label modelEdgei) const
The edge for the specified model edge.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
faceList collapsedFaces() const
Collapsed faces of this cell.
OBJstream os(runTime.globalPath()/outputName)
edgeList edges() const
Edges of this shape.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
modelType
Enumeration of commonly used cellModel types.
const cellModel & model() const
Model reference.
A helper class for outputting values to Ostream.
A cell is defined as a list of faces with extra functionality.
Maps a geometry to a set of cell primitives.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
label nFaces() const
Number of faces.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
constexpr cellShape() noexcept
Default construct. Empty shape, no cell model.
scalar mag(const UList< point > &points) const
Scalar magnitude.
Foam::face face(const label modelFacei) const
The face for the specified model face.
point centre(const UList< point > &points) const
Centroid of the cell.