AerospacePackage 1.0
|
Models a single H2/O2 engine such as the SSME. More...
#include <h2o2engine.h>
Inherits dsim_model.
Public Member Functions | |
h2o2engine (dsim_model_setup *setup) | |
Constructor. | |
~h2o2engine () | |
Destructor. | |
void * | describe_setup (void *ds) |
Describe the setup commands. | |
bool | parse_setup (const char *command, const char *data) |
Parse the setup commands. More... | |
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. | |
Models a single H2/O2 engine such as the SSME.
It is assumed to be fed by turbopumps so the pressure is constant. The engine can be throttled over a preset throttle range.
bool h2o2engine::parse_setup | ( | const char * | command, |
const char * | data | ||
) |
Parse the setup commands.
Processes commands.
void h2o2engine::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.