polyDegree1 Class Reference

First degree polynominal function. More...

Inheritance diagram for polyDegree1:
[legend]
Collaboration diagram for polyDegree1:
[legend]

Public Member Functions

 TypeName ("polyDegree1")
 Runtime type information. More...
 
 polyDegree1 (const labelVector &dirs)
 Construct from nTerms. More...
 
virtual ~polyDegree1 ()=default
 Destructor. More...
 
virtual scalar value (const vector &vec)
 
virtual const scalarFieldtermValues (const vector &vec)
 
- Public Member Functions inherited from multiDimPolyFunctions
 TypeName ("multiDimPolyFunctions")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, multiDimPolyFunctions, word,(const Vector< label > dirs),(dirs))
 
 multiDimPolyFunctions (const labelVector &dirs)
 Construct with directions. More...
 
virtual ~multiDimPolyFunctions ()=default
 Destructor. More...
 
virtual scalar value (const vector &vec)=0
 
virtual const scalarFieldtermValues (const vector &vec)=0
 
label & nTerms ()
 
scalarFieldcoeffs ()
 

Additional Inherited Members

- Static Public Member Functions inherited from multiDimPolyFunctions
static autoPtr< multiDimPolyFunctionsNew (const word &multiDimPolyFunctionsType, const labelVector &dirs)
 Select a multiDimPolyFunctions. More...
 
- Protected Attributes inherited from multiDimPolyFunctions
label nTerms_
 Number of polynomial term. More...
 
const labelVector geomDir_
 
vector geomCorrection_
 
scalarField coeffs_
 
scalarField termValues_
 

Detailed Description

First degree polynominal function.

c0 + c1*x + c2*y + c3*z

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 59 of file polyDegree1.H.

Constructor & Destructor Documentation

◆ polyDegree1()

polyDegree1 ( const labelVector dirs)
explicit

Construct from nTerms.

Definition at line 42 of file polyDegree1.C.

References multiDimPolyFunctions::coeffs_, forAll, multiDimPolyFunctions::geomDir_, multiDimPolyFunctions::nTerms_, List< T >::resize(), multiDimPolyFunctions::termValues_, and Foam::Zero.

Here is the call graph for this function:

◆ ~polyDegree1()

virtual ~polyDegree1 ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "polyDegree1"  )

Runtime type information.

◆ value()

Foam::scalar value ( const vector vec)
virtual

Implements multiDimPolyFunctions.

Definition at line 64 of file polyDegree1.C.

References forAll, and polyDegree1::value().

Referenced by polyDegree1::value().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ termValues()

const Foam::scalarField & termValues ( const vector vec)
virtual

Implements multiDimPolyFunctions.

Definition at line 80 of file polyDegree1.C.

References forAll.


The documentation for this class was generated from the following files: