41 void Foam::Function1s::squarePulse::read(
const dictionary&
dict)
43 start_ =
dict.lookupOrDefault<scalar>(
"start", 0);
44 duration_ =
dict.lookup<scalar>(
"duration");
Square pulse function. Takes a value of 0 before start, then rises instantaneously to 1,...
squarePulse(const word &name, const dictionary &dict)
Construct from name and dictionary.
virtual void write(Ostream &os) const
Write data to dictionary stream.
virtual ~squarePulse()
Destructor.
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)
makeScalarFunction1(laminarBL)
word name(const complex &)
Return a string representation of a complex.