Go to the documentation of this file.
104 template<
class Function1Type>
112 auto&
fld = tfld.ref();
116 fld[i] = Function1Type::value(
x[i]);
122 template<
class Function1Type>
125 const word& entryName,
129 Function1Type(entryName,
dict)
133 template<
class Function1Type>
144 template<
class Function1Type>
153 auto&
fld = tfld.ref();
157 fld[i] = Function1Type::integrate(x1[i], x2[i]);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
FieldFunction1(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
#define forAll(list, i)
Loop across all elements in list.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const word & name() const
Return the name of the entry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual tmp< Field< Type > > integrate(const scalarField &x1, const scalarField &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 Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
virtual void convertTimeBase(const Time &t)
Convert time.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual tmp< Field< Type > > value(const scalarField &x) const
Return value as a function of (scalar) independent variable.