Go to the documentation of this file.
39 const word& entryName,
40 const objectRegistry* obrPtr
43 function1Base(entryName, obrPtr)
50 const word& entryName,
51 const dictionary&
dict,
52 const objectRegistry* obrPtr
55 function1Base(entryName,
dict, obrPtr)
107 template<
class Function1Type>
115 auto&
fld = tfld.ref();
119 fld[i] = Function1Type::value(
x[i]);
125 template<
class Function1Type>
128 const word& entryName,
133 Function1Type(entryName,
dict, obrPtr)
137 template<
class Function1Type>
148 template<
class Function1Type>
157 auto&
fld = tfld.ref();
161 fld[i] = Function1Type::integrate(x1[i], x2[i]);
176 os.writeKeyword(name_) <<
type();
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
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.
Registry of regIOobjects.
#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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
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.
FieldFunction1(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name and dictionary.