Spacecraft Models Package 2.0
Spacecraft Models for DSim
Public Member Functions | List of all members
disturbances_simple_earth Class Reference

Generates a simple disturbance model for earth orbit. More...

#include <disturbances_simple_earth.h>

Inherits dsim_model.

Public Member Functions

 disturbances_simple_earth (dsim_model_setup *setup)
 Constructor.
 
 ~disturbances_simple_earth ()
 Destructor.
 
void initialize_data ()
 Initialize outlets and output variables. More...
 
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.
 

Protected Attributes

Outputs
dsim_variable force_total_dsim
 The total force.
 
dsim_variable torque_total_dsim
 The total torque.
 
dsim_variable force_solar_dsim
 The solar force.
 
dsim_variable torque_solar_dsim
 The solar torque.
 
dsim_variable force_albedo_dsim
 The albedo force.
 
dsim_variable torque_albedo_dsim
 The albedo torque.
 
dsim_variable force_radiation_dsim
 The radiation force.
 
dsim_variable torque_radiation_dsim
 The radiation torque.
 
dsim_variable force_aero_dsim
 The aero force.
 
dsim_variable torque_aero_dsim
 The aero torque.
 
dsim_variable force_rf_dsim
 The RF force.
 
dsim_variable torque_rf_dsim
 The RF torque.
 
dsim_variable torque_gg_dsim
 The gravity gradient torque.
 
dsim_variable torque_magnetic_dsim
 The magnetic torque.
 
Parameters

The surface area

dsim_variable area_dsim
 
dsim_variable residual_dipole_dsim
 The residual dipole.
 
dsim_variable center_of_pressure_dsim
 The center of pressure.
 
dsim_variable rf_vector_dsim
 The RF power vector.
 
dsim_variable rf_position_dsim
 The surface area.
 
dsim_variable solarFluxFile_dsim
 The solar flux file.
 
Commands
dsim_variable solar_on_dsim
 
dsim_variable albedo_on_dsim
 
dsim_variable radiation_on_dsim
 
dsim_variable aero_on_dsim
 
dsim_variable rf_on_dsim
 
dsim_variable gg_on_dsim
 
dsim_variable magnetic_on_dsim
 
Parent connections
dsim_variable position_dsim
 The parent position.
 
dsim_variable quaternion_dsim
 The parent quaternion.
 
dsim_variable velocity_dsim
 The parent quaternion.
 
dsim_variable center_of_mass_dsim
 The center of mass.
 
dsim_variable inertia_dsim
 The inertia.
 

Detailed Description

Generates a simple 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.

Member Function Documentation

◆ initialize_data()

void disturbances_simple_earth::initialize_data ( )

Initialize outlets and output variables.

The total ECI force vector (3,1), in N.

◆ initialize_timestep()

void disturbances_simple_earth::initialize_timestep ( )

Computation done prior to numerical integration.

Compute the solar force and torque.


The documentation for this class was generated from the following files: