Go to the documentation of this file.
36 const word& entryName,
41 t0_(
dict.getOrDefault<scalar>(
"t0", 0)),
60 amplitude_(rhs.amplitude_.clone()),
61 period_(rhs.period_.clone()),
62 frequency_(rhs.frequency_.clone()),
63 scale_(rhs.scale_.clone()),
64 level_(rhs.level_.clone())
83 amplitude_->writeData(os);
87 period_->writeData(os);
91 frequency_->writeData(os);
93 scale_->writeData(os);
94 level_->writeData(os);
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
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)
Sine(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
A templated sine function, with support for offset etc.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
word name(const complex &c)
Return string representation of complex.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual Ostream & endEntry()
Write end entry (';') followed by newline.
virtual Ostream & endBlock()
Write end block group.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void convertTimeBase(const Time &t)
Convert time.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void writeData(Ostream &os) const
Write in dictionary format.