36 const word& entryName,
42 t0_(
dict.getOrDefault<scalar>(
"t0", 0)),
67 amplitude_(rhs.amplitude_.clone()),
68 period_(rhs.period_.clone()),
69 frequency_(rhs.frequency_.clone()),
70 scale_(rhs.scale_.clone()),
71 level_(rhs.level_.clone())
87 os.writeEntryIfDifferent<scalar>(
"t0", 0, t0_);
90 amplitude_->writeData(
os);
94 period_->writeData(
os);
98 frequency_->writeData(
os);
100 scale_->writeData(
os);
101 level_->writeData(
os);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
const word const dictionary & dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void userTimeToTime(const Time &t)
Convert time.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Sine(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
autoPtr< Function1< scalar > > frequency_
Frequency of the function (or specify period)
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).
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)
autoPtr< Function1< scalar > > period_
Period of the function (or specify frequency)
const word const dictionary const objectRegistry * obrPtr
virtual void writeData(Ostream &os) const
Write in dictionary format.
Registry of regIOobjects.