Polynomial container data entry for scalars. Items are stored in a list of Tuple2's. Data is input in the form, e.g. for an entry <entryName> that describes y = x^2 + 2x^3. More...
#include <lagrangianIntermediate/polynomial.H>
Polynomial container data entry for scalars. Items are stored in a list of Tuple2's. Data is input in the form, e.g. for an entry <entryName> that describes y = x^2 + 2x^3.
<entryName> polynomial ( (12) (23) );
Definition at line 70 of file polynomial.H.
Public Member Functions | |
TypeName ("polynomial") | |
Runtime type information.
| |
polynomial (const word &entryName, Istream &is) | |
Construct from entry name and Istream.
| |
polynomial (const polynomial &poly) | |
Copy constructor.
| |
virtual | ~polynomial () |
Destructor.
| |
scalar | value (const scalar x) const |
Return polynomial value.
| |
scalar | integrate (const scalar x1, const scalar x2) const |
Integrate between two (scalar) values.
| |
Friends | |
Ostream & | operator<< (Ostream &, const polynomial &) |
Ostream Operator.
|
polynomial | ( | const word & | entryName, |
Istream & | is | ||
) |
Construct from entry name and Istream.
Definition at line 37 of file polynomial.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, DataEntry< scalar >::name_, Foam::nl, and List< T >::size().
polynomial | ( | const polynomial & | poly ) |
Copy constructor.
Definition at line 51 of file polynomial.C.
~polynomial | ( | ) | [virtual]
|
Destructor.
Definition at line 60 of file polynomial.C.
TypeName | ( | "polynomial" | ) |
Runtime type information.
Foam::scalar value | ( | const scalar | x ) | const [virtual]
|
Return polynomial value.
Implements DataEntry< scalar >.
Definition at line 66 of file polynomial.C.
References forAll, Foam::pow(), and y.
Foam::scalar integrate | ( | const scalar | x1, |
const scalar | x2 | ||
) | const [virtual]
|
Integrate between two (scalar) values.
Implements DataEntry< scalar >.
Definition at line 78 of file polynomial.C.
References forAll, and Foam::pow().
Ostream& operator<< | ( | Ostream & | , |
const polynomial & | |||
) | [friend]
|
Ostream Operator.