84 public FieldFunction1<scalar, squarePulse>
92 const scalar duration_;
119 virtual inline scalar
value(
const scalar t)
const;
const word & name() const
Return the name of the entry.
Square pulse function. Takes a value of 0 before start, then rises instantaneously to 1,...
virtual scalar value(const scalar t) const
Return value for time t.
virtual scalar integral(const scalar t1, const scalar t2) const
Return the integral between times t1 and t2.
virtual void write(Ostream &os, const unitSets &units) const
Write data to dictionary stream.
squarePulse(const word &name, const unitSets &units, const dictionary &dict)
Construct from name and dictionary.
virtual ~squarePulse()
Destructor.
void operator=(const squarePulse &)=delete
Disallow default bitwise assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
Struct containing two unitSets for use in converting both the argument and the value of a Function1.