40 tmp<Function1<Type>>::refCount(),
45 template<
class Type,
class Function1Type>
55 template<
class Type,
class Function1Type>
65 template<
class Type,
class Function1Type>
71 new Function1Type(refCast<const Function1Type>(*
this))
83 template<
class Type,
class Function1Type>
104 template<
class Type,
class Function1Type>
115 fld[i] = refCast<const Function1Type>(*this).value(x[i]);
122 template<
class Type,
class Function1Type>
135 fld[i] = refCast<const Function1Type>(*this).integrate(x1[i], x2[i]);
163 "Ostream& operator<<(Ostream&, const Function1<Type>&)" virtual Type value(const scalar x) const =0
Return value as a function of (scalar) independent variable.
virtual Type integrate(const scalar x1, const scalar x2) const =0
Integrate between two (scalar) values.
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.
virtual ~FieldFunction1()
Destructor.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
const word & name() const
Return the name of the entry.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
virtual void writeData(Ostream &os) const
Write in dictionary format.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual ~Function1()
Destructor.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
FieldFunction1(const word &entryName)
Construct from entry name.
A class for managing temporary objects.