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. | |
![]() | |
DataEntry (const word &entryName) | |
Construct from entry name. | |
DataEntry (const DataEntry< scalar > &de) | |
Copy constructor. | |
TypeName ("DataEntry") declareRunTimeSelectionTable(autoPtr | |
Runtime type information. | |
virtual | ~DataEntry () |
Destructor. | |
const word & | name () const |
Return the name of the entry. |
Friends | |
Ostream & | operator<< (Ostream &, const polynomial &) |
Ostream Operator. |
Additional Inherited Members | |
![]() | |
static autoPtr< DataEntry < scalar > > | New (const word &entryName, const dictionary &dict) |
Selector. | |
![]() | |
DataEntry | |
dictionary | |
const word & | entryName |
const word Istream | entryName |
const word Istream & | is |
const word Istream | is |
![]() | |
const word | name_ |
Name of entry. |
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.
|
virtual |
Destructor.
Definition at line 60 of file polynomial.C.
TypeName | ( | "polynomial" | ) |
Runtime type information.
|
virtual |
Return polynomial value.
Implements DataEntry< scalar >.
Definition at line 66 of file polynomial.C.
References forAll, Foam::pow(), and y.
|
virtual |
Integrate between two (scalar) values.
Implements DataEntry< scalar >.
Definition at line 78 of file polynomial.C.
References forAll, and Foam::pow().
|
friend |
Ostream Operator.