41 tmp<Function1<Type>>::refCount(),
71 <<
"Evaluation is not defined for " <<
type() <<
" functions" 82 <<
"Integration is not defined for " <<
type() <<
" functions" 89 template<
class Function1Type>
101 fld[i] = Function1Type::value(x[i]);
107 template<
class Function1Type>
110 const word& entryName,
114 Function1Type(entryName, dict)
118 template<
class Function1Type>
129 template<
class Function1Type>
142 fld[i] = Function1Type::integrate(x1[i], x2[i]);
177 "Ostream& operator<<(Ostream&, const Function1<Type>&)" 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 tmp< Field< Type > > value(const scalarField &x) const
Return value as a function of (scalar) independent variable.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual Type value(const scalar x) const
Return value as a function of (scalar) independent variable.
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 Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual ~Function1()
Destructor.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void convertTimeBase(const Time &t)
Convert time.
virtual tmp< Field< Type > > integrate(const scalarField &x1, const scalarField &x2) const
Integrate between two (scalar) values.
FieldFunction1(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
A class for managing temporary objects.