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 unitConversions &units) const
Write data to dictionary stream.
virtual ~squarePulse()
Destructor.
void operator=(const squarePulse &)=delete
Disallow default bitwise assignment.
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.
const HashTable< unitConversion > & units()
Get the table of unit conversions.