Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Generates a disturbance model for earth orbit. More...
#include <disturbances_earth.h>
Inherits dsim_model.
Public Member Functions | |
disturbances_earth (dsim_model_setup *setup) | |
Constructor. | |
~disturbances_earth () | |
Destructor. | |
void | initialize_data () |
Initialize outlets and output variables. | |
void | initialization_complete () |
Finish initialization. | |
void | initialize_timestep () |
Computation done prior to numerical integration. More... | |
void | rhs (double t, double jd) |
Computation done during numerical integration. | |
void | complete_timestep () |
Computation done after numerical integration. | |
Generates a disturbance model for earth orbit.
Computes external disturbances in Earth orbit due to solar pressure, albedo, radiation pressure, aerodynamic drag, radio frequency pressure, gravity gradient torques, and residual magnetic dipole.
The inputs to this model are a file with vertices and faces. Each face is defined on one row by the three vertices (9 elements), coefficient of drag, optical properties (4 elements) in the order: [absorbed specular diffuse transmitted]. The optical coefficients must sum to one. The outward normals are computed using the right-hand-rule based on the face array.
This is a single-sided model. If the cosine of the angle to the light source is negative, the face is assumed facing away from the sun and the force on that face is zero. Shadowing is not modeled.
void disturbances_earth::initialize_timestep | ( | ) |
Computation done prior to numerical integration.
Compute the solar force and torque.