Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Magnetic torquer model. More...
#include <magnetic_torquer.h>
Inherits dsim_model.
Public Member Functions | |
magnetic_torquer (dsim_model_setup *setup) | |
Constructor. | |
~magnetic_torquer () | |
Destructor. | |
void | initialize_data () |
Initialize outlets and output variables. | |
void | initialization_complete () |
Finish initialization. | |
void | initialize_timestep () |
Computation done prior to numerical integration. | |
void | rhs (double t, double jd) |
Computation done during numerical integration. More... | |
void | complete_timestep () |
Computation done after numerical integration. | |
Magnetic torquer model.
Models a pulsewidth modulated suite of thrusters with a single blowdown tank.
A pulsewidth command is sent to the thrusters. The thrusters then fire until the pulsewidth is complete.
A blowdown system is assumed using Helium as the pressurant. The pressure is modeled assuming a single tank. Thrusters are added using a AddThruster setup directive.
void magnetic_torquer::rhs | ( | double | t, |
double | jd | ||
) |
Computation done during numerical integration.
The right hand side applies the force and torque to the parent object and computes the mass derivative using the mass flow.