Series-up based profile data - drag and lift coefficients computed as sum of cosine series. More...
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 word & | name () 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< profileModel > | New (const dictionary &dict) |
Return a reference to the selected fvOption model. More... | |
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);
Definition at line 63 of file seriesProfile.H.
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().
|
protected |
Drag.
Definition at line 42 of file seriesProfile.C.
References Foam::cos(), seriesProfile::evaluateLift(), and forAll.
|
protected |
Lift.
Definition at line 59 of file seriesProfile.C.
References forAll, seriesProfile::seriesProfile(), and Foam::sin().
Referenced by seriesProfile::evaluateDrag().
TypeName | ( | "series" | ) |
Runtime type information.
|
virtual |
Return the Cd and Cl for a given angle-of-attack.
Implements profileModel.
Definition at line 116 of file seriesProfile.C.
|
protected |
List of drag coefficient values.
Definition at line 73 of file seriesProfile.H.
|
protected |
List of lift coefficient values.
Definition at line 76 of file seriesProfile.H.