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_)
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return the name of the entry.
const word name_
Name of entry.
Arbitrary order polynomial Function1.
Polynomial(const word &name, const dictionary &dict)
Construct from name and dictionary.
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two scalar fields.
virtual ~Polynomial()
Destructor.
virtual void write(Ostream &os) const
Write in dictionary format.
virtual Type value(const scalar x) const
Return Polynomial value as a function of scalar x.
bool eof() const
Return true if end of input seen.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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,...
A 2-tuple for storing two objects of different types.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Traits class for primitives.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Scalar cmptPow(const Scalar s1, const Scalar s2)
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
word name(const complex &)
Return a string representation of a complex.