34 t0_ = coeffs.lookupOrDefault<scalar>(
"t0", 0);
45 const word& entryName,
61 amplitude_(se.amplitude_, false),
62 frequency_(se.frequency_, false),
63 scale_(se.scale_, false),
64 level_(se.level_, false)
96 amplitude_->writeData(os);
97 frequency_->writeData(os);
98 scale_->writeData(os);
99 level_->writeData(os);
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const word & name() const
Return the name of the entry.
Ostream & indent(Ostream &os)
Indent stream.
Sine(const word &entryName, const dictionary &dict, const word &ext="Coeffs")
Construct from entry name and dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~Sine()
Destructor.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Templated sine function with support for an offset level.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
bool read(const char *, int32_t &)
Type value(const scalar t) const
Return value for time t.
A class for handling words, derived from string.
const scalar twoPi(2 *pi)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Ostream & incrIndent(Ostream &os)
Increment the indent level.