Loading...
Searching...
No Matches
lookupProfile Class Reference

Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack. More...

#include <lookupProfile.H>

Inheritance diagram for lookupProfile:
Collaboration diagram for lookupProfile:

Public Member Functions

 TypeName ("lookup")
 Runtime type information.
 lookupProfile (const dictionary &dict, const word &modelName)
 Constructor from dictionary and model name.
 lookupProfile (const lookupProfile &)=delete
 No copy construct.
void operator= (const lookupProfile &)=delete
 No copy assignment.
 ~lookupProfile ()=default
 Destructor.
virtual void Cdl (const scalar alpha, scalar &Cd, scalar &Cl) const
 Return the Cd and Cl for a given angle-of-attack.
Public Member Functions inherited from profileModel
 TypeName ("profileModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, profileModel, dictionary,(const dictionary &dict, const word &modelName),(dict, modelName))
 profileModel (const dictionary &dict, const word &modelName)
 Constructor.
virtual ~profileModel ()=default
 Destructor.
const wordname () const
 Return const access to the source name.

Protected Member Functions

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

Protected Attributes

List< scalar > AOA_
 List of angle-of-attack values [deg] on input, converted to [rad].
List< scalar > Cd_
 List of drag coefficient values.
List< scalar > Cl_
 List of lift coefficient values.
Protected Attributes inherited from profileModel
const dictionary dict_
 Coefficients dictionary.
const word name_
 Name of profile model.
fileName fName_
 File name (optional).

Additional Inherited Members

Static Public Member Functions inherited from profileModel
static autoPtr< profileModelNew (const dictionary &dict)
 Return a reference to the selected fvOption model.

Detailed Description

Profile model where polar lift and drag coefficients are linearly interpolated from a polar table by using an input angle of attack.

Usage
Minimal example by using constant/fvOptions: rotorDiskSource1 { Mandatory/Optional (inherited) entries ...

Mandatory entries (runtime modifiable) profiles { Mandatory entries (runtime modifiable) <profile1> { Mandatory entries (runtime modifiable) type lookup; data ( (AOA1 Cd1 Cl2) (AOA2 Cd2 Cl2) ([0] [1] [2]) ... (AOAN CdN CdN) ); }

Mandatory/Optional (inherited) entries ... } }

where the entries mean:

Property Description Type Reqd Dflt
[0] AOA Angle of attack scalar yes -
[1] Cd Drag coefficient corresponding to the angle attack scalar yes -
[2] Cl Lift coefficient corresponding to the angle attack scalar yes -
Note
  • Angle of attack is internally converted from [deg] to [rad].
See also
Source files

Definition at line 125 of file lookupProfile.H.

Constructor & Destructor Documentation

◆ lookupProfile() [1/2]

lookupProfile ( const dictionary & dict,
const word & modelName )

Constructor from dictionary and model name.

Definition at line 88 of file lookupProfile.C.

References AOA_, Cd_, Cl_, dict, profileModel::fName_, profileModel::profileModel(), profileModel::readFromFile(), and UList< T >::size().

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

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

◆ lookupProfile() [2/2]

lookupProfile ( const lookupProfile & )
delete

No copy construct.

References lookupProfile().

Here is the call graph for this function:

◆ ~lookupProfile()

~lookupProfile ( )
default

Destructor.

References alpha.

Member Function Documentation

◆ 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 39 of file lookupProfile.C.

Referenced by Cdl().

Here is the caller graph for this function:

◆ TypeName()

TypeName ( "lookup" )

Runtime type information.

References dict.

◆ operator=()

void operator= ( const lookupProfile & )
delete

No copy assignment.

References lookupProfile().

Here is the call graph for this function:

◆ Cdl()

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

Return the Cd and Cl for a given angle-of-attack.

Implements profileModel.

Definition at line 134 of file lookupProfile.C.

References alpha, AOA_, Cd_, Cl_, and interpolateWeights().

Here is the call graph for this function:

Member Data Documentation

◆ AOA_

List<scalar> AOA_
protected

List of angle-of-attack values [deg] on input, converted to [rad].

Definition at line 136 of file lookupProfile.H.

Referenced by Cdl(), and lookupProfile().

◆ Cd_

List<scalar> Cd_
protected

List of drag coefficient values.

Definition at line 141 of file lookupProfile.H.

Referenced by Cdl(), and lookupProfile().

◆ Cl_

List<scalar> Cl_
protected

List of lift coefficient values.

Definition at line 146 of file lookupProfile.H.

Referenced by Cdl(), and lookupProfile().


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