Go to the documentation of this file.
33 void Foam::Function1Types::ramp::read(
const dictionary& coeffs)
35 start_ = coeffs.getOrDefault<scalar>(
"start", 0);
42 const word& entryName,
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (e.g. CA deg)
bool read(const char *buf, int32_t &val)
Same as readInt32.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
ramp(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
word name(const complex &c)
Return string representation of complex.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual Ostream & endBlock()
Write end block group.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar duration_
Duration of the ramp function.
virtual void convertTimeBase(const Time &t)
Convert time.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
scalar start_
Start-time of the ramp function.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...