44#include "models/atmosphere/FGStandardAtmosphere.h"
51#include "MSIS/nrlmsise-00.h"
99 bool InitModel(
void)
override;
100 bool Load(
Element* el)
override;
102 using FGAtmosphere::GetTemperature;
105 Compute(altitude, p, t, rho, R);
109 using FGAtmosphere::GetPressure;
112 Compute(altitude, p, t, rho, R);
116 using FGAtmosphere::GetDensity;
119 Compute(altitude, p, t, rho, R);
123 using FGAtmosphere::GetSoundSpeed;
126 Compute(altitude, p, t, rho, R);
127 return sqrt(FGAtmosphere::SHRatio*R*t);
131 void Calculate(
double altitude)
override;
132 void Compute(
double altitude,
double& pression,
double& temperature,
133 double& density,
double &Rair)
const;
135 double day_of_year = 1.0;
136 double seconds_in_day = 0.0;
138 mutable struct nrlmsise_flags flags;
139 mutable struct nrlmsise_input input;
143 void SetTemperature(
double t,
double h, eTemperature unit)
override {};
144 void SetTemperatureSL(
double t, eTemperature unit)
override {};
145 void SetPressureSL(ePressure unit,
double pressure)
override {};
146 void Debug(
int from)
override;
Encapsulates the JSBSim simulation executive.
Models the MSIS-00 atmosphere.
double GetDensity(double altitude) const override
Returns the density in slugs/ft^3 at a given altitude in ft.
double GetPressure(double altitude) const override
Returns the pressure at a specified altitude in psf.
double GetTemperature(double altitude) const override
Returns the actual modeled temperature in degrees Rankine at a specified altitude.
double GetSoundSpeed(double altitude) const override
Returns the speed of sound in ft/sec at a given altitude in ft.