Go to the documentation of this file.
31 inline Foam::label Foam::face::right(
const label i)
const
37 inline Foam::label Foam::face::left(
const label i)
const
95 for (
const label pointi : *
this)
97 p[i++] = meshPoints[pointi];
109 return s < ROOTVSMALL ?
Zero :
n/
s;
128 return edge(
operator[](
n),
operator[](fcIndex(
n)));
146 return labelList::fcValue(i);
152 return labelList::rcValue(i);
pointField points(const UList< point > &points) const
Return the points corresponding to this face.
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))
static constexpr const zero Zero
Global zero (0)
scalar mag(const UList< point > &p) const
Magnitude of face area.
label nEdges() const
Return number of edges.
edge faceEdge(const label n) const
Return n-th face edge.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label nTriangles() const
Number of triangles after splitting.
static int compare(const face &a, const face &b)
Compare faces.
bool operator!=(const eddy &a, const eddy &b)
vector unitNormal(const UList< point > &p) const
The unit normal.
face()=default
Default construct.
label which(const label pointLabel) const
Find local index on face for the point label,.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
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)....
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Find index of the first occurrence that satisfies the predicate.
label prevLabel(const label i) const
Previous vertex on face.
label nextLabel(const label i) const
Next vertex on face.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A 1D vector of objects of type <T> with a fixed length <N>.
A face is a list of labels corresponding to mesh vertices.
bool found(const label pointLabel) const
Return true if the point label is found in face.