38 const word& entryName,
42 patchFunction1Base(
pp, entryName, faceValues),
51 const word& entryName,
52 const dictionary&
dict,
56 patchFunction1Base(
pp, entryName,
dict, faceValues),
57 coordSys_(
pp.boundaryMesh().
mesh().thisDb(),
dict)
64 PatchFunction1<Type>(rhs, rhs.
patch())
71 const PatchFunction1<Type>& rhs,
75 patchFunction1Base(
pp, rhs.
name(), rhs.faceValues()),
76 coordSys_(rhs.coordSys_)
85 return !coordSys_.active();
116 return coordSys_.localPosition(globalPos);
126 if (!coordSys_.active())
131 tmp<Field<Type>> tresult =
134 ? this->coordSys_.transform(this->patch_.faceCentres(), tfld())
135 : this->coordSys_.transform(this->patch_.localPoints(), tfld())
149 if (!coordSys_.active())
154 if (this->faceValues())
156 return this->coordSys_.transform(this->patch_.faceCentres(),
fld);
160 return this->coordSys_.transform(this->patch_.localPoints(),
fld);
182 coordSys_.writeEntry(
os);
196 const PatchFunction1<Type>& rhs
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Abstract base class to hold the Field mapping addressing and weights.
virtual tmp< pointField > localPosition(const pointField &globalPos) const
Helper: optionally convert coordinates to local coordinates.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.
virtual void writeData(Ostream &os) const
Write in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
OBJstream os(runTime.globalPath()/outputName)
virtual tmp< Field< Type > > value(const scalar x) const
Return value as a function of (scalar) independent variable.
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))
virtual tmp< Field< Type > > transform(const Field< Type > &fld) const
Apply optional transformation.
const std::string patch
OpenFOAM patch number as a std::string.
const word & name() const noexcept
The name of the entry.
A class for managing temporary objects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void rmap(const PatchFunction1< Type > &rhs, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())