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

  1. #ifndef mcp_h
  2. #define mcp_h
  3. #include "libcpropep/include/type.h"
  4. /* We assume a cylindrical motor */
  5. typedef struct _motor_t
  6. {
  7. /* propellant burning information */
  8. /* coefficient for burning rate equation
  9. r = aP^n (r is in m/s and P in atm */
  10. double a;
  11. double n;
  12. /* nozzle */
  13. double throat_diameter;
  14. double exit_diameter;
  15. //double divergent_angle; /* deg */
  16. //double grain_surface;
  17. } motor_t;
  18. typedef struct _data_
  19. {
  20. /* fixed parameters */
  21. double a; /* burning coefficient */
  22. double n; /* burning exponent */
  23. double ta; /* throat area */
  24. double ea; /* exit area */
  25. equilibrium_t *e; /* pointer to the equilibrium structure */
  26. /* changing parameters */
  27. double (*Ab)(double s); /* Burning area */
  28. double (*Vc)(double s); /* Chamber volume */
  29. } data_t;
  30. #endif