45 template<
class Type,
class Function2Type>
55 template<
class Type,
class Function2Type>
61 new Function2Type(refCast<const Function2Type>(*
this))
73 template<
class Type,
class Function2Type>
87 template<
class Type,
class Function2Type>
99 fld[i] = refCast<const Function2Type>(*this).value(x[i], y[i]);
114 <<
"attempted assignment to self" 148 "Ostream& operator<<(Ostream&, const Function2<Type>&)" virtual void write(Ostream &os) const =0
Write in dictionary format.
void operator=(const Function2< Type > &)
Assignment.
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< Function2< Type > > clone() const
Construct and return a clone.
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.
Reference counter for various OpenFOAM components.
#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.
FieldFunction2(const word &name)
Construct from name.
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.
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 ~Function2()
Destructor.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
virtual Type value(const scalar x, const scalar y) const =0
Return value as a function of two scalars.
Run-time selectable function of two variables.
A class for managing temporary objects.
virtual ~FieldFunction2()
Destructor.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Function2(const word &name)
Construct from name.
const word & name() const
Return the name of the entry.