Loading...
Searching...
No Matches
bladeModel Class Reference

Blade model class calculates: More...

#include <bladeModel.H>

Collaboration diagram for bladeModel:

Public Member Functions

 bladeModel (const dictionary &dict)
 Construct from dictionary.
 bladeModel (const bladeModel &)=delete
 No copy construct.
void operator= (const bladeModel &)=delete
 No copy assignment.
virtual ~bladeModel ()=default
 Destructor.
const List< word > & profileName () const
 Return const access to the profile name list.
const List< label > & profileID () const
 Return const access to the profile ID list.
const List< scalar > & radius () const
 Return const access to the radius list.
const List< scalar > & twist () const
 Return const access to the twist list.
const List< scalar > & chord () const
 Return const access to the chord list.
List< label > & profileID ()
 Return non-const access to the profile ID list.
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.

Protected Member Functions

bool readFromFile () const
 Return true if file name is set.
void interpolateWeights (const scalar &xIn, const List< scalar > &values, label &i1, label &i2, scalar &ddx) const
 Return the interpolation indices and gradient.

Protected Attributes

List< wordprofileName_
 Corresponding profile name per section.
List< label > profileID_
 Corresponding profile ID per section.
List< scalar > radius_
 Radius [m].
List< scalar > twist_
 Twist [deg] on input, converted to [rad].
List< scalar > chord_
 Chord [m].
fileName fName_
 File name (optional).

Detailed Description

Blade model class calculates:

  • Linear interpolated blade twist and chord based on radial position
  • Interpolation factor (for interpolating profile performance)
Usage
Minimal example by using 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 -
Note
  • The entry twist is internally converted from [deg] to [rad].
See also
Source files

Definition at line 140 of file bladeModel.H.

Constructor & Destructor Documentation

◆ bladeModel() [1/2]

bladeModel ( const dictionary & dict)

Construct from dictionary.

Definition at line 85 of file bladeModel.C.

References chord_, dict, fName_, profileID_, profileName_, radius_, readFromFile(), UList< T >::size(), and twist_.

Referenced by bladeModel(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bladeModel() [2/2]

bladeModel ( const bladeModel & )
delete

No copy construct.

References bladeModel().

Here is the call graph for this function:

◆ ~bladeModel()

virtual ~bladeModel ( )
virtualdefault

Destructor.

References chord(), radius(), and twist().

Here is the call graph for this function:

Member Function Documentation

◆ readFromFile()

bool readFromFile ( ) const
protected

Return true if file name is set.

Definition at line 30 of file bladeModel.C.

References fName_.

Referenced by 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 36 of file bladeModel.C.

Referenced by interpolate().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const bladeModel & )
delete

No copy assignment.

References bladeModel().

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 133 of file bladeModel.C.

References profileName_.

◆ profileID() [1/2]

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

Return const access to the profile ID list.

Definition at line 139 of file bladeModel.C.

References profileID_.

◆ radius()

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

Return const access to the radius list.

Definition at line 145 of file bladeModel.C.

References radius_.

Referenced by interpolate(), and ~bladeModel().

Here is the caller graph for this function:

◆ twist()

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

Return const access to the twist list.

Definition at line 151 of file bladeModel.C.

References twist_.

Referenced by interpolate(), and ~bladeModel().

Here is the caller graph for this function:

◆ chord()

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

Return const access to the chord list.

Definition at line 157 of file bladeModel.C.

References chord_.

Referenced by interpolate(), and ~bladeModel().

Here is the caller graph for this function:

◆ profileID() [2/2]

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

Return non-const access to the profile ID list.

Definition at line 163 of file bladeModel.C.

References profileID_.

◆ 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 169 of file bladeModel.C.

References chord(), chord_, interpolateWeights(), radius(), radius_, twist(), and twist_.

Here is the call graph for this function:

Member Data Documentation

◆ profileName_

List<word> profileName_
protected

Corresponding profile name per section.

Definition at line 149 of file bladeModel.H.

Referenced by bladeModel(), and profileName().

◆ profileID_

List<label> profileID_
protected

Corresponding profile ID per section.

Definition at line 154 of file bladeModel.H.

Referenced by bladeModel(), profileID(), and profileID().

◆ radius_

List<scalar> radius_
protected

Radius [m].

Definition at line 159 of file bladeModel.H.

Referenced by bladeModel(), interpolate(), and radius().

◆ twist_

List<scalar> twist_
protected

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

Definition at line 164 of file bladeModel.H.

Referenced by bladeModel(), interpolate(), and twist().

◆ chord_

List<scalar> chord_
protected

Chord [m].

Definition at line 169 of file bladeModel.H.

Referenced by bladeModel(), chord(), and interpolate().

◆ fName_

fileName fName_
protected

File name (optional).

Definition at line 174 of file bladeModel.H.

Referenced by bladeModel(), and readFromFile().


The documentation for this class was generated from the following files:
  • src/fvOptions/sources/derived/rotorDiskSource/bladeModel/bladeModel.H
  • src/fvOptions/sources/derived/rotorDiskSource/bladeModel/bladeModel.C