Look-up based profile data - drag and lift coefficients are lineraly interpolated based on the supplied angle of attack. More...
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 word & | name () 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< profileModel > | New (const dictionary &dict) |
Return a reference to the selected fvOption model. More... | |
Look-up based profile data - drag and lift coefficients are lineraly interpolated based on the supplied angle of attack.
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
Definition at line 65 of file lookupProfile.H.
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().
|
protected |
Return the interpolation indices and gradient.
Definition at line 44 of file lookupProfile.C.
References lookupProfile::lookupProfile(), and List< T >::size().
TypeName | ( | "lookup" | ) |
Runtime type information.
|
virtual |
Return the Cd and Cl for a given angle-of-attack.
Implements profileModel.
Definition at line 137 of file lookupProfile.C.
|
protected |
List of angle-of-attack values [deg] on input, converted to [rad].
Definition at line 75 of file lookupProfile.H.
|
protected |
List of drag coefficient values.
Definition at line 78 of file lookupProfile.H.
|
protected |
List of lift coefficient values.
Definition at line 81 of file lookupProfile.H.