Taken from sources in CVS at:
https://sourceforge.net/projects/rocketworkbench/
Sources extracted in two steps:
1. Pull entire project tree into a subdir "rwb" via "rsync":
rsync -a a.cvs.sourceforge.net::cvsroot/rocketworkbench/ rwb/.
2. Export sources:
export CVSROOT=$(pwd)/rwb
SUBDIRS="analyser cpropep cpropep-web CVSROOT data libcompat libcpropep libnum libsimulation libthermo prop rocketworkbench rockflight"
mkdir rwbx; cd rwbx
cvs export -D now ${SUBDIRS}
After this (and some backups for safety), the directory content was
added to a Git repo:
git init .
git add *
42 lines
819 B
C
42 lines
819 B
C
#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
|