Plotting Two Masses' Orbit Using Ellipse Equation and Initial Conditions

  • Thread starter Thread starter ice109
  • Start date Start date
  • Tags Tags
    Kepler
Click For Summary
SUMMARY

This discussion focuses on plotting the orbit of two masses using the ellipse equation and initial conditions. The masses involved are 1 kg and 0.931 kg, with specified initial positions and velocities. Key equations include the relative position vector \(\mathbf{r} = \mathbf{r_1} - \mathbf{r_2}\), the eccentricity formula \(\varepsilon = \sqrt{1 + \frac{2EL^{2}}{k^{2}\mu}}\), and the energy equation \(E = \frac{\mu \dot{r}^2}{2} - \frac{k}{r} + \frac{L^2}{2\mu r^2}\). The user is attempting to plot the orbit by evaluating constants of motion \(E\) and \(L\) at the initial conditions.

PREREQUISITES
  • Understanding of orbital mechanics and conic sections
  • Familiarity with the equations of motion for two-body systems
  • Knowledge of gravitational constant \(G\) and its application in orbital calculations
  • Proficiency in plotting mathematical functions using software tools
NEXT STEPS
  • Learn how to calculate constants of motion \(E\) and \(L\) for two-body systems
  • Explore numerical methods for plotting orbits in software like Python with Matplotlib
  • Study the implications of eccentricity in orbital mechanics
  • Investigate the effects of varying initial conditions on orbital paths
USEFUL FOR

Students in physics and engineering, particularly those studying orbital mechanics, as well as anyone interested in simulating gravitational interactions between two masses.

ice109
Messages
1,708
Reaction score
6

Homework Statement



plot the orbit of two masses using the equation for an ellipse and coordinate system at one of the foci

Masses Initial Positions Initial Velocities
i mi x1 x2 x3 v_1 v_ 2 v_ 3
1 1 0.651 0.585 -0.238 -0.755 -0.828 -0.865 -0.726
2 0.931 -0.096 0.000 0.357 -0.209 0.107 -0.660


Homework Equations



[tex]\mathbf{r} = \mathbf{r_1} - \mathbf{r_2}[/tex]

[tex]r=\frac{a\cdot(1-\varepsilon^{2})}{1+\varepsilon\cdot\cos\theta};\,\![/tex]

[tex]\varepsilon = \sqrt{1 + \frac{2EL^{2}}{k^{2}\mu}}[/tex]

[tex]L=\left|\mathbf{L} \right|=\left| \mathbf{r} \times \mathbf{p}\right|[/tex]

[tex]\mu = \frac{1}{\frac{1}{m_{1}} + \frac{1}{m_{2}}} = \frac{m_{1}m_{2}}{m_{1} + m_{2}}[/tex]

[tex]E =\frac{\mu \dot{r}^2}{2} -\frac{k}{r} + \frac{L^2}{2\mu r^2}[/tex]

[tex]k = - G m_1 m_2[/tex]



The Attempt at a Solution



so all i have to do is plot r a function of theta which seems simple enough. the equation for the conic section only has two parameters i don't know E and L. so from what i understand both are constant of motion so i was so i can just evaluate them at the initial conditions plug them into, the formula and plot? am i right?

to check i calculated the eccentricity: 1.11843. could someone check to make that's one should get for the relative orbit of the light one to the heavier one?
 
Last edited:
Physics news on Phys.org
anyone?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K