Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
profileModel Class Referenceabstract

Base class for profile models for handling aerofoil lift and drag polar diagrams. More...

Inheritance diagram for profileModel:
Inheritance graph
[legend]
Collaboration diagram for profileModel:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("profileModel")
 
 declareRunTimeSelectionTable (autoPtr, profileModel, dictionary,(const dictionary &dict, const word &modelName),(dict, modelName))
 
 profileModel (const dictionary &dict, const word &modelName)
 
virtual ~profileModel ()=default
 
const wordname () const
 
virtual void Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const =0
 

Static Public Member Functions

static autoPtr< profileModelNew (const dictionary &dict)
 

Protected Member Functions

bool readFromFile () const
 

Protected Attributes

const dictionary dict_
 
const word name_
 
fileName fName_
 

Detailed Description

Base class for profile models for handling aerofoil lift and drag polar diagrams.

Usage
Minimal example by using 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
See also
Source files

Definition at line 116 of file profileModel.H.

Constructor & Destructor Documentation

◆ profileModel()

profileModel ( const dictionary dict,
const word modelName 
)

Definition at line 44 of file profileModel.C.

◆ ~profileModel()

virtual ~profileModel ( )
virtualdefault

Member Function Documentation

◆ readFromFile()

bool readFromFile ( ) const
protected

Definition at line 36 of file profileModel.C.

References profileModel::fName_.

◆ TypeName()

TypeName ( "profileModel"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
profileModel  ,
dictionary  ,
(const dictionary &dict, const word &modelName)  ,
(dict, modelName)   
)

◆ New()

Foam::autoPtr< Foam::profileModel > New ( const dictionary dict)
static

Definition at line 61 of file profileModel.C.

References dict, dictionary::dictName(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), and Foam::Info.

Here is the call graph for this function:

◆ name()

const Foam::word & name ( ) const

Definition at line 54 of file profileModel.C.

Referenced by profileModelList::connectBlades().

Here is the caller graph for this function:

◆ Cdl()

virtual void Cdl ( const scalar  alpha,
scalar &  Cd,
scalar &  Cl 
) const
pure virtual

Implemented in seriesProfile, and lookupProfile.

Member Data Documentation

◆ dict_

const dictionary dict_
protected

Definition at line 123 of file profileModel.H.

◆ name_

const word name_
protected

Definition at line 126 of file profileModel.H.

◆ fName_

fileName fName_
protected

Definition at line 129 of file profileModel.H.

Referenced by profileModel::readFromFile().


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