Guest User

Untitled

a guest
Dec 15th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /* 1. setup thrust, isp (or mdot) vehicle stage parameters, and mu for the central force */
  2. public double thrust { get { return this.thrust; } set { this.thrust = value; _update_mdot(); } }
  3. public double isp { get { return this.isp; } set { this.isp = value; _update_mdot(); } }
  4. public const double g0 = 9.80665;
  5. public double mdot;
  6. public double mu;
  7. private void _update_mdot() { if (isp != 0) { mdot = thrust / (g0 * isp ); } }
Add Comment
Please, Sign In to add comment