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

Provides a simple thermal model for a network of elements. More...

#include <thermal.h>

Inherits dsim_model.

Public Member Functions

void initialize_data ()
 Initialize outlets and output variables. More...
 
void initialization_complete ()
 Finish initialization.
 
void complete_timestep ()
 Computation done after numerical integration.
 
void initialize_timestep ()
 Computation done prior to numerical integration. More...
 
void rhs (double t, double jd)
 Computation done during numerical integration. More...
 

Protected Attributes

States
dsim_variable temperature_dsim
 Temperature states.
 
Inputs
dsim_variable heater_on_dsim
 Heater pulsewidth command.
 
dsim_network * power_network_dsim
 
Parent data
dsim_variable position_dsim
 Parent spacecraft ECI position.
 
dsim_variable quaternion_dsim
 Parent quaternion (from ECI to body)
 
dsim_variable angle_appendage_dsim
 Appendage angle.
 
dsim_variable u_appendage_dsim
 Appendage unit vector.
 
Outlets
dsim_variable observer_dsim
 Reference center from SPICE.
 
dsim_variable positionBody_dsim
 Planet positions from SPICE (including the sun)
 
dsim_variable planetIndex_dsim
 SPICE planet index from SPICE.
 
Parameters
dsim_variable alphaThermal_dsim
 Absorptivity (1,n)
 
dsim_variable epsilonThermal_dsim
 Emissivity (1,n)
 
dsim_variable areaThermal_dsim
 Area of elements (n,1)
 
dsim_variable normalThermal_dsim
 Normal fo reach area (3,n)
 
dsim_variable conductance_dsim
 Thermal conductance matrix (n,n)
 
dsim_variable thermalMass_dsim
 Thermal mass (1,n)
 
dsim_variable heater_flux_dsim
 Heater flux(1,n;.
 
dsim_variable thermalModelFile_dsim
 Thermal model file.
 
dsim_variable conductanceMatrixFile_dsim
 Conductance matrix file.
 
dsim_variable bodyIndex_dsim
 Body index.
 
dsim_variable heaterNode_dsim
 Heater node.
 

Detailed Description

Provides a simple thermal model for a network of elements.

It has heaters, a conductivity matrix and an interface to the outside. The sun is the only external heat source. External heat sources send messages with the heat value in watts and the node in an ml_matrix(1,2) [heat node]

The temperature is an integrated state.

Member Function Documentation

◆ initialize_data()

void thermal::initialize_data ( )

◆ initialize_timestep()

void thermal::initialize_timestep ( )

Computation done prior to numerical integration.

Get the values for the coefficients, areas, and normals.

Also locate the sun in the connected planet index. The sun is body 10.

References planetIndex_dsim.

◆ rhs()

void thermal::rhs ( double  t,
double  jd 
)

Computation done during numerical integration.

Compute the derivatives of the temperatures given the current position of the sun.

References angle_appendage_dsim, bodyIndex_dsim, heater_flux_dsim, heater_on_dsim, heaterNode_dsim, position_dsim, positionBody_dsim, quaternion_dsim, temperature_dsim, and u_appendage_dsim.


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