bladeModel Class Reference

Blade model class calculates: Linear interpolated blade twist and chord based on radial position Interpolation factor (for interpolating profile performance) More...

Collaboration diagram for bladeModel:
[legend]

Public Member Functions

 bladeModel (const dictionary &dict)
 Constructor. 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 ture 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< wordprofileName_
 Corresponding profile name per section. More...
 
List< labelprofileID_
 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...
 

Detailed Description

Blade model class calculates: Linear interpolated blade twist and chord based on radial position Interpolation factor (for interpolating profile performance)

Input in list format:

data ( (profile1 (radius1 twist1 chord1)) (profile1 (radius2 twist2 chord2)) );

where: radius [m] twist [deg], converted to [rad] internally chord [m]

Source files

Definition at line 66 of file bladeModel.H.

Constructor & Destructor Documentation

◆ bladeModel()

bladeModel ( const dictionary dict)

Constructor.

Definition at line 91 of file bladeModel.C.

References bladeModel::chord_, Foam::degToRad(), dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, bladeModel::fName_, forAll, bladeModel::profileID_, bladeModel::profileName_, bladeModel::radius_, bladeModel::readFromFile(), List< T >::setSize(), and bladeModel::twist_.

Here is the call graph for this function:

◆ ~bladeModel()

virtual ~bladeModel ( )
virtualdefault

Destructor.

Member Function Documentation

◆ readFromFile()

bool readFromFile ( ) const
protected

Return ture if file name is set.

Definition at line 36 of file bladeModel.C.

References bladeModel::fName_, and fileName::null.

Referenced by bladeModel::bladeModel().

Here is the caller graph for this function:

◆ interpolateWeights()

void interpolateWeights ( const scalar &  xIn,
const List< scalar > &  values,
label i1,
label i2,
scalar &  ddx 
) const
protected

Return the interpolation indices and gradient.

Definition at line 43 of file bladeModel.C.

References Foam::HashTableOps::values().

Here is the call graph for this function:

◆ profileName()

const Foam::List< Foam::word > & profileName ( ) const

Return const access to the profile name list.

Definition at line 138 of file bladeModel.C.

◆ profileID() [1/2]

const Foam::List< Foam::label > & profileID ( ) const

Return const access to the profile ID list.

Definition at line 144 of file bladeModel.C.

◆ radius()

const Foam::List< Foam::scalar > & radius ( ) const

Return const access to the radius list.

Definition at line 150 of file bladeModel.C.

◆ twist()

const Foam::List< Foam::scalar > & twist ( ) const

Return const access to the twist list.

Definition at line 156 of file bladeModel.C.

◆ chord()

const Foam::List< Foam::scalar > & chord ( ) const

Return const access to the chord list.

Definition at line 162 of file bladeModel.C.

◆ profileID() [2/2]

Foam::List< Foam::label > & profileID ( )

Return non-const access to the profile ID list.

Definition at line 168 of file bladeModel.C.

◆ interpolate()

void interpolate ( const scalar  radius,
scalar &  twist,
scalar &  chord,
label i1,
label i2,
scalar &  invDr 
) const
virtual

Return the twist and chord for a given radius.

Definition at line 175 of file bladeModel.C.

Member Data Documentation

◆ profileName_

List<word> profileName_
protected

Corresponding profile name per section.

Definition at line 73 of file bladeModel.H.

Referenced by bladeModel::bladeModel().

◆ profileID_

List<label> profileID_
protected

Corresponding profile ID per section.

Definition at line 76 of file bladeModel.H.

Referenced by bladeModel::bladeModel().

◆ radius_

List<scalar> radius_
protected

Radius [m].

Definition at line 79 of file bladeModel.H.

Referenced by bladeModel::bladeModel().

◆ twist_

List<scalar> twist_
protected

Twist [deg] on input, converted to [rad].

Definition at line 82 of file bladeModel.H.

Referenced by bladeModel::bladeModel().

◆ chord_

List<scalar> chord_
protected

Chord [m].

Definition at line 85 of file bladeModel.H.

Referenced by bladeModel::bladeModel().

◆ fName_

fileName fName_
protected

File name (optional)

Definition at line 88 of file bladeModel.H.

Referenced by bladeModel::bladeModel(), and bladeModel::readFromFile().


The documentation for this class was generated from the following files: