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;
152 const objectRegistry*
obrPtr =
nullptr
156 explicit Square(
const Square<Type>& rhs);
166 virtual inline Type
value(
const scalar t)
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
Registry of regIOobjects.
const word const dictionary const objectRegistry * obrPtr
A templated square-wave function with support for offset, etc.
Square(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
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,...
OBJstream os(runTime.globalPath()/outputName)
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.