35 start_ = coeffs.getOrDefault<scalar>(
"start", 0);
42 const word& entryName,
57 os.writeEntry(
"start", start_);
58 os.writeEntry(
"duration", duration_);
Ramp function base class for the set of scalar functions starting from 0 and increasing monotonically...
virtual void writeData(Ostream &os) const
Write in dictionary format.
scalar start_
Start-time of the ramp function.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
scalar duration_
Duration of the ramp function.
virtual void userTimeToTime(const Time &t)
Convert time.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const word const dictionary & dict
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool read()
Re-read model coefficients if they have changed.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (e.g. CA deg) to real-time (s).
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.