Understanding Orbital Mechanics & Elliptical Paths

Click For Summary
The discussion focuses on modeling orbital mechanics in a 2D video game context, specifically how to adjust orbital paths when applying thrust. The user has successfully calculated orbital positions using parameters like semi-major axis and eccentricity, but seeks guidance on recalculating orbital elements after applying acceleration. Suggestions include using numerical integration methods, such as leapfrog or Euler, to update positions and velocities based on forces. Alternatively, an instantaneous acceleration approach could be used to determine a new velocity vector and recalculate the orbit. The conversation emphasizes the importance of understanding both analytical and numerical methods in orbital mechanics.
whiterook6
Messages
4
Reaction score
0
Hi. I was playing a video game where, in one level, you are in an orbit around an attractor. The game was 2D, so there's no inclination, etc. The game showed the projected path of the body around the attractor. When you used the games controls to thrust in a direction, it would show the projected path changing, to the point of turning red when you would eventually intersected the attractor.

I've been working on a project like this, where spacecraft orbit a planet or moon or something in an elliptical orbit. I can calculate the position along the orbit for any given time t, and can get the velocity from the vis-viva equation and the tangent to the ellipse at that point. To model the orbit I use a semi-major axis, eccentricity, mean anomaly at epoch, and argument of periapsis (I got a lot of this from wikipedia; many of the resources I've been pointed at have been over my head.)

If I apply an acceleration, I would expect the orbit to change. How can I recompute those orbital elements to show the new path?

Also, instead of using the Kepler elements, I could also just use the equations for an ellipse. Would those be easier for doing this sort of work?
 
Astronomy news on Phys.org


If you want to re-create the game idea you should look into numerical integration methods, e.g. leapfrog/euler:

For timestep n, use mass positions to calculate Force and then use that force to find particles new velocity and position
v(n+1/2) = v(n-1/2) + F*dt/m

x(n+1) = x(n) + v(n+1/2)*dt

where dt = timestep. Look it up for better explanation :-)

If you want to do it analyticaly, maybe a instantaneous acceleration to a new velocity vector and then re-calculate the orbit?

Hope it helps.
 
https://en.wikipedia.org/wiki/MoM-z14 Any photon with energy above 24.6 eV is going to ionize any atom. K, L X-rays would certainly ionize atoms. https://www.scientificamerican.com/article/whats-the-most-distant-galaxy/ The James Webb Space Telescope has found the most distant galaxy ever seen, at the dawn of the cosmos. Again. https://www.skyatnightmagazine.com/news/webb-mom-z14 A Cosmic Miracle: A Remarkably Luminous Galaxy at zspec = 14.44 Confirmed with JWST...

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K