Go to the documentation of this file.
39 function1Base(entryName)
46 function1Base(entryName,
dict)
100 template<
class Function1Type>
108 auto&
fld = tfld.ref();
112 fld[i] = Function1Type::value(
x[i]);
118 template<
class Function1Type>
121 const word& entryName,
125 Function1Type(entryName,
dict)
129 template<
class Function1Type>
140 template<
class Function1Type>
149 auto&
fld = tfld.ref();
153 fld[i] = Function1Type::integrate(x1[i], x2[i]);
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
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.
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 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.