Go to the documentation of this file.
61 bool operator==(
const cellShape& a,
const cellShape&
b);
92 const bool doCollapse =
false
101 const bool doCollapse =
false
109 const bool doCollapse =
false
115 const word& modelName,
117 const bool doCollapse =
false
133 inline label
nPoints()
const noexcept;
136 inline label
nEdges()
const;
139 inline label
nFaces()
const;
184 const bool doCollapse =
false
193 const bool doCollapse =
false
219 Ostream&
operator<<(Ostream&
os,
const InfoProxy<cellShape>& ip);
void collapse()
Collapse shape to correct one after removing duplicate vertices.
friend Ostream & operator<<(Ostream &os, const cellShape &s)
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
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))
point centre(const UList< point > &points) const
Centroid of the cell.
constexpr cellShape() noexcept
Default construct. Empty shape, no cell model.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
labelList meshFaces(const faceList &allFaces, const cell &cFaces) const
Mesh face labels of this cell (in order of model)
Foam::face face(const label modelFacei) const
The face for the specified model face.
Istream & operator>>(Istream &, directionInfo &)
faceList faces() const
Faces of this cell.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
labelList meshEdges(const edgeList &allEdges, const labelList &cEdges) const
Mesh edge labels of this cell (in order of model)
pointField points(const UList< point > &meshPoints) const
The points corresponding to this shape.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
edgeList edges() const
Edges of this shape.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Foam::edge edge(const label modelEdgei) const
The edge for the specified model edge.
autoPtr< cellShape > clone() const
Clone.
friend Istream & operator>>(Istream &is, cellShape &s)
friend bool operator==(const cellShape &a, const cellShape &b)
OBJstream os(runTime.globalPath()/outputName)
An analytical geometric cellShape.
scalar mag(const UList< point > &points) const
Scalar magnitude.
void reset(const cellModel &model, const labelUList &labels, const bool doCollapse=false)
Reset from components.
label nFaces() const
Number of faces.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
label nEdges() const
Number of edges.
Foam::InfoProxy< cellShape > info() const
Return info proxy, to print information to a stream.
A 1D vector of objects of type <T> with a fixed length <N>.
faceList collapsedFaces() const
Collapsed faces of this cell.
label nPoints() const noexcept
Number of points.
A face is a list of labels corresponding to mesh vertices.
Maps a geometry to a set of cell primitives.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A cell is defined as a list of faces with extra functionality.
const cellModel & model() const
Model reference.