Go to the documentation of this file.
104 #ifndef function1Types_Square_H
105 #define function1Types_Square_H
113 namespace Function1Types
123 public Function1Types::Sine<Type>
142 void operator=(
const Square<Type>&) =
delete;
151 explicit Square(
const Square<Type>& rhs);
161 virtual inline Type
value(
const scalar t)
const
167 virtual void writeData(Ostream& os)
const;
A class for handling words, derived from Foam::string.
void operator=(const Square< Type > &)=delete
No copy assignment.
virtual void writeData(Ostream &os) const
Write in dictionary format.
A templated sine function, with support for offset etc.
const word const dictionary & dict
A templated square-wave function with support for offset, etc.
void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Square(const word &entryName, const dictionary &dict)
Construct from entry name and dictionary.
virtual ~Square()=default
Destructor.
virtual Type value(const scalar t) const
Return value for time t.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Type squareValue(const scalar t, const scalar posFrac) const
Return value for time t, using square form.