56#ifndef Foam_Function1Types_Constant_H
57#define Foam_Function1Types_Constant_H
100 const word& entryName,
108 const word& entryName,
135 inline void reset(
const Type& val);
138 virtual inline bool constant()
const {
return true; }
141 virtual inline Type
value(
const scalar)
const;
144 virtual inline Type
integrate(
const scalar x1,
const scalar x2)
const;
virtual tmp< Function1< Type > > clone() const
Return a clone.
void reset(const Type &val)
Change the constant value.
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
virtual bool constant() const
Value is independent of x.
Constant(const word &entryName, const Type &value, const objectRegistry *obrPtr=nullptr)
Construct from components.
virtual Type value(const scalar) const
Return constant value.
void operator=(const Constant< Type > &)=delete
No copy assignment.
virtual ~Constant()=default
Destructor.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two values.
Function1(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name.
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.