34 frequency_ = dict.lookup<scalar>(
"frequency");
35 start_ = dict.lookupOrDefault<scalar>(
"start", 0);
37 markSpace_ = dict.lookupOrDefault<scalar>(
"markSpace", 1);
40 isA<Constant<Type>>(amplitude_())
41 &&
isA<Constant<Type>>(level_());
64 amplitude_(se.amplitude_, false),
65 frequency_(se.frequency_),
67 level_(se.level_, false),
68 markSpace_(se.markSpace_),
69 integrable_(se.integrable_)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
virtual ~Square()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &os) const
Write data to dictionary stream.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
Templated square-wave function with support for an offset level.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Square(const word &name, const dictionary &dict)
Construct from name and dictionary.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.