Jump to content

Is this the correct way to manually calculate the crash site of a spacecraft?


Recommended Posts

Is the following way the correct way to calculate the exact crash site of a spacecraft on an airless, non-rotating, perfectly spherical body?

It is assumed that the spacecraft is travelling on an elliptical orbit with periapsis within the periphery of the planetary sphere, e.g. under the surface. I write down the equation of the sphere (x^2+y^2+z^2=r(Planet)) and the equation of the inclined orbital ellipse, combine both into an equation system, solve it, select the solution appropriate for the orbital direction (because there are 2 crash points, depending on whether the spacecraft is orbiting clockwise or anticlockwise) and transfer it into spherical coordinates for latitude and longitude. Alternatively, I do the same but two-dimensionally (circle + ellipse equation) and break down the coordinates to account for inclination after calculating the crash site.

Link to comment
Share on other sites

I think you'll need to write your solution out in more detail, but I think the idea is correct. Why would you want to do this, BTW? I have done numerical solutions to a descending craft under thrust to get a close touchdown, but that is a whole other problem.

Link to comment
Share on other sites

3 hours ago, MedwedianPresident said:

Is the following way the correct way to calculate the exact crash site of a spacecraft on an airless, non-rotating, perfectly spherical body?

That sounds basically reasonable.

Take your current ellipse.  Solve it to find "at what point on the trajectory does R equal planet radius."  That's the crash site.

Of course, all KSP bodies rotate, but fortunately that's easy to do, too.  They all rotate at uniform rate, so once you've calculated "at what X,Y,Z point does my ellipse intersect the surface", just figure out when that will be, multiply the time by the planet's rotation rate, offset the projected crash longitude by that much, and there you go.  So it's easy to account for planetary rotation.

The other two approximations you mention (airless and perfectly spherical) are not necessarily valid in KSP.  Several bodies have significant atmosphere, which will radically affect crash site.  And KSP planets are much bumpier (relative to their radii) than real-life planets are, so terrain elevation can really matter when working out crash site, especially if you're approaching the surface at a shallow angle.

Even though these two factors are significant, though... they're also impossibly gnarly; there's basically no way to solve them analytically with math.  So you pretty much have to ignore them (unlike planetary rotation, which you can account for easily).

One last thing:  for a general solution, you shouldn't assume an ellipse, specifically.  The ship could be moving faster than escape velocity, in which case its orbital path is a hyperbola rather than an ellipse.

Link to comment
Share on other sites

Yeah, you basically need Kepler's Laws to solve.  The wiki page linked will give an answer in spherical polar coordinates (which is what you need really).  From this you can calculate the time t that the orbit intersects the body (you'll have to fudge the altitude of collision to either datum level or an approximation of what it's likely to be, or it'll get very complicated).  You can then calculate how much the body in question rotates in time t, and thus, the exact lat long coordinates of landing.  And Snark is correct above, Kepler won't help you directly with hyperbolic orbits, but that should be a relatively simple adjustment once you get it to work for ellipses.

Link to comment
Share on other sites

You can prescribe the orbit and then see where it's orbital "radius" would equate to the orbited body's radius.

There's no use of X,Y,Z - it is more efficient to use spherical coordinates.

Edited by YNM
Link to comment
Share on other sites

On 12/5/2017 at 10:27 AM, MedwedianPresident said:

Is the following way the correct way to calculate the exact crash site of a spacecraft on an airless, non-rotating, perfectly spherical body?

It is assumed that the spacecraft is travelling on an elliptical orbit with periapsis within the periphery of the planetary sphere, e.g. under the surface. I write down the equation of the sphere (x^2+y^2+z^2=r(Planet)) and the equation of the inclined orbital ellipse, combine both into an equation system, solve it, select the solution appropriate for the orbital direction (because there are 2 crash points, depending on whether the spacecraft is orbiting clockwise or anticlockwise) and transfer it into spherical coordinates for latitude and longitude. Alternatively, I do the same but two-dimensionally (circle + ellipse equation) and break down the coordinates to account for inclination after calculating the crash site.

A surface strike from below to the inside of the shell is always a strait line along the vector of travel.

Here is the reason.

https://en.wikipedia.org/wiki/Newton's_law_of_universal_gravitation

06858ef1880b87d71ba7d1e5f508944f81d75b2c

4076b9185d8ce136d722617125e8622a2a5fdd8d

The net gravity acting inside of a shell is zero (r < Rshell). Consequently, there is a direction vector from the center. The crafts position is different from the center. In this case the inside radius is r'. Current position is x, y, z from center

and velocity is dx/dt, dy/dt, dz/dt. Consequently r'= ((x0+tidx/dt)2 + (y0+tidy/dt)2 + (z0+tidz/dt)2)1/2 where ti is the time of impact.

Please do your math homework yourself.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...