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.

72 lines
2.5 KiB

  1. #ifndef lrd_h
  2. #define lrd_h
  3. #include "libcpropep/include/type.h"
  4. typedef struct _design_param_t
  5. {
  6. /* Design criteria */
  7. double chamber_pressure; /* Operating pressure of the motor (atm) */
  8. double thrust; /* Thrust of the motor (N) */
  9. double Lstar; /* Cracteristic chamber lengtgh */
  10. double Dc_Dt; /* Chamber diameter / Throat diameter */
  11. double R_Rt; /* Ratio of nozzle contour arc radius
  12. to throat radius */
  13. double theta; /* Convergent half angle (deg) */
  14. } design_param_t;
  15. typedef struct _motor_t
  16. {
  17. /* Unknown that will be compute */
  18. double mass_flow_rate; /* Total mass flow (kg/s) */
  19. double ox_flow_rate; /* Oxidant mass flow rate */
  20. double fu_flow_rate; /* Fuel mass flow rate */
  21. double throat_area; /* (m^2) */
  22. double throat_diameter; /* (m) */
  23. double throat_radius; /* (m) */
  24. double exit_area; /* (m^2) */
  25. double exit_diameter; /* (m) */
  26. double exit_radius; /* (m) */
  27. double Ac_At; /* Chamber area / throat area */
  28. /* total */
  29. double chamber_volume; /* (m^3) */
  30. double chamber_area; /* (m^2) */
  31. double chamber_diameter; /* (m) */
  32. double chamber_radius; /* (m) */
  33. double chamber_length; /* (m) */
  34. /* conical section */
  35. double convergent_volume; /* (m^3) */
  36. double convergent_length; /* (m) */
  37. /* cylindrical section */
  38. double cylinder_volume; /* (m^3) */
  39. double cylinder_length; /* (m) */
  40. double walls_area; /* total surface area of the
  41. combustion chamber walls
  42. excluding injector face */
  43. } motor_t;
  44. typedef struct _liquid_propellant_t
  45. {
  46. int oxidant;
  47. int fuel;
  48. double o_f_ratio;
  49. } liquid_propellant_t;
  50. int LRD_compute_caracteristics(equilibrium_t *e, design_param_t *d,
  51. motor_t *m, liquid_propellant_t *p);
  52. int LRD_print_propellant_info(liquid_propellant_t *p);
  53. int LRD_print_design_criteria(design_param_t *c);
  54. int LRD_print_design_information(motor_t *mf, motor_t *ms);
  55. #endif