Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Models a battery. More...
#include <battery.h>
Public Member Functions | |
battery (dsim_model_setup *setup) | |
Constructor. | |
void | initialization_complete () |
Finish initalizing the model. | |
void | initialize_data () |
Initialize output. | |
void | rhs (double t, double jd) |
Computation done during numerical integration. | |
void | post_calculate () |
Compute the battery flux. | |
![]() | |
void * | describe_setup (void *ds) |
Describe the setup variables. | |
void | initialize_data () |
Initialize outlets and output variables. | |
void | initialization_complete () |
Finish initialization. | |
void | initialize_timestep () |
Initialize the timestep. | |
Protected Attributes | |
dsim_variable | power_dsim |
Power absorbed or discharged. | |
dsim_variable | charge_rate_dsim |
Charge rate. | |
dsim_variable | battery_charge_dsim |
State of charge. | |
dsim_variable | max_charge_dsim |
Maximum charge. | |
dsim_variable | current_dsim |
Current. | |
dsim_variable | voltage_bus_dsim |
Voltage. | |
![]() | |
dsim_variable | power_on_dsim |
Power consumed when on (constant) | |
dsim_variable | power_standby_dsim |
Power consumed when in standby mode (constant) | |
dsim_variable | failed_dsim |
Command flag for failed (1) or not (0) | |
dsim_variable | on_dsim |
Command flag for on (1) or off (1) | |
dsim_variable | current_dsim |
Measured current. | |
dsim_variable | voltage_dsim |
Input voltage. | |
dsim_variable | thermal_node_dsim |
Thermal node. | |
dsim_variable | heat_dsim |
Heat. | |
dsim_variable | power_dsim |
Power. | |
Models a battery.
The battery connects to a power source via an outlet which provides charging or power draw.