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_)
Templated sine function with support for an offset level.
Sine(const word &name, const dictionary &dict)
Construct from name and dictionary.
virtual ~Sine()
Destructor.
virtual void write(Ostream &os) const
Write data to dictionary stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
void writeEntry(Ostream &os, const omega &a)
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
word name(const complex &)
Return a string representation of a complex.