Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack. More...
#include <lookupProfile.H>


Public Member Functions | |
| TypeName ("lookup") | |
| Runtime type information. | |
| lookupProfile (const dictionary &dict, const word &modelName) | |
| Constructor from dictionary and model name. | |
| lookupProfile (const lookupProfile &)=delete | |
| No copy construct. | |
| void | operator= (const lookupProfile &)=delete |
| No copy assignment. | |
| ~lookupProfile ()=default | |
| Destructor. | |
| virtual void | Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const |
| Return the Cd and Cl for a given angle-of-attack. | |
| Public Member Functions inherited from profileModel | |
| TypeName ("profileModel") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, profileModel, dictionary,(const dictionary &dict, const word &modelName),(dict, modelName)) | |
| profileModel (const dictionary &dict, const word &modelName) | |
| Constructor. | |
| virtual | ~profileModel ()=default |
| Destructor. | |
| const word & | name () const |
| Return const access to the source name. | |
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. | |
| Protected Member Functions inherited from profileModel | |
| bool | readFromFile () const |
| Return true if file name is set. | |
Protected Attributes | |
| List< scalar > | AOA_ |
| List of angle-of-attack values [deg] on input, converted to [rad]. | |
| List< scalar > | Cd_ |
| List of drag coefficient values. | |
| List< scalar > | Cl_ |
| List of lift coefficient values. | |
| Protected Attributes inherited from profileModel | |
| const dictionary | dict_ |
| Coefficients dictionary. | |
| const word | name_ |
| Name of profile model. | |
| fileName | fName_ |
| File name (optional). | |
Additional Inherited Members | |
| Static Public Member Functions inherited from profileModel | |
| static autoPtr< profileModel > | New (const dictionary &dict) |
| Return a reference to the selected fvOption model. | |
Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack.
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 | - |
Definition at line 125 of file lookupProfile.H.
| lookupProfile | ( | const dictionary & | dict, |
| const word & | modelName ) |
Constructor from dictionary and model name.
Definition at line 88 of file lookupProfile.C.
References AOA_, Cd_, Cl_, dict, profileModel::fName_, profileModel::profileModel(), profileModel::readFromFile(), and UList< T >::size().
Referenced by lookupProfile(), and operator=().


|
delete |
|
default |
Destructor.
References alpha.
|
protected |
Return the interpolation indices and gradient.
Definition at line 39 of file lookupProfile.C.
Referenced by Cdl().

| TypeName | ( | "lookup" | ) |
Runtime type information.
References dict.
|
delete |
|
virtual |
Return the Cd and Cl for a given angle-of-attack.
Implements profileModel.
Definition at line 134 of file lookupProfile.C.
References alpha, AOA_, Cd_, Cl_, and interpolateWeights().

|
protected |
List of angle-of-attack values [deg] on input, converted to [rad].
Definition at line 136 of file lookupProfile.H.
Referenced by Cdl(), and lookupProfile().
|
protected |
List of drag coefficient values.
Definition at line 141 of file lookupProfile.H.
Referenced by Cdl(), and lookupProfile().
|
protected |
List of lift coefficient values.
Definition at line 146 of file lookupProfile.H.
Referenced by Cdl(), and lookupProfile().