FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
FoilPolar Class Reference

#include <FoilPolar.h>

Public Member Functions

 FoilPolar (std::vector< double > aoa, std::vector< double > cl, std::vector< double > cd)
 
FoilCoefficients At (double aoa) const
 

Static Public Member Functions

static bool IsValidAngleTable (const std::vector< double > &aoa)
 

Detailed Description

A tabulated foil polar: lift and drag coefficients against the angle of attack.

Coefficients between two tabulated angles are interpolated linearly. An angle outside the table holds the coefficients of the nearest end of the table.

Constructor & Destructor Documentation

◆ FoilPolar()

FoilPolar::FoilPolar ( std::vector< double >  aoa,
std::vector< double >  cl,
std::vector< double >  cd 
)
Parameters
aoaThe tabulated angles of attack, strictly increasing (see IsValidAngleTable).
clThe lift coefficient at each angle, as many as in aoa.
cdThe drag coefficient at each angle, as many as in aoa.

Member Function Documentation

◆ At()

FoilCoefficients FoilPolar::At ( double  aoa) const
Returns
The coefficients at angle of attack aoa; zero when the polar is empty.

◆ IsValidAngleTable()

static bool FoilPolar::IsValidAngleTable ( const std::vector< double > &  aoa)
static
Returns
True when the table has at least two angles and they are strictly increasing.

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