45 template<
class Type,
class Function1Type>
52 template<
class Type,
class Function1Type>
58 new Function1Type(
static_cast<const Function1Type&
>(*
this))
70 template<
class Type,
class Function1Type>
91 template<
class Type,
class Function1Type>
102 fld[i] =
static_cast<const Function1Type&
>(*this).value(
x[i]);
109 template<
class Type,
class Function1Type>
123 static_cast<const Function1Type&
>(*this).integral(x1[i], x2[i]);
138 <<
"attempted assignment to self"
193 os.
check(
"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.
virtual bool constant() const
Is this function guaranteed to be constant?
const word & name() const
Return the name of the entry.
virtual void write(Ostream &os, const Function1s::unitConversions &) 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.
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 & operator<<(Ostream &os, const fvConstraints &constraints)
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.