34 frequency_ = coeffs.lookup<scalar>(
"frequency");
35 start_ = coeffs.lookupOrDefault<scalar>(
"start", 0);
37 markSpace_ = coeffs.lookupOrDefault<scalar>(
"markSpace", 1);
40 isA<Constant<Type>>(amplitude_())
41 &&
isA<Constant<Type>>(level_());
50 const word& entryName,
64 amplitude_(se.amplitude_, false),
65 frequency_(se.frequency_),
67 level_(se.level_, false),
68 markSpace_(se.markSpace_),
69 integrable_(se.integrable_)
89 amplitude_->writeData(os);
92 level_->writeData(os);
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
virtual ~Square()
Destructor.
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 void writeData(Ostream &os) const
Write in dictionary format.
virtual void writeData(Ostream &os) const
Write in dictionary format.
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...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Square(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
Ostream & incrIndent(Ostream &os)
Increment the indent level.