62#ifndef Foam_Function1Types_Polynomial_H
63#define Foam_Function1Types_Polynomial_H
73namespace Function1Types
97 void checkCoefficients();
114 const word& entryName,
122 const word& entryName,
147 virtual Type
value(
const scalar
x)
const;
150 virtual Type
integrate(
const scalar x1,
const scalar x2)
const;
virtual tmp< Function1< Type > > clone() const
Return a clone.
Polynomial(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
TypeName("polynomial")
Runtime type information.
virtual void writeData(Ostream &os) const
Write as primitive (inline) format.
virtual ~Polynomial()=default
Destructor.
virtual Type value(const scalar x) const
Return Polynomial value.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
virtual void userTimeToTime(const Time &t)
Convert time.
Function1(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name.
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
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)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.