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

Reads a geometry file giving one face per line and makes the data available as variables. More...

#include <geometry_reader.h>

Inherits dsim_model.

Public Member Functions

 geometry_reader (dsim_model_setup *setup)
 Constructors.
 
 ~geometry_reader ()
 Destructor.
 
void * describe_setup (void *ds)
 Provides descriptions of accepted setup commands.
 
bool parse_setup (const char *command, const char *data)
 Parse setup commands and parameter data.
 
void initialize_data ()
 Initialize outlets, parameters, inputs and outputs.
 
void initialization_complete ()
 Finish initialization.
 

Protected Attributes

dsim_variable area_dsim
 Areas of geometry faces.
 
dsim_variable normals_dsim
 Outward normals of the faces.
 
dsim_variable rho_dsim
 Optical properties, [absorbed,specular,diffuse] as 3xn.
 
dsim_variable cD_dsim
 Coefficients of drag of the faces.
 
dsim_variable centroids_dsim
 Vectors to centroids of each face.
 
dsim_variable areaTS_dsim
 Areas of the two-sided faces.
 
dsim_variable normalsTS_dsim
 Outward normals of the two-sided faces.
 
dsim_variable rhoTS_dsim
 Two-sided optical properties, [absorbed,specular,diffuse], as 6xn for front/back.
 
dsim_variable cDTS_dsim
 Coefficients of drag of the two-sided faces.
 
dsim_variable centroidsTS_dsim
 Vectors to centroids of each two-sided face.
 

Detailed Description

Reads a geometry file giving one face per line and makes the data available as variables.

Each face is defined by 17 or 22 numbers:

componentID v1 v2 v3 {cDF alphaF epsF rhoSF rhoDF rhoAF} rhoT { alphaB epsB rhoSB rhoDB rhoAB}

and includes coefficients of drag, thermal and optical coefficients. The optical coefficients (rho) are [specular,diffuse,absorption,transmission] and should sum to 1. The thermal parameters are absorptivity (alpha) and emissivity (eps). Surfaces such as membranes may give properties for the back side in parameters 18 to 22.


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