Trying to figure out Orbital Mechanics

In summary, you are trying to determine the launch window for a rendezvous with a docked orbiter in Kerbal Space Program. You are using the latitude of the location as a guide to determine the time until the launch window opens. The angle between the orbits is easily determined using trigonometry.
  • #1
MattRob
211
29
Sooo, this is something I'm really happy I figured out, buuuut, I want to make sure it's correct.

I guess the context doesn't really matter, so you can skip the slashed part if you like. Honestly I'm not sure what forum this belongs in (Mathematics? Topology? There's no "geometry" forum, heh), but the application of it is astronomical and has to do with orbits and launch windows, so I figured there'd be some expertise, here, at least.

Context/Application:
///
I got the full realism overhaul on Kerbal Space Program, and I'm planning a mission that involves a docked two-craft assembly inserting into a low orbit over Io, undocking, the lander landing then launching again to conduct a rendezvous with the orbiter, a la' Apollo. The only problem is, I can guarantee I won't be in an equatorial orbit, and I want to be a stickler for realism and get back up before radiation doses build up too much. Issue is, Io spins, so I'm no longer under the orbiter's orbit if I stay too long. But I've started to realize, that the launch windows to get into the correct orbital plane are a bit complicated to figure out, and that I could use my latitude to pick how long until that launch window opens again.

So I'm trying to figure out how to determine that launch window. If I can find this angle, then it's really simple math based on how quickly Io spins, to pick my latitude for a certain surface stay time.
///

The problem itself:

I've got an orbit inclined by a certain amount [itex]I[/itex]. I need to find the longitude/angle in-between the two points that this orbit intersects at any particular latitude. I'll call this angle [itex]\theta[/itex].

First step, to simplify the problem, I assumed that I could stretch out the sphere to a cylinder while preserving the relationship of theta to other relevant features (ie, inclination and latitude), so long as the orbit is stretched as well.

NsMRbeb.png


Next, I realized that viewed from above, the orbit and the planet are a circle (this is why the cylindrical projecting happened - if I'd viewed this from above without it, then the orbit would be an ellipse and this would be much more difficult).

mvLyYAH.png


And the angle suddenly became, instead of a complex problem in 3d space with a globe and an inclined circle, a simple problem of a 2d circle. "I know the math for this!"

If I use the center of the circle as the origin, then [itex]\phi = acos(\frac{x}{r})[/itex], and [itex]\theta = 2\phi[/itex] . Given an x-coordinate, I could find [itex]\theta[/itex]! So how to find that?

Well, there's an illustration here I haven't covered yet. Viewed on the X-Z plane, the relationship in-between [itex]z[/itex] and [itex]x[/itex] is obvious.
[itex]tan(I) = \frac{z}{x}[/itex], [itex]x = \frac{z}{tan(I)}[/itex]

Subbing back in,

[itex]\frac{1}{2}\theta = \phi = acos(\frac{z}{r tan(I)})[/itex]

And for z, I simply had to remember that I'm working with a cylinder instead of a sphere. My vertical distance from the equatorial plane ([itex]z[/itex]) is simply given by my radius and my latitude ([itex]\varphi[/itex]) :

YBfs19F.png


*illustrating how despite the fact I've moved onto a cylinder, rather than a sphere, "latitude" still retains meaning, and how it carries over and its trigonometric relations.

[itex]tan(\varphi) = \frac{z}{r}[/itex]

Which leads to:

[itex]\theta = 2acos(\frac{tan(\varphi)}{tan(I)})[/itex]

Where [itex]I[/itex] is the inclination of the orbit to the equator, and [itex]\varphi[/itex] is the latitude.

So, did I get it right? I've shown that this is the case for a cylinder, but I'm wondering if my initial assumption about warping the sphere into a cylinder holds.

I'm just starting my Sophomore year as an undergraduate for "Physics-Astronomy," and I can't help but shake the feeling that this is a little bit what it must feel like to do original research, except it would be far more complex and something nobody's done before :p

A ton of fun, nonetheless. Note, I titled the thread more generally (and only after I wrote the main body of text) because I'm going to be doing a lot of these little things, all generally about orbital mechanics. I'm encountering a huge number of these problems as I plan this mission in Kerbal Space Program (gravity assists, finding relative inclination in-between two orbits given their LAN and [itex]I[/itex] to a parent body, how to find out when to launch to enter the ecliptic plane from a launch site at [itex]\varphi[/itex] latitude, etc.), and I figured I'd might as well keep it in one thread.
 
Last edited:
Astronomy news on Phys.org
  • #2
I'm sorry you are not finding help at the moment. Is there any additional information you can share with us?
 
  • #3
Greetings
I, like you, find Kerbal to be exciting and fascinating and I'm glad it has enjoyed great popularity and even among serious scientists. However, you may find it difficult to get serious scientists to get very involved in helping you answer specific questions because afaik, it still lacks some rather serious attributes and has others just wrong. It is still an impressive learning tool and a more than merely impressive game and a superb proof of concept that will undoubtedly improve and be improved upon by others.

Wikipedia-Kerbal_Space_Program said:
Kerbal Space Program despite of being advertised as a simulator contain numerous issues with physics, and depth of simulation diminishing its value as a learning tool.[1][26][25][30][31][32]

Notable inaccuracies include the incorrect physics modeling, including lack of N-body simulation, conservation of momentum, phantom forces, an impossible densities of planets and an incorrect thrust calculation. Aerodynamics are also modeled incorrectly, game lacks of reentry heat simulation, all equipment is perfectly reliable, and game lacks any simulation of life-support, radiation or any of the effects of spaceflight on a living organism.

Until they rewrite the physics engine, this may be a show-stopper for serious inquiry beyond basics. It certainly complicates things and makes it difficult not only to get beyond a certain point but to see when the game data stacks up to diverge from reality sufficiently to have no solid meaning.

Still, I salute you for tackling the learning curve, and the several youtube videos I have watched do correct some commonly held misconceptions. It seems an important milestone in many ways.
 
  • #4
enorbet said:
Greetings
I, like you, find Kerbal to be exciting and fascinating and I'm glad it has enjoyed great popularity and even among serious scientists. However, you may find it difficult to get serious scientists to get very involved in helping you answer specific questions because afaik, it still lacks some rather serious attributes and has others just wrong. It is still an impressive learning tool and a more than merely impressive game and a superb proof of concept that will undoubtedly improve and be improved upon by others.
Until they rewrite the physics engine, this may be a show-stopper for serious inquiry beyond basics. It certainly complicates things and makes it difficult not only to get beyond a certain point but to see when the game data stacks up to diverge from reality sufficiently to have no solid meaning.

Still, I salute you for tackling the learning curve, and the several youtube videos I have watched do correct some commonly held misconceptions. It seems an important milestone in many ways.

How did I miss this reply? Well, I came to refer back to this and saw this new reply here, so better late than never?
The question is really more of one about real-world mechanics than Kerbal mechanics. I'm mostly curious if this holds up in reality. But, given an accurate simulation of 2-body mechanics and 3d geometry, then everything else on here should follow...

And interestingly enough, there's a really neat set of mods that addresses most of these departures from reality. http://forum.kerbalspaceprogram.com/threads/99966.
Using the full set adds:
-N-body simulation
-Microdragging
-Accurate planets (By using data pulled from NASA's archives even on planetary alignment - launch windows occur at real world dates where T-0 in the game is New Year in Greenwich, 1954, iirc)
-Corrected thrust and specific impulse simulations
-Corrected aerodynamics
-Corrected Re-entry heating
-Simulation of life support
-Accurate engines modeled after/very closely off of real-world counterparts (including lack of throttle-ability and limited ignitions (generally 1))
-Ullage simulation
-Realistic parachute simulation
-Communications considerations
-Light-lag command considerations for unmanned crafts

Though notably it still lacks the effects of microgravity and prolonged spaceflight conditions on the human body, as well as systems failures. Some patchwork sort of solutions would be to use the centrifuge habitat module, and the http://forum.kerbalspaceprogram.com/threads/64442 that includes that also throws in extra mass for simulated radiation shielding. But for a game it's still quite impressive.
 
  • #5


As a fellow scientist, I can definitely understand the excitement and satisfaction of figuring out a complex problem like orbital mechanics. It's great that you're striving for realism in your simulations and taking into account factors like radiation doses and planetary rotation.

From what I can see, your approach to finding the launch window appears to be correct. By stretching the sphere into a cylinder and simplifying the problem to a 2D circle, you were able to apply the relevant math and find a solution. However, I would suggest double-checking your calculations and equations to ensure accuracy. Also, keep in mind that this approach may not work for all orbital scenarios, so it's always good to have multiple methods for solving problems in orbital mechanics.

Overall, it seems like you have a good understanding of the concepts and are making good progress in your research. Keep up the good work and don't be afraid to reach out for help or clarification when needed. Best of luck with your mission in Kerbal Space Program and your studies in physics-astronomy!
 

1. What is orbital mechanics?

Orbital mechanics is the study of the motion of objects in orbit around a celestial body, such as a planet or a moon. It involves understanding the forces and trajectories that determine the path of an object in space.

2. Why is orbital mechanics important?

Orbital mechanics is important for a variety of reasons. It is crucial for space exploration, as it helps us understand how to launch and maneuver spacecraft in orbit. It is also essential for satellite operations, weather forecasting, and understanding the behavior of celestial bodies.

3. What factors affect orbital mechanics?

The main factors that affect orbital mechanics are the mass and velocity of the object in orbit, the mass and gravitational pull of the celestial body it is orbiting, and the distance between the two objects. Other factors such as atmospheric drag, solar radiation, and gravitational interactions with other objects can also have an impact.

4. How do you calculate orbital mechanics?

Calculating orbital mechanics involves using mathematical equations and principles, such as Newton's laws of motion and Kepler's laws of planetary motion. It also requires precise measurements of the relevant factors, such as the mass and velocity of the object in orbit and the gravitational pull of the celestial body.

5. What are the challenges of understanding orbital mechanics?

One of the main challenges of understanding orbital mechanics is the complex and dynamic nature of celestial bodies. Many factors can influence the motion of objects in orbit, making it difficult to predict and calculate their trajectories accurately. Additionally, the vast distances and speeds involved in space can also present challenges in measuring and observing objects in orbit.

Similar threads

  • Astronomy and Astrophysics
Replies
4
Views
2K
  • Astronomy and Astrophysics
Replies
1
Views
1K
Replies
3
Views
430
  • Astronomy and Astrophysics
Replies
3
Views
3K
  • Advanced Physics Homework Help
Replies
4
Views
2K
  • Advanced Physics Homework Help
Replies
21
Views
1K
  • Astronomy and Astrophysics
Replies
2
Views
3K
  • Astronomy and Astrophysics
Replies
1
Views
1K
Replies
7
Views
969
Back
Top