QtRocket
 
Loading...
Searching...
No Matches
FinSet.h
Go to the documentation of this file.
1#ifndef FINSET_H
2#define FINSET_H
3
4#include <string>
5
12class FinSet {
13public:
25 FinSet(const std::string& name,
26 int numberOfFins,
27 double rootChord,
28 double tipChord,
29 double span,
30 double sweepLength,
31 double thickness,
32 double materialDensity);
33
37 ~FinSet() = default;
38
44
49 double calculateCenterOfPressure() const;
50
55 double calculateDragArea() const;
56
61 double calculateMass() const;
62
67 const std::string& getName() const;
68
69private:
70 std::string name_;
71
73
74 double rootChord_;
75 double tipChord_;
76 double span_;
77 double sweepLength_;
78 double thickness_;
80
85 double calculateSingleFinArea() const;
86};
87#endif // FINSET_H
~FinSet()=default
Default destructor.
double calculateSingleFinArea() const
Helper method to calculate the planform area of a single fin.
Definition FinSet.cpp:72
double rootChord_
Root chord length [m].
Definition FinSet.h:74
double materialDensity_
Material density [kg/m3].
Definition FinSet.h:79
double calculateDragArea() const
Calculates the drag area contribution of the fins.
Definition FinSet.cpp:50
std::string name_
Name of the fin set.
Definition FinSet.h:70
double thickness_
Thickness of fin [m].
Definition FinSet.h:78
double span_
Span (distance from airframe to tip) [m].
Definition FinSet.h:76
double tipChord_
Tip chord length [m].
Definition FinSet.h:75
double calculateMass() const
Calculates the total mass of the fin set.
Definition FinSet.cpp:58
FinSet(const std::string &name, int numberOfFins, double rootChord, double tipChord, double span, double sweepLength, double thickness, double materialDensity)
Constructs a new FinSet.
Definition FinSet.cpp:6
const std::string & getName() const
Gets the name of the fin set.
Definition FinSet.cpp:66
double calculateCenterOfPressure() const
Calculates the location of the center of pressure contribution of the fin set.
Definition FinSet.cpp:39
double sweepLength_
Sweep length (leading edge sweep) [m].
Definition FinSet.h:77
int numberOfFins_
Number of fins in the set.
Definition FinSet.h:72
double calculateNormalForceCoefficient() const
Calculates the normal force coefficient contribution of the fin set.
Definition FinSet.cpp:26