34 frequency_ = dict.lookup<scalar>(
"frequency");
35 start_ = dict.lookupOrDefault<scalar>(
"start", 0);
39 isA<Constant<Type>>(amplitude_())
40 &&
isA<Constant<Type>>(level_());
63 amplitude_(se.amplitude_, false),
64 frequency_(se.frequency_),
66 level_(se.level_, false),
67 integrable_(se.integrable_)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~Sine()
Destructor.
Sine(const word &name, const dictionary &dict)
Construct from name and dictionary.
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...
virtual void write(Ostream &os) const
Write data to dictionary stream.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.