Go to the documentation of this file.
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 if (!coordSys_.active())
121 return coordSys_.coordSys()().localPosition(globalPos);
131 if (!coordSys_.active())
139 ? this->coordSys_.transform(this->patch_.faceCentres(), tfld())
140 : this->coordSys_.transform(this->patch_.localPoints(), tfld())
154 if (!coordSys_.active())
159 if (this->faceValues())
161 return this->coordSys_.transform(this->patch_.faceCentres(),
fld);
165 return this->coordSys_.transform(this->patch_.localPoints(),
fld);
187 coordSys_.writeEntry(
os);
virtual tmp< pointField > localPosition(const pointField &globalPos) const
Helper: optionally convert coordinates to local coordinates.
void clear() const noexcept
A class for managing temporary objects.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Abstract base class to hold the Field mapping addressing and weights.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
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.
virtual bool uniform() const =0
Is value uniform (i.e. independent of coordinate)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
OBJstream os(runTime.globalPath()/outputName)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const std::string patch
OpenFOAM patch number as a std::string.
virtual void rmap(const PatchFunction1< Type > &rhs, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual tmp< Field< Type > > value(const scalar x) const
Return value as a function of (scalar) independent variable.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.