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

Models a battery. More...

#include <battery.h>

Inheritance diagram for battery:
powered_hardware

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.
 
- Public Member Functions inherited from powered_hardware
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.
 
- Protected Attributes inherited from powered_hardware
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.
 

Detailed Description

Models a battery.

The battery connects to a power source via an outlet which provides charging or power draw.


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