104#ifndef Foam_Function1Types_Square_H
105#define Foam_Function1Types_Square_H
123 public Function1Types::Sine<Type>
150 const word& entryName,
152 const objectRegistry* obrPtr =
nullptr
159 virtual tmp<Function1<Type>>
clone()
const
172 virtual inline Type
value(
const scalar t)
const
A templated sine function, with support for offset etc.
Type squareValue(const scalar t, const scalar posFrac) const
Return value for time t, using square form.
A templated square-wave function with support for offset, etc.
virtual tmp< Function1< Type > > clone() const
Return a clone.
virtual ~Square()=default
Destructor.
virtual Type value(const scalar t) const
Return value for time t.
void operator=(const Square< Type > &)=delete
No copy assignment.
Square(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
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 a number of values (eg,...
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.