Loading...
Searching...
No Matches
FinSet.h
Go to the documentation of this file.
#ifndef FINSET_H
#define FINSET_H
#include <string>
class FinSet {
public:
FinSet(const std::string& name,
int numberOfFins,
double rootChord,
double tipChord,
double span,
double sweepLength,
double thickness,
double materialDensity);
~FinSet() = default;
double calculateNormalForceCoefficient() const;
double calculateCenterOfPressure() const;
double calculateDragArea() const;
double calculateMass() const;
const std::string& getName() const;
private:
std::string name_;
int numberOfFins_;
double rootChord_;
double tipChord_;
double span_;
double sweepLength_;
double thickness_;
double materialDensity_;
double calculateSingleFinArea() const;
};
#endif // FINSET_H
FinSet::~FinSet
~FinSet()=default
Default destructor.
FinSet::calculateSingleFinArea
double calculateSingleFinArea() const
Helper method to calculate the planform area of a single fin.
Definition FinSet.cpp:72
FinSet::rootChord_
double rootChord_
Root chord length [m].
Definition FinSet.h:74
FinSet::materialDensity_
double materialDensity_
Material density [kg/m3].
Definition FinSet.h:79
FinSet::calculateDragArea
double calculateDragArea() const
Calculates the drag area contribution of the fins.
Definition FinSet.cpp:50
FinSet::name_
std::string name_
Name of the fin set.
Definition FinSet.h:70
FinSet::thickness_
double thickness_
Thickness of fin [m].
Definition FinSet.h:78
FinSet::span_
double span_
Span (distance from airframe to tip) [m].
Definition FinSet.h:76
FinSet::tipChord_
double tipChord_
Tip chord length [m].
Definition FinSet.h:75
FinSet::calculateMass
double calculateMass() const
Calculates the total mass of the fin set.
Definition FinSet.cpp:58
FinSet::FinSet
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
FinSet::getName
const std::string & getName() const
Gets the name of the fin set.
Definition FinSet.cpp:66
FinSet::calculateCenterOfPressure
double calculateCenterOfPressure() const
Calculates the location of the center of pressure contribution of the fin set.
Definition FinSet.cpp:39
FinSet::sweepLength_
double sweepLength_
Sweep length (leading edge sweep) [m].
Definition FinSet.h:77
FinSet::numberOfFins_
int numberOfFins_
Number of fins in the set.
Definition FinSet.h:72
FinSet::calculateNormalForceCoefficient
double calculateNormalForceCoefficient() const
Calculates the normal force coefficient contribution of the fin set.
Definition FinSet.cpp:26