Blade model class calculates: Linear interpolated blade twist and chord based on radial position Interpolation factor (for interpolating profile performance) More...
Public Member Functions | |
bladeModel (const dictionary &dict) | |
Constructor. More... | |
virtual | ~bladeModel () |
Destructor. More... | |
const List< word > & | profileName () const |
Return const access to the profile name list. More... | |
const List< label > & | profileID () const |
Return const access to the profile ID list. More... | |
const List< scalar > & | radius () const |
Return const access to the radius list. More... | |
const List< scalar > & | twist () const |
Return const access to the twist list. More... | |
const List< scalar > & | chord () const |
Return const access to the chord list. More... | |
List< label > & | profileID () |
Return non-const access to the profile ID list. More... | |
virtual void | interpolate (const scalar radius, scalar &twist, scalar &chord, label &i1, label &i2, scalar &invDr) const |
Return the twist and chord for a given radius. More... | |
Protected Member Functions | |
bool | readFromFile () const |
Return true if file name is set. More... | |
void | interpolateWeights (const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const |
Return the interpolation indices and gradient. More... | |
Protected Attributes | |
List< word > | profileName_ |
Corresponding profile name per section. More... | |
List< label > | profileID_ |
Corresponding profile ID per section. More... | |
List< scalar > | radius_ |
Radius [m]. More... | |
List< scalar > | twist_ |
Twist [deg] on input, converted to [rad]. More... | |
List< scalar > | chord_ |
Chord [m]. More... | |
fileName | fName_ |
File name (optional) More... | |
Blade model class calculates: Linear interpolated blade twist and chord based on radial position Interpolation factor (for interpolating profile performance)
data ( (profile1 (radius1 twist1 chord1)) (profile1 (radius2 twist2 chord2)) );
where: radius [m] twist [deg], converted to [rad] internally chord [m]
Definition at line 64 of file bladeModel.H.
bladeModel | ( | const dictionary & | dict | ) |
Constructor.
Definition at line 89 of file bladeModel.C.
References bladeModel::chord_, Foam::degToRad(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, UList< T >::first(), bladeModel::fName_, forAll, dictionary::lookup(), bladeModel::profileID_, bladeModel::profileName_, bladeModel::radius_, bladeModel::readFromFile(), List< T >::setSize(), List< T >::size(), and bladeModel::twist_.
|
virtual |
Destructor.
Definition at line 135 of file bladeModel.C.
|
protected |
Return true if file name is set.
Definition at line 34 of file bladeModel.C.
References bladeModel::fName_, bladeModel::interpolateWeights(), and fileName::null.
Referenced by bladeModel::bladeModel().
|
protected |
Return the interpolation indices and gradient.
Definition at line 41 of file bladeModel.C.
References List< T >::size().
Referenced by bladeModel::interpolate(), and bladeModel::readFromFile().
const Foam::List< Foam::word > & profileName | ( | ) | const |
Return const access to the profile name list.
Definition at line 141 of file bladeModel.C.
References bladeModel::profileName_.
const Foam::List< Foam::label > & profileID | ( | ) | const |
Return const access to the profile ID list.
Definition at line 147 of file bladeModel.C.
References bladeModel::profileID_.
const Foam::List< Foam::scalar > & radius | ( | ) | const |
Return const access to the radius list.
Definition at line 153 of file bladeModel.C.
References bladeModel::radius_.
const Foam::List< Foam::scalar > & twist | ( | ) | const |
Return const access to the twist list.
Definition at line 159 of file bladeModel.C.
References bladeModel::twist_.
const Foam::List< Foam::scalar > & chord | ( | ) | const |
Return const access to the chord list.
Definition at line 165 of file bladeModel.C.
References bladeModel::chord_.
Foam::List< Foam::label > & profileID | ( | ) |
Return non-const access to the profile ID list.
Definition at line 171 of file bladeModel.C.
References bladeModel::interpolate(), and bladeModel::profileID_.
|
virtual |
Return the twist and chord for a given radius.
Definition at line 178 of file bladeModel.C.
References bladeModel::chord_, bladeModel::interpolateWeights(), bladeModel::radius_, and bladeModel::twist_.
Referenced by bladeModel::profileID().
Corresponding profile name per section.
Definition at line 72 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), and bladeModel::profileName().
Corresponding profile ID per section.
Definition at line 75 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), and bladeModel::profileID().
|
protected |
Radius [m].
Definition at line 78 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), bladeModel::interpolate(), and bladeModel::radius().
|
protected |
Twist [deg] on input, converted to [rad].
Definition at line 81 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), bladeModel::interpolate(), and bladeModel::twist().
|
protected |
Chord [m].
Definition at line 84 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), bladeModel::chord(), and bladeModel::interpolate().
|
protected |
File name (optional)
Definition at line 87 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), and bladeModel::readFromFile().