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.

60 lines
1.0 KiB

  1. #ifndef conversion_h
  2. #define conversion_h
  3. /* pressure units */
  4. enum
  5. {
  6. ATM,
  7. PSI,
  8. BAR,
  9. KPA
  10. };
  11. /* Transform calories to joules */
  12. #define CAL_TO_JOULE 4.1868
  13. /* Transform pound/(cubic inch) to gram/(cubic centimeter) */
  14. #define LBS_IN3_TO_G_CM3 27.679905
  15. /* Transform different pressure units */
  16. #define ATM_TO_PA 101325.0
  17. #define ATM_TO_PSI 14.695949
  18. #define ATM_TO_BAR 1.01325
  19. #define BAR_TO_PSI 14.503774
  20. #define BAR_TO_ATM 0.98692327
  21. #define PSI_TO_ATM 0.068045964
  22. #define KPA_TO_ATM 0.0098692327
  23. /* Length */
  24. #define M_TO_CM 100.0
  25. #define M_TO_IN 39.370079
  26. #define IN_TO_M 0.0254
  27. /* Surface */
  28. #define M2_TO_CM2 10000.0
  29. #define M2_TO_IN2 1550.0031
  30. /* Volume */
  31. #define M3_TO_CM3 1000000.0
  32. #define M3_TO_IN3 61023.744
  33. /* Mass flow */
  34. #define KG_S_TO_LB_S 2.2046226
  35. /* force */
  36. /* newton to pound-force */
  37. #define N_TO_LBF 0.22480894
  38. #define LBF_TO_N 4.4482216
  39. #endif