94 for (
const label pointi : *
this)
108 return s < ROOTVSMALL ?
Zero :
n/
s;
114 return ::Foam::mag(areaNormal(
p));
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)]);
A 1D vector of objects of type <T> with a fixed length <N>.
const T & rcValue(const label i) const
Return reverse circular value (ie, previous value in the list)
const T & fcValue(const label i) const
Return forward circular value (ie, next value in the list)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
iterator begin() noexcept
Return an iterator to begin traversing the UList.
iterator find(const word &key)
Find a list element has a name matching key.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label operator[](const label i) const
Processor-local element id from linear-list of addresses.
A face is a list of labels corresponding to mesh vertices.
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.
label which(const label pointLabel) const
Find local index on face for the point label, same as find()
label nextLabel(const label i) const
Next vertex on face.
label thisLabel(const label i) const
label nTriangles() const
Number of triangles after splitting.
constexpr face() noexcept=default
Default construct.
label prevLabel(const label i) const
Previous vertex on face.
Computes the magnitude of an input field.
vector unitNormal() const
Return unit normal.
const labelList nEdges(UPstream::listGatherValues< label >(aMesh.nEdges()))
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))
bool operator!=(const eddy &a, const eddy &b)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)