48#include "input_output/FGLog.h"
69void FGMars::Calculate(
double altitude)
75 if (altitude < 22960.0) {
76 Temperature = -25.68 - 0.000548*altitude + 459.67;
78 Temperature = -10.34 - 0.001217*altitude + 459.67;
80 Pressure = 14.62*exp(-0.00003*altitude);
81 Density = Pressure/(Reng*Temperature);
106void FGMars::Debug(
int from)
108 if (debug_lvl <= 0)
return;
114 if (debug_lvl & 2 ) {
115 FGLogging log(LogLevel::DEBUG);
116 if (from == 0) log <<
"Instantiated: FGMars\n";
117 if (from == 1) log <<
"Destroyed: FGMars\n";
119 if (debug_lvl & 4 ) {
121 if (debug_lvl & 8 ) {
123 if (debug_lvl & 16) {
125 if (debug_lvl & 32) {
127 if (debug_lvl & 64) {
Models an empty, abstract base atmosphere class.
static constexpr double Rstar
Universal gas constant - ft*lbf/R/mol.
Encapsulates the JSBSim simulation executive.
static constexpr double Mmars
Mean molecular weight of the Martian atmosphere - slug/mol.
FGMars(FGFDMExec *)
Constructor.
Main namespace for the JSBSim Flight Dynamics Model.