34void Foam::Function1Types::Scale<Type>::read(
const dictionary& coeffs)
36 scale_ = Function1<scalar>::New(
"scale", coeffs, this->obrPtr_);
37 value_ = Function1<Type>::New(
"value", coeffs, this->
obrPtr_);
46 const word& entryName,
61 scale_(
rhs.scale_.clone()),
72 value_->writeData(
os);
Function1 which scales a given 'value' function by a scalar 'scale' function.
virtual tmp< Function1< Type > > clone() const
Return a clone.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
Scale(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void writeData(Ostream &os) const
Write in dictionary format.
Function1(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name.
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,...
const objectRegistry * obrPtr_
Pointer to an object registry.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)