Go to the documentation of this file.
35 const word& entryName,
51 <<
"Polynomial coefficients for entry " << this->name_
59 canIntegrate_ =
false;
69 <<
"Polynomial " << this->name_ <<
" cannot be integrated"
79 const word& entryName,
90 <<
"Polynomial coefficients for entry " << this->name_
96 if (
mag(coeffs_[i].second() + 1) < ROOTVSMALL)
98 canIntegrate_ =
false;
108 <<
"Polynomial " << this->name_ <<
" cannot be integrated"
119 coeffs_(poly.coeffs_),
120 canIntegrate_(poly.canIntegrate_)
138 Type value = coeffs_[i].first();
139 for (
direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
int debug
Static debugging option.
label & setComponent(label &l, const direction)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Scalar cmptPow(const Scalar s1, const Scalar s2)
A class for handling words, derived from Foam::string.
virtual void writeData(Ostream &os) const
Write in dictionary format.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
static constexpr const zero Zero
Global zero.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (e.g. CA deg) to real-time (s).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
#define forAll(list, i)
Loop across all elements in list.
Polynomial(const word &entryName, const dictionary &dict)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual void writeData(Ostream &os) const
Write in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~Polynomial()
Destructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
virtual Type value(const scalar x) const
Return Polynomial value.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void convertTimeBase(const Time &t)
Convert time.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
#define WarningInFunction
Report a warning using Foam::Warning.