Based on the original Rocket Workbench on SourceForge in CVS at: https://sourceforge.net/projects/rocketworkbench
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
819 B

#ifndef mcp_h
#define mcp_h
#include "libcpropep/include/type.h"
/* We assume a cylindrical motor */
typedef struct _motor_t
{
/* propellant burning information */
/* coefficient for burning rate equation
r = aP^n (r is in m/s and P in atm */
double a;
double n;
/* nozzle */
double throat_diameter;
double exit_diameter;
//double divergent_angle; /* deg */
//double grain_surface;
} motor_t;
typedef struct _data_
{
/* fixed parameters */
double a; /* burning coefficient */
double n; /* burning exponent */
double ta; /* throat area */
double ea; /* exit area */
equilibrium_t *e; /* pointer to the equilibrium structure */
/* changing parameters */
double (*Ab)(double s); /* Burning area */
double (*Vc)(double s); /* Chamber volume */
} data_t;
#endif