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

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...
 

Protected Attributes

dsim_variable unitVector_dsim
 Unit vector.
 
dsim_variable positionVector_dsim
 Position vector.
 
dsim_variable mGimbalToBody_dsim
 From gimbal frame to body frame.
 
dsim_variable eff_dsim
 Engine efficiency.
 
dsim_variable maximumThrust_dsim
 Maximum thrust.
 
dsim_variable centerOfMass_dsim
 parent object COM, for computing torques
 
dsim_variable qECIToBody_dsim
 parent object quaternion
 
Inputs
dsim_variable exhaustVelocity_dsim
 Exhaust velocity.
 
dsim_variable throttle_dsim
 Throttle.
 
dsim_variable gimbalAngle_dsim
 Gimbal angle.
 
dsim_variable mixtureRatio_dsim
 Mixture ratio.
 
States
dsim_variable massR2_dsim
 Mass of reactant 2.
 
dsim_variable massR1_dsim
 Mass of reactant 1.
 

Outputs

dsim_variable thrust_dsim
 Engine instantaneous thrust.
 
dsim_variable thrusterUnitVector_dsim
 UnitVector.
 
dsim_variable mass_dsim
 Total fuel mass.
 
dsim_variable thrusterOn_dsim
 1 if a thruster is on
 
dsim_variable appliedForce_dsim
 Applied force to parent.
 
dsim_variable appliedTorque_dsim
 Applied torque to parent.
 
dsim_variable thrusterNozzleWidth_dsim
 Thruster nozzle width (3D display)
 
dsim_variable thrusterFuelType_dsim
 Thruster fuel type (3D display)
 

Detailed Description

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.

Member Function Documentation

◆ initialization_complete()

void fusion_engine::initialization_complete ( )

Finish initialization.

Get the parent center of mass and quaternion.

References centerOfMass_dsim, and qECIToBody_dsim.

◆ rhs()

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.

◆ complete_timestep()

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.


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