FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
FoilPolar.h
1#pragma once
2
3#include <vector>
4
7{
8 double lift;
9 double drag;
10};
11
18{
19public:
20 FoilPolar() = default;
21
26 FoilPolar(std::vector<double> aoa, std::vector<double> cl, std::vector<double> cd);
27
29 static bool IsValidAngleTable(const std::vector<double>& aoa);
30
32 FoilCoefficients At(double aoa) const;
33
34private:
35 double Interpolate(double aoa, const std::vector<double>& coefficients) const;
36
37 std::vector<double> m_aoa;
38 std::vector<double> m_cl;
39 std::vector<double> m_cd;
40};
Definition FoilPolar.h:18
static bool IsValidAngleTable(const std::vector< double > &aoa)
FoilCoefficients At(double aoa) const
FoilPolar(std::vector< double > aoa, std::vector< double > cl, std::vector< double > cd)
Definition FoilPolar.h:7