98 public FieldFunction1<Type, Square<Type>>
103 const autoPtr<Function1<Type>> amplitude_;
106 const scalar frequency_;
112 const autoPtr<Function1<Type>> level_;
117 const scalar markSpace_;
120 const bool integrable_;
150 virtual inline Type
value(
const scalar
x)
const;
153 virtual inline Type
integral(
const scalar x1,
const scalar x2)
const;
const word & name() const
Return the name of the entry.
Templated square-wave function with support for an offset level.
virtual ~Square()
Destructor.
Square(const word &name, const unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
void operator=(const Square< Type > &)=delete
Disallow default bitwise assignment.
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two values.
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
virtual Type value(const scalar x) const
Return value.
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.