OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

polynomial Class Reference

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...

Inheritance diagram for polynomial:
Collaboration diagram for polynomial:

List of all members.


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.

Detailed Description

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
    (
        (1    2)
        (2    3)
    );

Source files

Definition at line 65 of file polynomial.H.


Constructor & Destructor Documentation

polynomial ( const word &  entryName,
Istream &  is 
)

Construct from entry name and Istream.

Definition at line 29 of file polynomial.C.

References Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

polynomial ( const polynomial &  poly  ) 

Copy constructor.

Definition at line 43 of file polynomial.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, DataEntry< scalar >::name_, and Foam::nl.

Here is the call graph for this function:

~polynomial (  )  [virtual]

Destructor.

Definition at line 52 of file polynomial.C.


Member Function Documentation

TypeName ( "polynomial"   ) 

Runtime type information.

Foam::scalar value ( const scalar  x  )  const [virtual]

Return polynomial value.

Implements DataEntry< scalar >.

Definition at line 58 of file polynomial.C.

Foam::scalar integrate ( const scalar  x1,
const scalar  x2 
) const [virtual]

Integrate between two (scalar) values.

Implements DataEntry< scalar >.

Definition at line 70 of file polynomial.C.

References Foam::pow().

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const polynomial &   
) [friend]

Ostream Operator.


The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/submodels/IO/DataEntry/polynomial/polynomial.H
  • src/lagrangian/intermediate/submodels/IO/DataEntry/polynomial/polynomial.C
Copyright © 2000-2009 OpenCFD Ltd