Go to the documentation of this file.
38 const word& entryName,
45 faceValues_(faceValues),
54 const word& entryName,
55 const dictionary&
dict,
62 faceValues_(faceValues),
63 coordSys_(pp.boundaryMesh().
mesh().thisDb(),
dict)
73 faceValues_(pf1.faceValues_),
74 coordSys_(pf1.coordSys_)
81 const PatchFunction1<Type>& pf1,
88 faceValues_(pf1.faceValues_),
89 coordSys_(pf1.coordSys_)
135 return !coordSys_.active();
156 if (!coordSys_.active())
161 return coordSys_.coordSys()().localPosition(globalPos);
171 if (!coordSys_.active())
179 ? this->coordSys_.transform(this->patch_.faceCentres(), tfld())
180 : this->coordSys_.transform(this->patch_.localPoints(), tfld())
194 if (!coordSys_.active())
201 return this->coordSys_.transform(this->patch_.faceCentres(),
fld);
205 return this->coordSys_.transform(this->patch_.localPoints(),
fld);
227 coordSys_.writeEntry(os);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
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.
bool faceValues() const
Whether to generate face or point values on patch.
Abstract base class to hold the Field mapping addressing and weights.
const polyPatch & patch() const
Reference to the patch.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Generic templated field type.
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
A patch is a list of labels that address the faces in the global face list.
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.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void convertTimeBase(const Time &t)
Convert time.
const word & name() const
Return the name of the entry.
const word name_
Name of entry.
virtual tmp< Field< Type > > value(const scalar x) const
Return value as a function of (scalar) independent variable.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void rmap(const PatchFunction1< Type > &pf1, const labelList &addr)
Reverse map the given PatchFunction1 onto this PatchFunction1.
virtual void autoMap(const FieldMapper &mapper)
Map (and resize as needed) from self given a mapping object.