lookupProfile Class Reference

Look-up based profile data - drag and lift coefficients are lineraly interpolated based on the supplied angle of attack. More...

Inheritance diagram for lookupProfile:
Collaboration diagram for lookupProfile:

Public Member Functions

 TypeName ("lookup")
 Runtime type information. More...
 
 lookupProfile (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

void interpolateWeights (const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const
 Return the interpolation indices and gradient. More...
 
- Protected Member Functions inherited from profileModel
bool readFromFile () const
 Return true if file name is set. More...
 

Protected Attributes

List< scalar > AOA_
 List of angle-of-attack values [deg] on input, converted to [rad]. More...
 
List< scalar > Cd_
 List of drag coefficient values. More...
 
List< scalar > Cl_
 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 fvOption model. More...
 

Detailed Description

Look-up based profile data - drag and lift coefficients are lineraly interpolated based on the supplied angle of attack.

Input in list format:

data ( (AOA1 Cd1 Cl2) (AOA2 Cd2 Cl2) ... (AOAN CdN CdN) );

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

Source files

Definition at line 65 of file lookupProfile.H.

Constructor & Destructor Documentation

◆ lookupProfile()

lookupProfile ( const dictionary dict,
const word modelName 
)

Constructor.

Definition at line 93 of file lookupProfile.C.

References Foam::degToRad(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, dictionary::lookup(), List< T >::setSize(), and List< T >::size().

Referenced by lookupProfile::interpolateWeights().

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

Member Function Documentation

◆ interpolateWeights()

void interpolateWeights ( const scalar &  xIn,
const List< scalar > &  values,
label i1,
label i2,
scalar &  ddx 
) const
protected

Return the interpolation indices and gradient.

Definition at line 44 of file lookupProfile.C.

References lookupProfile::lookupProfile(), and List< T >::size().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "lookup"  )

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 137 of file lookupProfile.C.

Member Data Documentation

◆ AOA_

List<scalar> AOA_
protected

List of angle-of-attack values [deg] on input, converted to [rad].

Definition at line 75 of file lookupProfile.H.

◆ Cd_

List<scalar> Cd_
protected

List of drag coefficient values.

Definition at line 78 of file lookupProfile.H.

◆ Cl_

List<scalar> Cl_
protected

List of lift coefficient values.

Definition at line 81 of file lookupProfile.H.


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