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... | |
~seriesProfile ()=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 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 ture 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 coefficent Cl = lift coefficent
Input in two (arbitrary length) lists:
CdCoeffs (coeff1 coeff2 ... coeffN); ClCoeffs (coeff1 coeff2 ... coeffN);
Definition at line 65 of file seriesProfile.H.
seriesProfile | ( | const dictionary & | dict, |
const word & | modelName | ||
) |
Constructor.
Definition at line 82 of file seriesProfile.C.
References dict, Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
default |
Destructor.
|
protected |
Drag.
Definition at line 44 of file seriesProfile.C.
References Foam::cos(), forAll, and Foam::HashTableOps::values().
Referenced by seriesProfile::Cdl().
|
protected |
Lift.
Definition at line 61 of file seriesProfile.C.
References forAll, Foam::sin(), and Foam::HashTableOps::values().
Referenced by seriesProfile::Cdl().
TypeName | ( | "series" | ) |
Runtime type information.
|
virtual |
Return the Cd and Cl for a given angle-of-attack.
Implements profileModel.
Definition at line 118 of file seriesProfile.C.
References Foam::constant::atomic::alpha, seriesProfile::CdCoeffs_, seriesProfile::ClCoeffs_, seriesProfile::evaluateDrag(), and seriesProfile::evaluateLift().
|
protected |
List of drag coefficient values.
Definition at line 74 of file seriesProfile.H.
Referenced by seriesProfile::Cdl().
|
protected |
List of lift coefficient values.
Definition at line 77 of file seriesProfile.H.
Referenced by seriesProfile::Cdl().