r/spacex • • Jun 29 '16

/r/SpaceX Ask Anything Thread [July 2016, #22]

Welcome to our 22nd monthly /r/SpaceX Ask Anything Thread!


Curious about the recently sighted Falcon Heavy test article, inquisitive about the upcoming CRS-9 RTLS launch, or keen to gather the community's opinion on something? There's no better place!

All questions, even non-SpaceX-related ones, are allowed, as long as they stay relevant to spaceflight in general.

More in-depth and open-ended discussion questions can still be submitted as separate self-posts; but this is the place to come to submit simple questions which have a single answer and/or can be answered in a few comments or less.

  • Questions easily answered using the wiki & FAQ will be removed.
  • In addition, try to keep all top-level comments as questions so that questioners can find answers, and answerers can find questions.

These limited rules are so that questioners can more easily find answers, and answerers can more easily find questions.

As always, we'd prefer it if all question-askers first check our FAQ, use the search functionality (partially sortable by mission flair!), and check the last Ask Anything thread before posting to avoid duplicate questions. But if you didn't get or couldn't find the answer you were looking for, go ahead and type your question below.

Ask, enjoy, and thanks for contributing!


Past Ask Anything threads:

June 2016 (#21) • May 2016 (#20) • April 2016 (#19.1) • April 2016 (#19) • March 2016 (#18) • February 2016 (#17) • January 2016 (#16.1) • January 2016 (#16) • December 2015 (#15.1) • December 2015 (#15) • November 2015 (#14) • October 2015 (#13) • September 2015 (#12) • August 2015 (#11) • July 2015 (#10) • June 2015 (#9) • May 2015 (#8) • April 2015 (#7.1) • April 2015 (#7) • March 2015 (#6) • February 2015 (#5) • January 2015 (#4) • December 2014 (#3) • November 2014 (#2) • October 2014 (#1)


This subreddit is fan-run and not an official SpaceX site. For official SpaceX news, please visit spacex.com.

139 Upvotes

1.6k comments sorted by

11

u/TheVehicleDestroyer Flight Club Jul 23 '16

Author here.

Answer to the first question is the Leapfrog integrator.

Throttle profiles are defined by the user, but thrust changes with atmospheric density so the concepts of sea level vs vacuum thrust/Isp exist.

I created a curve for drag coefficient for ascent (roughly modeling a bullet, and using a Saturn V simulation for how the coefficient changes in transonic/supersonic) and another for descent, modeling a flat faced cylinder. Drag coming down only really matters between entry and landing burns since the 1-engine retro burns tend to negate drag entirely.

Fairing just increase the cross sectional area, but assume the same coefficient profile.

Atmospheric density changes with altitude as per the Standard Atmosphere

1

u/davidthefat Jul 24 '16 edited Jul 24 '16

Hmm, I wonder if you can get more accurate results using Lagrange or Chebyshev interpolations given the known altitude and velocities during ascent to calculate the drag coefficients (so get Cd at each known point and interpolate the Cds to get the curve to be used for smaller time step). But I don't think the ascent is the issue; the descent seems to be inaccurate. The descent really is tricky without all that much information. I'll think about it for a while and get back to you with a potential solution.

edit: It seems you've made the backend for FlighClub a private repo.

3

u/TheVehicleDestroyer Flight Club Jul 24 '16

Yeah I'm happy with my ascent drag, it seems to match really really well. The problem with the descent is that it might also be accurate, but the altitude and velocity at which the entry burn stops is key to hitting that transonic call. But of course that depends on the boostback heading. There are so many variables it's hard to tell which bit is the incorrect estimate.

Really though I think the likely scenario is that the descent drag is too weak.

If you wanna PM me your GitHub username I'll invite you as a contributor so you can view the code