Loading...
Searching...
No Matches
Environment.h
Go to the documentation of this file.
#ifndef ENVIRONMENT_H
#define ENVIRONMENT_H
class Environment {
public:
Environment(double surfacePressure,
double surfaceTemperature,
double launchAltitude);
~Environment() = default;
double getAirDensity(double altitude) const;
double getGravity(double altitude) const;
double getSurfacePressure() const;
double getSurfaceTemperature() const;
double getLaunchAltitude() const;
private:
double surfacePressure_;
double surfaceTemperature_;
double launchAltitude_;
double getStandardTemperature(double altitude) const;
double getStandardPressure(double altitude) const;
};
#endif // ENVIRONMENT_H
Environment::~Environment
~Environment()=default
Default destructor.
Environment::launchAltitude_
double launchAltitude_
Launch altitude above sea level [m].
Definition Environment.h:62
Environment::getStandardTemperature
double getStandardTemperature(double altitude) const
Internal method to compute standard atmosphere temperature at altitude.
Definition Environment.cpp:84
Environment::getSurfaceTemperature
double getSurfaceTemperature() const
Returns the surface temperature at launch site.
Definition Environment.cpp:74
Environment::getGravity
double getGravity(double altitude) const
Returns the gravitational acceleration at a given altitude.
Definition Environment.cpp:66
Environment::surfacePressure_
double surfacePressure_
Surface pressure at launch site [Pa].
Definition Environment.h:60
Environment::getAirDensity
double getAirDensity(double altitude) const
Returns the atmospheric density at a given altitude.
Definition Environment.cpp:59
Environment::Environment
Environment(double surfacePressure, double surfaceTemperature, double launchAltitude)
Constructs a new Environment.
Definition Environment.cpp:49
Environment::getSurfacePressure
double getSurfacePressure() const
Returns the surface pressure at launch site.
Definition Environment.cpp:70
Environment::getLaunchAltitude
double getLaunchAltitude() const
Returns the launch altitude above sea level.
Definition Environment.cpp:78
Environment::surfaceTemperature_
double surfaceTemperature_
Surface temperature at launch site [K].
Definition Environment.h:61
Environment::getStandardPressure
double getStandardPressure(double altitude) const
Internal method to compute standard atmosphere pressure at altitude.
Definition Environment.cpp:91