Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_stdatm.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------------
2// Standard atmosphere model header.
3//-----------------------------------------------------------------------------------------
4// Copyright (c) 2009 Princeton Satellite Systems. All rights reserved.
5//-----------------------------------------------------------------------------------------
6
9
10#ifndef __STDATM__
11#define __STDATM__
12
13#ifdef AS_OS_WINDOWS
14 #include "matrixlib.h"
15#else
16 #include <MatrixLib/MatrixLib.h>
17#endif
18
25class StdAtm
26{
27
28 private:
30 double temperature;
32 double pressure;
34 double density;
36 double speedOfSound;
38 double kinematicViscosity;
40 ml_matrix atmData;
41
42 public:
43 StdAtm( void );
45 void Initialize();
47 void Initialize( const char fileName[] );
48 void Update( double altitude );
49
51 double GetTemperature( void ){ return this->temperature; };
52
54 double GetPressure( void ){ return this->pressure; };
55
57 double GetDensity( void ){ return this->density; };
58
60 double GetSpeedOfSound( void ){ return this->speedOfSound; };
61
63 double GetKinematicViscosity( void ){ return this->kinematicViscosity; };
64};
65
66
67#endif
The standard atmosphere model.
Definition: sc_stdatm.h:26
void Update(double altitude)
Update the outputs.
Definition: sc_stdatm.cc:49
void Initialize()
Initialize from AtmData.txt.
Definition: sc_stdatm.cc:19
double GetTemperature(void)
Return the temperature.
Definition: sc_stdatm.h:51
double GetSpeedOfSound(void)
Return the speed of sound.
Definition: sc_stdatm.h:60
double GetPressure(void)
Return the pressure.
Definition: sc_stdatm.h:54
double GetKinematicViscosity(void)
Return the kinematic viscosity.
Definition: sc_stdatm.h:63
double GetDensity(void)
Return the density.
Definition: sc_stdatm.h:57