30 void Foam::Function1Types::ramp::read(
const dictionary& coeffs)
32 start_ = coeffs.lookupOrDefault<scalar>(
"start", 0);
33 duration_ = coeffs.lookupType<scalar>(
"duration");
39 const word& entryName,
Ostream & indent(Ostream &os)
Indent stream.
virtual void writeData(Ostream &os) const
Write in dictionary format.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & name() const
Return the name of the entry.
scalar start_
Start-time of the ramp function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void writeData(Ostream &os) const
Write in dictionary format.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
ramp(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
virtual ~ramp()
Destructor.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
scalar duration_
Duration of the ramp function.