Base class for profile models for handling aerofoil lift and drag polar diagrams. More...
#include <profileModel.H>


Public Member Functions | |
| 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. | |
| virtual void | Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const =0 |
| Return the Cd and Cl for a given angle-of-attack. | |
Static Public Member Functions | |
| static autoPtr< profileModel > | New (const dictionary &dict) |
| Return a reference to the selected fvOption model. | |
Protected Member Functions | |
| bool | readFromFile () const |
| Return true if file name is set. | |
Protected Attributes | |
| const dictionary | dict_ |
| Coefficients dictionary. | |
| const word | name_ |
| Name of profile model. | |
| fileName | fName_ |
| File name (optional). | |
Base class for profile models for handling aerofoil lift and drag polar diagrams.
constant/fvOptions: rotorDiskSource1 { Mandatory/Optional (inherited) entries ...Mandatory entries (runtime modifiable) profiles { Mandatory entries (runtime modifiable) <profile1> { type <profileModel>;
Mandatory/Optional (inherited) entries ... } ... <profileN> { ... }
Optional entries (runtime modifiable) file <fileName>; } }
where the entries mean:
| Property | Description | Type | Reqd | Dflt |
|---|---|---|---|---|
type | Profile model - see below | word | yes | - |
file | Name of file containing profile characteristics | word | no | - |
Options for the type entry:
lookup | Polar data is linearly interpolated based on angle of attack
series | Polar data is computed as sum of cosine series
Definition at line 116 of file profileModel.H.
| profileModel | ( | const dictionary & | dict, |
| const word & | modelName ) |
Constructor.
Definition at line 44 of file profileModel.C.
References dict, dict_, fName_, name(), and name_.
Referenced by declareRunTimeSelectionTable(), lookupProfile::lookupProfile(), and seriesProfile::seriesProfile().


|
virtualdefault |
Destructor.
|
protected |
Return true if file name is set.
Definition at line 36 of file profileModel.C.
References fName_.
Referenced by lookupProfile::lookupProfile(), and seriesProfile::seriesProfile().

| TypeName | ( | "profileModel" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| profileModel | , | ||
| dictionary | , | ||
| (const dictionary &dict, const word &modelName) | , | ||
| (dict, modelName) | ) |
|
static |
Return a reference to the selected fvOption model.
Definition at line 60 of file profileModel.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.
Referenced by profileModelList::profileModelList().


| const Foam::word & name | ( | ) | const |
Return const access to the source name.
Definition at line 54 of file profileModel.C.
References name_.
Referenced by profileModelList::connectBlades(), and profileModel().

|
pure virtual |
Return the Cd and Cl for a given angle-of-attack.
Implemented in lookupProfile, and seriesProfile.
References alpha.
|
protected |
Coefficients dictionary.
Definition at line 125 of file profileModel.H.
Referenced by profileModel().
|
protected |
Name of profile model.
Definition at line 130 of file profileModel.H.
Referenced by name(), and profileModel().
|
protected |
File name (optional).
Definition at line 135 of file profileModel.H.
Referenced by lookupProfile::lookupProfile(), profileModel(), readFromFile(), and seriesProfile::seriesProfile().