Jump to content

Calculating perigee on changing SOI


Recommended Posts

Thanks for the reply- the thing is that I want to calculate the mission before launch, because I enjoy calculating stuff before I launch, as well as allowing me to work out the correct launch window for a dual flyby.

Link to comment
Share on other sites

Since all the planets are "on rails" you can use Kepler orbit equations and they should be spot-on. All the information you need to define the planet's orbits and locations is available on the wiki and in the game.

Then it's just a matter of solving a bunch of 2-body problems, with SOI determining which planetary body you use.

Might want to write some software - or at least a spreadsheet - to do the math for you... 'cause there's gonna be a lot of it.

=Smidge=

Link to comment
Share on other sites

I will assume you mean after transferring from Kerbol SOI to outer planetary SOI, since going from Kerbin to Kerbol SOI,

you are pretty much already at your Kerbol periapsis (if you exited Kerbin's SOI reasonably prograde.)

The standard answer to your question is that you don't. The game does it for you.

Changing your periapsis at the target planet takes a tiny bit of delta-v when you are far away,

if you already have an encounter. It won't be part of typical delta-v calculations

or mission planning, other than "now I should adjust my encounter periapsis."

But I enjoy all things nerdy, and if you wish to calculate everything, read my next reply...

Edited by Yasmy
Reducing negativity.
Link to comment
Share on other sites

Honestly, I don't think that the question you asked is really one you need to ask for mission planning.

Like I said in the previous post, periapsis adjustment at the target, while you are far from the target SOI, is cheap.

Generally all you need to do any orbital calculations is the vis-viva equation.

I won't go over how you use it to calculate delta-v for going from one body to another here. There are tutorials around for that.

Or check out en.wikipedia.org/wiki/Hohmann_transfer_orbit.

But I will go ahead and answer your original question anyway.

First you need to know the velocity (both speed and direction) of your spacecraft and the target planet at the SOI boundary.

Next, when entering a planetary body's SOI, you have to subtract the body's orbital velocity from the spacecraft velocity,

to get the spacecraft velocity relative to the planet. Using the planet's average orbital speed will not work unless the planet

is in a perfectly circular, zero inclination orbit. You will have to calculate the planet's trajectory from its orbital elements.

Now the question becomes: Given a velocity v and radius r of an orbit, what is the periapsis p?

The standard way to approach such a calculation is to use conservation of energy and conservation of angular momentum.

Instead I'll use the vis-viva equation (which has conservation of energy implicit in it) and conservation of angular momentum.

Use the vis-viva equation at the SOI boundary to find your semi-major axis: 1/a = 2/r - v2/mu.

Note that r is just the SOI radius.

Use the vis-viva equation again at periapsis: vp2 = mu(2/p - 1/a) = mu(2/p - 2/r) + v2

Now use conservation of angular momentum to eliminate the periapsis velocity, vp:

At periapsis, the magnitude of the angular momentum is just L = m vpp,

since at periapsis, the velocity is perpendicular to the radius.

At the SOI boundary, the magnitude of the angular momentum is L = m v r sin(theta),

where theta is the angle between the line from the planet to the spacecraft and the velocity vector.

Conservation of angular momentum says these two values are equal: m vpp = m v r sin(theta).

Substitute vp = v r sin(theta) / p into the previous equation: vp2 = mu(2/p - 2/r) + v2

(v r sin(theta) / p)2 = mu(2/p - 2/r) + v2.

Now multiply both sides by p2 and you get a quadratic equation for the periapsis p.

Solve the quadratic equation. There are two roots: the periapsis and the apoapsis.

Since you are on a hyperbolic orbit, the apoapsis will be meaningless. It should be obvious which root is the periasis.

(Hint: It's the positive root.)

Now the important thing to note in all of this, ie, the reason why I said this is pretty much useless to almost everyone,

is that tiny changes in velocity while you are far form the target planet's SOI will have a huge effect on the velocity

at the SOI. Specifically, it will have a huge effect on the sin(theta) term, the angle between the velocity and the line

from the planet to the spacecraft.

Edited by Yasmy
Typos
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...