Aerospace Control Framework 1.0
Public Member Functions | List of all members
aero_suborb Class Reference

suborbital aerodynamic model. More...

#include <sc_aero_suborb.h>

Public Member Functions

 aero_suborb (void)
 Constructor.
 
void initialize (char *filename)
 Initialize with a filename. More...
 
ml_matrix get_torque (void)
 Return the torque.
 
ml_matrix get_force (void)
 Return the force.
 
void update (const ml_matrix &u, const ml_matrix &center_of_mass, double rho, const ml_matrix &hinge_angle, double h)
 Update the values of torque and force. More...
 

Detailed Description

The organization of the data file is:

If the rotation axis is [0;0;0] then the model is assumed not to rotate relative to the core body.

Member Function Documentation

◆ initialize()

void aero_suborb::initialize ( char *  filename)

Initialize the model from an ASCII text data file.

References suborb_aero_s::axis, suborb_aero_s::q_body_to_hinge, suborb_aero_s::r_surf, and suborb_aero_s::s.

◆ update()

void aero_suborb::update ( const ml_matrix &  u,
const ml_matrix &  center_of_mass,
double  rho,
const ml_matrix &  hinge_angle,
double  h 
)

Return the torque given the altitude and mach number.

Parameters
uVelocity vector in the body frame
center_of_massCenter of mass
rhoAtmospheric density

References suborb_aero_s::r_surf, and suborb_lift_and_drag().