seriesProfile Class Reference

Series-up based profile data - drag and lift coefficients computed as sum of cosine series. More...

Inheritance diagram for seriesProfile:
Collaboration diagram for seriesProfile:

Public Member Functions

 TypeName ("series")
 Runtime type information. More...
 
 seriesProfile (const dictionary &dict, const word &modelName)
 Constructor. More...
 
virtual void Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const
 Return the Cd and Cl for a given angle-of-attack. More...
 
- Public Member Functions inherited from profileModel
 TypeName ("profileModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, profileModel, dictionary,(const dictionary &dict, const word &modelName),(dict, modelName))
 
 profileModel (const dictionary &dict, const word &modelName)
 Constructor. More...
 
virtual ~profileModel ()
 Destructor. More...
 
const wordname () const
 Return const access to the source name. More...
 

Protected Member Functions

scalar evaluateDrag (const scalar &xIn, const List< scalar > &values) const
 Drag. More...
 
scalar evaluateLift (const scalar &xIn, const List< scalar > &values) const
 Lift. More...
 
- Protected Member Functions inherited from profileModel
bool readFromFile () const
 Return true if file name is set. More...
 

Protected Attributes

List< scalar > CdCoeffs_
 List of drag coefficient values. More...
 
List< scalar > ClCoeffs_
 List of lift coefficient values. More...
 
- Protected Attributes inherited from profileModel
const dictionary dict_
 Coefficients dictionary. More...
 
const word name_
 Name of profile model. More...
 
fileName fName_
 File name (optional) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from profileModel
static autoPtr< profileModelNew (const dictionary &dict)
 Return a reference to the selected fvModel model. More...
 

Detailed Description

Series-up based profile data - drag and lift coefficients computed as sum of cosine series.

Cd = sum_i(CdCoeff)*cos(i*AOA) Cl = sum_i(ClCoeff)*sin(i*AOA)

where: AOA = angle of attack [deg] converted to [rad] internally Cd = drag coefficient Cl = lift coefficient

Input in two (arbitrary length) lists:

CdCoeffs (coeff1 coeff2 ... coeffN); ClCoeffs (coeff1 coeff2 ... coeffN);

Source files

Definition at line 63 of file seriesProfile.H.

Constructor & Destructor Documentation

◆ seriesProfile()

seriesProfile ( const dictionary dict,
const word modelName 
)

Constructor.

Definition at line 80 of file seriesProfile.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and dictionary::lookup().

Referenced by seriesProfile::evaluateLift().

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

Member Function Documentation

◆ evaluateDrag()

Foam::scalar evaluateDrag ( const scalar &  xIn,
const List< scalar > &  values 
) const
protected

Drag.

Definition at line 42 of file seriesProfile.C.

References Foam::cos(), seriesProfile::evaluateLift(), and forAll.

Here is the call graph for this function:

◆ evaluateLift()

Foam::scalar evaluateLift ( const scalar &  xIn,
const List< scalar > &  values 
) const
protected

Lift.

Definition at line 59 of file seriesProfile.C.

References forAll, seriesProfile::seriesProfile(), and Foam::sin().

Referenced by seriesProfile::evaluateDrag().

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

◆ TypeName()

TypeName ( "series"  )

Runtime type information.

◆ Cdl()

void Cdl ( const scalar  alpha,
scalar &  Cd,
scalar &  Cl 
) const
virtual

Return the Cd and Cl for a given angle-of-attack.

Implements profileModel.

Definition at line 116 of file seriesProfile.C.

Member Data Documentation

◆ CdCoeffs_

List<scalar> CdCoeffs_
protected

List of drag coefficient values.

Definition at line 73 of file seriesProfile.H.

◆ ClCoeffs_

List<scalar> ClCoeffs_
protected

List of lift coefficient values.

Definition at line 76 of file seriesProfile.H.


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