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

Generates a solar pressure model anywhere in the solar system but only in interplanetary space. More...

#include <solar_pressure.h>

Inherits dsim_model.

Public Member Functions

 solar_pressure (dsim_model_setup *setup)
 Constructor.
 
 ~solar_pressure ()
 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.
 

Protected Attributes

dsim_variable forceSolar
 The solar pressure force.
 
dsim_variable torqueSolar
 The solar pressure torque.
 
dsim_variable observer
 The SPICE reference center.
 
dsim_variable positionBody
 The SPICE position of solar system bodies.
 
dsim_variable planetIndex
 The SPICE planet index corresponding to the position.
 
dsim_variable parent_position
 The parent position.
 
dsim_variable parent_quaternion
 The parent quaternion.
 
dsim_variable parent_centerOfMass
 The center of mass.
 
dsim_variable rho_dsim
 Solar pressure coefficients.
 
dsim_variable area_dsim
 Area of each area.
 
dsim_variable normals_dsim
 Normal for each surface.
 
dsim_variable centroids_dsim
 Centroid of each surface.
 

Detailed Description

Generates a solar pressure model anywhere in the solar system but only in interplanetary space.

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. The position is assumed to be relative to the sun.

Member Function Documentation

◆ initialize_timestep()

void solar_pressure::initialize_timestep ( )

Computation done prior to numerical integration.

Compute the solar force and torque.

References area_dsim, centroids_dsim, forceSolar, normals_dsim, rho_dsim, and torqueSolar.


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