Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_atmj70toground.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------------
2// Combined J70 and standard atmosphere model header.
3//-----------------------------------------------------------------------------------------
4// Copyright (c) 2009 Princeton Satellite Systems. All rights reserved.
5//-----------------------------------------------------------------------------------------
6
9
10#ifndef __ATMJ70TOGROUND__
11#define __ATMJ70TOGROUND__
12
13#ifdef AS_OS_WINDOWS
14 #include "matrixlib.h"
15#else
16 #include <MatrixLib/MatrixLib.h>
17#endif
18
19#include "sc_stdatm.h"
20#include "sc_atmJ70.h"
21#include "sc_constants.h"
22
23
32{
33
34 private:
35 double temperature; // temperature
36 double density; // density
37 double speedOfSound; // speed of sound
38 double kinematicViscosity; // kinematic viscosity
39 double pressure; // pressure
40 StdAtm s;
41 AtmJ70 j70;
42
43 public:
44 AtmJ70ToGround( void );
53 bool Initialize( double jD, int kTiming, int kSigma, const char fileName[]);
59 void Update( const ml_matrix & rECI, double jD );
60
62 double GetTemperature( void ){ return this->temperature; };
64 double GetDensity( void ){ return this->density; };
66 double GetSpeedOfSound( void ){ return this->speedOfSound; };
68 double GetKinematicViscosity( void ){ return this->kinematicViscosity; };
70 double GetPressure( void ){ return this->pressure; };
71
72};
73
74
75#endif
Combined J70 and standard atmosphere model.
Definition: sc_atmj70toground.h:32
bool Initialize(double jD, int kTiming, int kSigma, const char fileName[])
Initialize both the standard atmosphere and J70 models.
Definition: sc_atmj70toground.cc:18
AtmJ70ToGround(void)
Default constructor.
Definition: sc_atmj70toground.cc:14
double GetKinematicViscosity(void)
Return the speed of sound in m/s.
Definition: sc_atmj70toground.h:68
double GetSpeedOfSound(void)
Return the speed of sound in m/s.
Definition: sc_atmj70toground.h:66
double GetPressure(void)
Return the pressure in N/m^2.
Definition: sc_atmj70toground.h:70
double GetTemperature(void)
Return the atmonspheric temperature in K.
Definition: sc_atmj70toground.h:62
void Update(const ml_matrix &rECI, double jD)
Update the density model using a new ECI location and Julian date.
Definition: sc_atmj70toground.cc:30
double GetDensity(void)
Return the atmospheric density in kg/m^3.
Definition: sc_atmj70toground.h:64
Class implementing the Jacchia 1970 atmospheric density model.
Definition: sc_atmJ70.h:26
The standard atmosphere model.
Definition: sc_stdatm.h:26
Physical and mathematical constants.
Standard atmosphere model class definition.