51 IDENT(IdSrc,
"$Id: FGMars.cpp,v 1.13 2014/01/13 10:46:07 ehofman Exp $");
70 void FGMars::Calculate(
double altitude)
76 if (altitude < 22960.0) {
77 Temperature = -25.68 - 0.000548*altitude;
79 Temperature = -10.34 - 0.001217*altitude;
81 Pressure = 14.62*exp(-0.00003*altitude);
82 Density = Pressure/(Reng*Temperature);
106 void FGMars::Debug(
int from)
108 if (debug_lvl <= 0)
return;
114 if (debug_lvl & 2 ) {
115 if (from == 0) cout <<
"Instantiated: FGMars" << endl;
116 if (from == 1) cout <<
"Destroyed: FGMars" << endl;
118 if (debug_lvl & 4 ) {
120 if (debug_lvl & 8 ) {
122 if (debug_lvl & 16) {
124 if (debug_lvl & 32) {
126 if (debug_lvl & 64) {
128 cout << IdSrc << endl;
129 cout << IdHdr << endl;
Models an empty, abstract base atmosphere class.
Encapsulates the JSBSim simulation executive.