34 frequency_ = coeffs.lookup<scalar>(
"frequency");
35 start_ = coeffs.lookupOrDefault<scalar>(
"start", 0);
39 isA<Constant<Type>>(amplitude_())
40 &&
isA<Constant<Type>>(level_());
49 const word& entryName,
63 amplitude_(se.amplitude_, false),
64 frequency_(se.frequency_),
66 level_(se.level_, false),
67 integrable_(se.integrable_)
87 amplitude_->writeData(os);
90 level_->writeData(os);
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
Ostream & indent(Ostream &os)
Indent stream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & name() const
Return the name of the entry.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~Sine()
Destructor.
Sine(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
virtual void writeData(Ostream &os) const
Write in dictionary format.
Templated sine function with support for an offset level.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void writeData(Ostream &os) const
Write in dictionary format.
Ostream & incrIndent(Ostream &os)
Increment the indent level.