How to add eccentricity to Kepler's Laws in cartesian

Click For Summary

Discussion Overview

The discussion revolves around incorporating eccentricity into Kepler's Laws for simulating elliptical orbits in a three-body system using Newton's Law of Gravitation. The scope includes computational modeling and programming language considerations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks to modify Kepler's Laws to include eccentricity for simulating elliptical orbits in a three-body simulator coded in Fortran95.
  • Another participant argues that Kepler's Laws do not apply to three-body problems and questions the relevance of eccentricity in the context of Newton's Laws of Gravitation.
  • A later reply suggests that the participant could consider using other programming languages for their project, mentioning Python and Java as alternatives to Fortran.
  • There is a discussion about the feasibility of live plotting results from a .dat file generated by the Fortran program, with suggestions that libraries or programs exist for this purpose.

Areas of Agreement / Disagreement

Participants express differing views on the applicability of Kepler's Laws to three-body problems, indicating a lack of consensus on this point. There is also a divergence in opinions regarding the choice of programming language.

Contextual Notes

Limitations include the assumption that Kepler's Laws can be modified for three-body systems, and the discussion does not resolve the mathematical implications of incorporating eccentricity into the simulation.

Who May Find This Useful

This discussion may be useful for students and developers interested in computational physics, orbital mechanics, and programming language choices for simulation projects.

AlphaBetaGamma96
Messages
3
Reaction score
0
Hi,

I'm currently making a three-body simulator and I'm trying to add the eccentricity to Kepler's Law to turn the circular orbits to more of a elliptical orbit? I'm using Newton's Law of Gravitational to plot the new positions. How would I add in the eccentricity to this equation? I'm currently coding it in Fortran95
 
Technology news on Phys.org
Kepler's laws do not apply to problems with more than two bodies. They can be some reasonable approximation in some cases but in general they do not work.
AlphaBetaGamma96 said:
I'm using Newton's Law of Gravitational to plot the new positions.
Newton's laws do not have any notion of eccentricity, so where is the problem?
AlphaBetaGamma96 said:
I'm currently coding it in Fortran95
Do you have to use Fortran? If not, try to avoid it.
 
  • Like
Likes   Reactions: AlphaBetaGamma96
Do you have to use Fortran? If not, try to avoid it.[/QUOTE]

Thanks for the reply! I'm currently doing a Computational Project at the moment for my degree. We are allowed to use any computational language, but I've only been taught in Fortran95. I'm considering learning another language at some point down the line, any recommendations? I'm trying to live plot the results so it can be seen as more of an animation.

The program writes out the points to a .dat file, could I then call this file to say a program in Python or Java and then live plot it?

(Sorry for kinda sidetracking from the initially stated question)

Thank you for your time! :D
 
AlphaBetaGamma96 said:
I'm considering learning another language at some point down the line, any recommendations?
Python is nice, Java is interesting, C++ has some advantages as well.
Fortran is just messy.
AlphaBetaGamma96 said:
The program writes out the points to a .dat file, could I then call this file to say a program in Python or Java and then live plot it?
There should be libraries or even whole programs to do that.
 

Similar threads

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