AerospacePackage 1.0
Public Member Functions | List of all members
solid_rocket_with_divert Class Reference

Models a solid rocket with divert thrusters. More...

#include <solid_rocket_with_divert.h>

Inherits dsim_model.

Public Member Functions

void initialize_data ()
 Initialize outlets and output variables.
 
void initialization_complete ()
 Finish initialization.
 
void initialize_timestep ()
 Computation done prior to numerical integration. More...
 
void rhs (double t, double jd)
 Computation done during numerical integration. More...
 
void complete_timestep ()
 Computation done after numerical integration. More...
 

Detailed Description

Models a solid rocket with divert thrusters.

Assumes that the inside of the solid rocket cylinder burns uniformly. Computes inertia and inertia derivative. You command pulsewidths for the divert thrusters. This "diverts" mass flow
from the main mass flow.

Member Function Documentation

◆ initialize_timestep()

void solid_rocket_with_divert::initialize_timestep ( )

Computation done prior to numerical integration.

Compute the mass flow rate and the inertia and inertia derivatives at the beginning of the timestep.

◆ rhs()

void solid_rocket_with_divert::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.

◆ complete_timestep()

void solid_rocket_with_divert::complete_timestep ( )

Computation done after numerical integration.

Update the mass derivative variable with value of mass flow used and apply a lower limit of zero to the fuel mass variable to prevent it becoming negative.


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