Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_aero_newtonian.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------------
2// Copyright (c) 2009 Princeton Satellite Systems. All rights reserved.
3//-----------------------------------------------------------------------------------------
4
10#ifndef __SC_AERO_NEWTONIAN__
11#define __SC_AERO_NEWTONIAN__
12
13#ifdef AS_OS_WINDOWS
14 #include "matrixlib.h"
15#else
16 #include <MatrixLib/MatrixLib.h>
17#endif
18
19
34{
35
36 private:
38 ml_matrix torque;
40 ml_matrix force;
42 int initialized;
44 int n_surfaces;
45
46
47
49 typedef struct newtonian_aero_s {
50 ml_matrix normal;
51 ml_matrix area;
52 ml_matrix point;
53 ml_matrix axis;
54 ml_matrix r_surf;
55 ml_matrix q_surf;
56 } newtonian_aero_t;
57
58 newtonian_aero_t *aero_surf;
59
60 public:
62 aero_newtonian( void );
64 void initialize( char * filename );
66 ml_matrix get_torque( void ){ return torque; };
68 ml_matrix get_force( void ){ return force; };
70 void update( const ml_matrix& u, const ml_matrix& center_of_mass, double rho, const ml_matrix& angle );
71
72 ml_matrix newtonian_force_and_torque( const ml_matrix & normal, const ml_matrix & area, const ml_matrix & point, const ml_matrix & v, double rho, const ml_matrix & c );
73 };
74
75
76#endif
Newtonian aerodynamic model.
Definition: sc_aero_newtonian.h:34
ml_matrix newtonian_force_and_torque(const ml_matrix &normal, const ml_matrix &area, const ml_matrix &point, const ml_matrix &v, double rho, const ml_matrix &c)
Computes force and torque using the Newtonian approximation.
Definition: sc_aero_newtonian.cc:143
void update(const ml_matrix &u, const ml_matrix &center_of_mass, double rho, const ml_matrix &angle)
Update the values of torque and force.
Definition: sc_aero_newtonian.cc:101
void initialize(char *filename)
Initialize with a filename.
Definition: sc_aero_newtonian.cc:30
ml_matrix get_force(void)
Return the force.
Definition: sc_aero_newtonian.h:68
ml_matrix get_torque(void)
Return the torque.
Definition: sc_aero_newtonian.h:66
aero_newtonian(void)
Constructor.
Definition: sc_aero_newtonian.cc:18