Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack. More...
Public Member Functions | |
TypeName ("lookup") | |
lookupProfile (const dictionary &dict, const word &modelName) | |
lookupProfile (const lookupProfile &)=delete | |
void | operator= (const lookupProfile &)=delete |
~lookupProfile ()=default | |
virtual void | Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const |
![]() | |
TypeName ("profileModel") | |
declareRunTimeSelectionTable (autoPtr, profileModel, dictionary,(const dictionary &dict, const word &modelName),(dict, modelName)) | |
profileModel (const dictionary &dict, const word &modelName) | |
virtual | ~profileModel ()=default |
const word & | name () const |
Protected Member Functions | |
void | interpolateWeights (const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const |
![]() | |
bool | readFromFile () const |
Protected Attributes | |
List< scalar > | AOA_ |
List< scalar > | Cd_ |
List< scalar > | Cl_ |
![]() | |
const dictionary | dict_ |
const word | name_ |
fileName | fName_ |
Additional Inherited Members | |
![]() | |
static autoPtr< profileModel > | New (const dictionary &dict) |
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 | ||
) |
Definition at line 89 of file lookupProfile.C.
References Foam::degToRad(), dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and forAll.
|
delete |
|
default |
|
protected |
Definition at line 40 of file lookupProfile.C.
References Foam::HashTableOps::values().
Referenced by lookupProfile::Cdl().
TypeName | ( | "lookup" | ) |
|
delete |
|
virtual |
Implements profileModel.
Definition at line 134 of file lookupProfile.C.
References Foam::constant::atomic::alpha, lookupProfile::AOA_, lookupProfile::Cd_, lookupProfile::Cl_, and lookupProfile::interpolateWeights().
|
protected |
Definition at line 134 of file lookupProfile.H.
Referenced by lookupProfile::Cdl().
|
protected |
Definition at line 137 of file lookupProfile.H.
Referenced by lookupProfile::Cdl().
|
protected |
Definition at line 140 of file lookupProfile.H.
Referenced by lookupProfile::Cdl().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.