45 template<
class Type,
class Function2Type>
52 template<
class Type,
class Function2Type>
58 new Function2Type(
static_cast<const Function2Type&
>(*
this))
70 template<
class Type,
class Function2Type>
84 template<
class Type,
class Function2Type>
96 fld[i] =
static_cast<const Function2Type&
>(*this).value(
x[i],
y[i]);
111 <<
"attempted assignment to self"
155 writeEntry(os, {xUnits, yUnits, valueUnits}, f2);
165 const Function2<Type>& f2
171 os.
check(
"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 void write(Ostream &os, const Function2s::unitConversions &) const =0
Write in dictionary format.
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 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,...
virtual Ostream & write(const char)=0
Write character.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
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.
const unitConversion unitAny
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
errorManip< error > abort(error &err)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
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.
Ostream & indent(Ostream &os)
Indent stream.