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);
A templated sine function, with support for offset etc.
autoPtr< Function1< scalar > > period_
Period of the function (or specify frequency)
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
autoPtr< Function1< scalar > > frequency_
Frequency of the function (or specify period)
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...
const word const dictionary & dict
const word const dictionary const objectRegistry * obrPtr
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (e.g. CA deg) to real-time (s).
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.