Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
A simple fusion engine model. More...
#include <fusion_engine.h>
Inherits dsim_model.
Public Member Functions | |
void | initialize_data () |
Initialize outlets and output variables. | |
void | initialization_complete () |
Finish initialization. More... | |
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. More... | |
A simple fusion engine model.
Models an array of p-B11 fusion engines. The engines have two fuel sources and each has a controllable thrust and exhaust velocity. The thrust vector can be changed by two gimbal angles per engine. This is an ideal rocket engine model and can be used for any electric-type thruster.
void fusion_engine::initialization_complete | ( | ) |
Finish initialization.
Get the parent center of mass and quaternion.
References centerOfMass_dsim, and qECIToBody_dsim.
void fusion_engine::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.
References appliedForce_dsim, appliedTorque_dsim, massR1_dsim, massR2_dsim, and mixtureRatio_dsim.
void fusion_engine::complete_timestep | ( | ) |
Computation done after numerical integration.
Set the fuel mass remaining for both reactants at the end of the timestep.
References mass_dsim, massR1_dsim, and massR2_dsim.