Loading...
Searching...
No Matches
Airframe.h
Go to the documentation of this file.
#ifndef AIRFRAME_H
#define AIRFRAME_H
#include <string>
class Airframe {
public:
Airframe(const std::string& name,
double length,
double diameter,
double dryMass,
double dragCoefficient);
~Airframe() = default;
double getLength() const;
double getDiameter() const;
double getDryMass() const;
double getDragCoefficient() const;
double getReferenceArea() const;
const std::string& getName() const;
private:
std::string name_;
double length_;
double diameter_;
double dryMass_;
double dragCoefficient_;
};
#endif // AIRFRAME_H
Airframe::getDiameter
double getDiameter() const
Gets the maximum diameter of the airframe.
Definition Airframe.cpp:24
Airframe::dragCoefficient_
double dragCoefficient_
Drag coefficient (Cd).
Definition Airframe.h:78
Airframe::Airframe
Airframe(const std::string &name, double length, double diameter, double dryMass, double dragCoefficient)
Constructs a new Airframe.
Definition Airframe.cpp:6
Airframe::getDryMass
double getDryMass() const
Gets the dry mass of the airframe.
Definition Airframe.cpp:28
Airframe::name_
std::string name_
Name of the airframe.
Definition Airframe.h:73
Airframe::getName
const std::string & getName() const
Gets the name of the airframe.
Definition Airframe.cpp:42
Airframe::length_
double length_
Total length [m].
Definition Airframe.h:75
Airframe::getReferenceArea
double getReferenceArea() const
Calculates the reference area for drag computation.
Definition Airframe.cpp:36
Airframe::getDragCoefficient
double getDragCoefficient() const
Gets the aerodynamic drag coefficient.
Definition Airframe.cpp:32
Airframe::dryMass_
double dryMass_
Structural dry mass [kg].
Definition Airframe.h:77
Airframe::~Airframe
~Airframe()=default
Default destructor.
Airframe::diameter_
double diameter_
Maximum diameter [m].
Definition Airframe.h:76
Airframe::getLength
double getLength() const
Gets the total length of the airframe.
Definition Airframe.cpp:20