49 start_(
dict.lookupOrDefault<scalar>(
"start",
units.
x, 0)),
50 duration_(
dict.lookup<scalar>(
"duration",
units.
x))
Square pulse function. Takes a value of 0 before start, then rises instantaneously to 1,...
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
virtual ~squarePulse()
Destructor.
squarePulse(const word &name, const unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
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)
addScalarFunction1(laminarBL)
word name(const bool)
Return a word representation of a bool.
const HashTable< unitConversion > & units()
Get the table of unit conversions.