41 tmp<Function1<Type>>::refCount(),
46 template<
class Type,
class Function1Type>
56 template<
class Type,
class Function1Type>
62 new Function1Type(refCast<const Function1Type>(*
this))
74 template<
class Type,
class Function1Type>
88 template<
class Type,
class Function1Type>
99 fld[i] = refCast<const Function1Type>(*this).value(x[i]);
106 template<
class Type,
class Function1Type>
119 fld[i] = refCast<const Function1Type>(*this).integral(x1[i], x2[i]);
134 <<
"attempted assignment to self" 168 "Ostream& operator<<(Ostream&, const Function1<Type>&)"
virtual Type value(const scalar x) const =0
Return value as a function of one scalars.
Run-time selectable general function of one variable.
#define forAll(list, i)
Loop across all elements in list.
virtual ~FieldFunction1()
Destructor.
virtual void write(Ostream &os) const =0
Write data to dictionary stream.
Ostream & indent(Ostream &os)
Indent stream.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
const word & name() const
Return the name of the entry.
#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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
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.
void operator=(const Function1< Type > &)
Assignment.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
virtual ~Function1()
Destructor.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
FieldFunction1(const word &name)
Construct from name.
A class for managing temporary objects.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
virtual Type integral(const scalar x1, const scalar x2) const =0
Integrate between two scalar values.