40 label triI = triFaces.
size();
47 return split(SPLITTRIANGLE,
points, triI, quadI, triFaces, quadFaces);
78 for (label pI=0; pI<
nPoints; pI++)
80 centrePoint += meshPoints[operator[](pI)];
81 cf +=
fld[operator[](pI)];
90 for (label pI=0; pI<
nPoints; pI++)
103 (meshPoints[
operator[](pI)] - centrePoint)
104 ^ (meshPoints[
operator[]((pI + 1) %
nPoints)] - centrePoint)
113 return sumAf/(3*sumA);
void size(const label n)
Older name for setAddressableSize.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label nTriangles() const noexcept
Number of triangles after splitting.
label triangles(const UList< point > &points, label &triI, faceList &triFaces) const
Split into triangles using existing points.
void setSize(const label n)
Same as resize()
pointField points(const UList< point > &pts) const
Return the points corresponding to this face.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Generic templated field type.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
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;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static bool split(const std::string &line, std::string &key, std::string &val)
Type average(const UList< point > &meshPoints, const Field< Type > &fld) const
Calculate average value at centroid of face.
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0)