46 template<
class Type,
class Function1Type>
56 template<
class Type,
class Function1Type>
62 new Function1Type(
static_cast<const Function1Type&
>(*
this))
74 template<
class Type,
class Function1Type>
88 template<
class Type,
class Function1Type>
99 fld[i] =
static_cast<const Function1Type&
>(*this).value(
x[i]);
106 template<
class Type,
class Function1Type>
120 static_cast<const Function1Type&
>(*this).integral(x1[i], x2[i]);
135 <<
"attempted assignment to self"
163 const Function1<Type>& f1
169 "Ostream& operator<<(Ostream&, const Function1<Type>&)"
#define forAll(list, i)
Loop across all elements in list.
virtual Type integral(const scalar x1, const scalar x2) const =0
Integrate between two scalar values.
FieldFunction1(const word &name)
Construct from name.
virtual Type value(const scalar x) const =0
Return value as a function of one scalars.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
virtual ~FieldFunction1()
Destructor.
Run-time selectable general function of one variable.
virtual ~Function1()
Destructor.
Function1(const word &name)
Construct from name.
void operator=(const Function1< Type > &)
Assignment.
const word & name() const
Return the name of the entry.
virtual void write(Ostream &os) const =0
Write data to dictionary stream.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void size(const label)
Override size to be inconsistent with allocated storage.
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.