QtRocket
 
Loading...
Searching...
No Matches
Airframe.h
Go to the documentation of this file.
1#ifndef AIRFRAME_H
2#define AIRFRAME_H
3
4#include <string>
5
12class Airframe {
13public:
22 Airframe(const std::string& name,
23 double length,
24 double diameter,
25 double dryMass,
26 double dragCoefficient);
27
31 ~Airframe() = default;
32
37 double getLength() const;
38
43 double getDiameter() const;
44
49 double getDryMass() const;
50
55 double getDragCoefficient() const;
56
64 double getReferenceArea() const;
65
70 const std::string& getName() const;
71
72private:
73 std::string name_;
74
75 double length_;
76 double diameter_;
77 double dryMass_;
79};
80
81#endif // AIRFRAME_H
double getDiameter() const
Gets the maximum diameter of the airframe.
Definition Airframe.cpp:24
double dragCoefficient_
Drag coefficient (Cd).
Definition Airframe.h:78
Airframe(const std::string &name, double length, double diameter, double dryMass, double dragCoefficient)
Constructs a new Airframe.
Definition Airframe.cpp:6
double getDryMass() const
Gets the dry mass of the airframe.
Definition Airframe.cpp:28
std::string name_
Name of the airframe.
Definition Airframe.h:73
const std::string & getName() const
Gets the name of the airframe.
Definition Airframe.cpp:42
double length_
Total length [m].
Definition Airframe.h:75
double getReferenceArea() const
Calculates the reference area for drag computation.
Definition Airframe.cpp:36
double getDragCoefficient() const
Gets the aerodynamic drag coefficient.
Definition Airframe.cpp:32
double dryMass_
Structural dry mass [kg].
Definition Airframe.h:77
~Airframe()=default
Default destructor.
double diameter_
Maximum diameter [m].
Definition Airframe.h:76
double getLength() const
Gets the total length of the airframe.
Definition Airframe.cpp:20