lookupProfile Class Reference

Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack. More...

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

Public Member Functions

 TypeName ("lookup")
 Runtime type information. More...
 
 lookupProfile (const dictionary &dict, const word &modelName)
 Constructor from dictionary and model name. More...
 
 lookupProfile (const lookupProfile &)=delete
 No copy construct. More...
 
void operator= (const lookupProfile &)=delete
 No copy assignment. More...
 
 ~lookupProfile ()=default
 Destructor. 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 ()=default
 Destructor. More...
 
const wordname () const
 Return const access to the source name. More...
 
virtual void Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const =0
 Return the Cd and Cl for a given angle-of-attack. 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

Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack.

Usage
Minimal example by using constant/fvOptions: rotorDiskSource1 { Mandatory/Optional (inherited) entries ...

Mandatory entries (runtime modifiable) profiles { Mandatory entries (runtime modifiable) <profile1> { Mandatory entries (runtime modifiable) type lookup; data ( (AOA1 Cd1 Cl2) (AOA2 Cd2 Cl2) ([0] [1] [2]) ... (AOAN CdN CdN) ); }

Mandatory/Optional (inherited) entries ... } }

where the entries mean:

Property Description Type Reqd Dflt
[0] AOA Angle of attack scalar yes -
[1] Cd

Drag coefficient corresponding to the angle attack

scalar yes -
[2] Cl

Lift coefficient corresponding to the angle attack

scalar yes -
Note
  • Angle of attack is internally converted from [deg] to [rad].
See also
Source files

Definition at line 129 of file lookupProfile.H.

Constructor & Destructor Documentation

◆ lookupProfile() [1/2]

lookupProfile ( const dictionary dict,
const word modelName 
)

Constructor from dictionary and model name.

Definition at line 95 of file lookupProfile.C.

References lookupProfile::AOA_, lookupProfile::Cd_, lookupProfile::Cl_, Foam::degToRad(), dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, profileModel::fName_, forAll, dictionary::readEntry(), profileModel::readFromFile(), and List< T >::setSize().

Here is the call graph for this function:

◆ lookupProfile() [2/2]

lookupProfile ( const lookupProfile )
delete

No copy construct.

◆ ~lookupProfile()

~lookupProfile ( )
default

Destructor.

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

◆ TypeName()

TypeName ( "lookup"  )

Runtime type information.

◆ operator=()

void operator= ( const lookupProfile )
delete

No copy assignment.

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

References alpha.

Member Data Documentation

◆ AOA_

List<scalar> AOA_
protected

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

Definition at line 138 of file lookupProfile.H.

Referenced by lookupProfile::lookupProfile().

◆ Cd_

List<scalar> Cd_
protected

List of drag coefficient values.

Definition at line 141 of file lookupProfile.H.

Referenced by lookupProfile::lookupProfile().

◆ Cl_

List<scalar> Cl_
protected

List of lift coefficient values.

Definition at line 144 of file lookupProfile.H.

Referenced by lookupProfile::lookupProfile().


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