Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
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... | |
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.
void thermal::initialize_data | ( | ) |
Initialize outlets and output variables.
Initialize the data for 10 elements.
Assumes a linear conductor model.
References alphaThermal_dsim, areaThermal_dsim, bodyIndex_dsim, conductance_dsim, conductanceMatrixFile_dsim, epsilonThermal_dsim, heater_flux_dsim, heater_on_dsim, heaterNode_dsim, normalThermal_dsim, observer_dsim, planetIndex_dsim, positionBody_dsim, temperature_dsim, thermalMass_dsim, and thermalModelFile_dsim.
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.
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.