41 if (!dict.
found(name))
43 dict.
lookup(
"coeffs") >> coeffs_;
52 dict.
lookup(
"coeffs") >> coeffs_;
63 <<
"Polynomial coefficients for entry " << this->name_
71 canIntegrate_ =
false;
81 <<
"Polynomial " << this->name_ <<
" cannot be integrald" 102 <<
"Polynomial coefficients for entry " << this->name_
108 if (
mag(coeffs_[i].
second() + 1) < rootVSmall)
110 canIntegrate_ =
false;
120 <<
"Polynomial " << this->name_ <<
" cannot be integrald" 131 coeffs_(poly.coeffs_),
132 canIntegrate_(poly.canIntegrate_)
labelList first(const UList< labelPair > &p)
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
Arbitrary order polynomial Function1.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 2-tuple for storing two objects of different types.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Traits class for primitives.
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Polynomial(const word &name, const dictionary &dict)
Construct from name and dictionary.
virtual ~Polynomial()
Destructor.
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two scalar fields.
A class for handling words, derived from string.
Scalar cmptPow(const Scalar s1, const Scalar s2)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
word name(const complex &)
Return a string representation of a complex.
labelList second(const UList< labelPair > &p)
#define WarningInFunction
Report a warning using Foam::Warning.
virtual void write(Ostream &os) const
Write in dictionary format.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual Type value(const scalar x) const
Return Polynomial value as a function of scalar x.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.