33 void Foam::Function1Types::ramp::read(
const dictionary& coeffs)
35 start_ = coeffs.getOrDefault<scalar>(
"start", 0);
42 const word& entryName,
57 os.writeEntry(
"start", start_);
58 os.writeEntry(
"duration", duration_);
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...
virtual void writeData(Ostream &os) const
Write in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
ramp(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
scalar start_
Start-time of the ramp function.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool read(const char *buf, int32_t &val)
Same as readInt32.
virtual void writeData(Ostream &os) const
Write in dictionary format.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (e.g. CA deg) to real-time (s).
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
A class for handling words, derived from Foam::string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Registry of regIOobjects.
scalar duration_
Duration of the ramp function.