Blade model class calculates: More...
Public Member Functions | |
bladeModel (const dictionary &dict) | |
Construct from dictionary. More... | |
bladeModel (const bladeModel &)=delete | |
No copy construct. More... | |
void | operator= (const bladeModel &)=delete |
No copy assignment. More... | |
virtual | ~bladeModel ()=default |
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
constant/fvOptions
: rotorDiskSource1 { Mandatory/Optional (inherited) entries ...Mandatory entries (runtime modifiable) blade { Mandatory entries (runtime modifiable) data ( (profile1 (radius1 twist1 chord1)) (profile1 (radius2 twist2 chord2)) ... ([0] ([1] [2] [3])) );
Optional entries (runtime modifiable) file <fileName>; } }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
blade | Dictionary name: blade | word | yes | - |
data | Blade characteristics in list format | list | yes | - |
[0] (profile) | Corresponding profile name per section | word | yes | - |
[1] (radius) | Radial position of the blade section [m] | scalar | yes | - |
[2] (twist) | Twist angle of the blade section [deg] | scalar | yes | - |
[3] (chord) | Chord length of the blade section [m] | scalar | yes | - |
file | Name of file containing blade characteristics | word | no | - |
twist
is internally converted from [deg] to [rad].Definition at line 144 of file bladeModel.H.
bladeModel | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 92 of file bladeModel.C.
References bladeModel::chord_, Foam::degToRad(), dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, bladeModel::fName_, forAll, bladeModel::profileID_, bladeModel::profileName_, bladeModel::radius_, bladeModel::readFromFile(), List< T >::setSize(), and bladeModel::twist_.
|
delete |
No copy construct.
|
virtualdefault |
Destructor.
|
protected |
Return true if file name is set.
Definition at line 37 of file bladeModel.C.
References bladeModel::fName_, and fileName::null.
Referenced by bladeModel::bladeModel().
|
protected |
Return the interpolation indices and gradient.
Definition at line 44 of file bladeModel.C.
References Foam::HashTableOps::values().
|
delete |
No copy assignment.
const Foam::List< Foam::word > & profileName | ( | ) | const |
Return const access to the profile name list.
Definition at line 140 of file bladeModel.C.
const Foam::List< Foam::label > & profileID | ( | ) | const |
Return const access to the profile ID list.
Definition at line 146 of file bladeModel.C.
const Foam::List< Foam::scalar > & radius | ( | ) | const |
Return const access to the radius list.
Definition at line 152 of file bladeModel.C.
const Foam::List< Foam::scalar > & twist | ( | ) | const |
Return const access to the twist list.
Definition at line 158 of file bladeModel.C.
const Foam::List< Foam::scalar > & chord | ( | ) | const |
Return const access to the chord list.
Definition at line 164 of file bladeModel.C.
Foam::List< Foam::label > & profileID | ( | ) |
Return non-const access to the profile ID list.
Definition at line 170 of file bladeModel.C.
|
virtual |
Return the twist and chord for a given radius.
Definition at line 177 of file bladeModel.C.
Corresponding profile name per section.
Definition at line 151 of file bladeModel.H.
Referenced by bladeModel::bladeModel().
|
protected |
Corresponding profile ID per section.
Definition at line 154 of file bladeModel.H.
Referenced by bladeModel::bladeModel().
|
protected |
|
protected |
Twist [deg] on input, converted to [rad].
Definition at line 160 of file bladeModel.H.
Referenced by bladeModel::bladeModel().
|
protected |
|
protected |
File name (optional)
Definition at line 166 of file bladeModel.H.
Referenced by bladeModel::bladeModel(), and bladeModel::readFromFile().