Go to the documentation of this file.
92 auto iter =
p.begin();
94 for (
const label pointi : *
this)
108 return s < ROOTVSMALL ?
Zero :
n/
s;
127 return Foam::edge(thisLabel(edgei), nextLabel(edgei));
137 return vector(pts[nextLabel(edgei)] - pts[thisLabel(edgei)]);
145 const label pointi = edgei ? (nEdges() - edgei) : 0;
146 return Foam::edge(thisLabel(pointi), prevLabel(pointi));
158 const label pointi = edgei ? (nEdges() - edgei) : 0;
159 return vector(pts[prevLabel(pointi)] - pts[thisLabel(pointi)]);
171 return labelList::operator[](i);
177 return labelList::fcValue(i);
183 return labelList::rcValue(i);
List< label > labelList
A List of labels.
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.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label thisLabel(const label i) const
label nTriangles() const
Number of triangles after splitting.
Foam::edge edge(const label edgei) const
Return i-th face edge (forward walk order).
label nEdges() const noexcept
Return number of edges.
static int compare(const face &a, const face &b)
Compare faces.
Foam::edge rcEdge(const label edgei) const
Return i-th face edge in reverse walk order.
bool operator!=(const eddy &a, const eddy &b)
vector unitNormal(const UList< point > &p) const
The unit normal.
label which(const label pointLabel) const
Find local index on face for the point label, same as find()
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.
Vector< scalar > vector
A scalar version of the templated Vector.
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>.
pointField points(const UList< point > &pts) const
Return the points corresponding to this face.
A face is a list of labels corresponding to mesh vertices.
constexpr face() noexcept=default
Default construct.