45 template<
class Type,
class Function2Type>
55 template<
class Type,
class Function2Type>
61 new Function2Type(
static_cast<const Function2Type&
>(*
this))
73 template<
class Type,
class Function2Type>
87 template<
class Type,
class Function2Type>
99 fld[i] =
static_cast<const Function2Type&
>(*this).value(
x[i],
y[i]);
114 <<
"attempted assignment to self"
142 const Function2<Type>& f2
148 "Ostream& operator<<(Ostream&, const Function2<Type>&)"
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< Function2< Type > > clone() const
Construct and return a clone.
FieldFunction2(const word &name)
Construct from name.
virtual ~FieldFunction2()
Destructor.
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.
virtual ~Function2()
Destructor.
Function2(const word &name)
Construct from name.
void operator=(const Function2< Type > &)
Assignment.
const word & name() const
Return the name of the entry.
virtual void write(Ostream &os) const =0
Write in dictionary format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
word name(const complex &)
Return a string representation of a complex.
Ostream & indent(Ostream &os)
Indent stream.