Go to the documentation of this file.
36 const word& entryName,
45 const word entryType(is);
52 <<
"Invalid (empty) polynomial coefficients for "
61 canIntegrate_ =
false;
71 <<
"Polynomial " << this->
name() <<
" cannot be integrated"
81 const word& entryName,
92 <<
"Invalid (empty) polynomial coefficients for "
99 if (
mag(coeffs_[i].second() + 1) < ROOTVSMALL)
101 canIntegrate_ =
false;
111 <<
"Polynomial " << this->
name() <<
" cannot be integrated"
122 coeffs_(poly.coeffs_),
123 canIntegrate_(poly.canIntegrate_)
134 Type value = coeffs_[i].first();
135 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 (0)
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)
Construct from entry name and dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
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.
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.