Python Simulating Saturn's rings in python

  • Thread starter Thread starter El pollito pio
  • Start date Start date
  • Tags Tags
    Python Rings
Click For Summary
The discussion revolves around a school project involving a Python program to simulate Saturn's rings, specifically focusing on the Cassini Division and the moon Daphnis. Concerns are raised about the feasibility of achieving a realistic N-body simulation on a standard computer, suggesting that significant simplifications may be necessary. Participants recommend considering alternative topics, as questions like whether Daphnis is an alien spacecraft may not be suitable for academic exploration. They suggest exploring the complex orbits of moons like Epimetheus and Janus or the effects of a third body on a two-body system as more viable subjects. Technical advice includes the potential limitations of Python for high-performance simulations, advocating for languages like C or C++ for handling large numbers of particles and emphasizing the importance of correctly summing gravitational contributions to avoid errors. Additionally, resources like the JPL Horizons service are recommended for obtaining data on solar system bodies.
El pollito pio
Messages
6
Reaction score
0
Hi,

I have to write a program in python (for school) that simulates a specific structure. I choosed saturn's rings. I've started by wrinting an N-body code. My goals are explaining the divisions in saturn rings as cassini division. I don't know if it's a great subject. The teacher told us to choose an original subject. Well, i thinked about : Daphnis is it really an alien spacecraft or just a moon ?
If you have any suggestions, please i really don't know what subject to choose?

(Sorry for the english)
 
Technology news on Phys.org
I would be surprised if you get a realistic full ring simulation with n-body calculations on a reasonable computer. With some simplifications, maybe, like neglecting the gravitational forces between ring particles, effective potentials in the system of the nearby moon and so on.
El pollito pio said:
Well, i thinked about : Daphnis is it really an alien spacecraft or just a moon ?
Questions that can be answered that easily are bad topics.

The orbits of Epimetheus and Janus are interesting.
The orbit of the Moon around Earth is complex as well.
Cassini has an interesting orbit around Saturn, it comes close to various moons with tiny amounts of fuel.
 
How many particles are you going to have? Python does not sound like a good language for this, C or C++ would be way better. If you have more than even 100 particles, you are going to need to write something called a binary space partition to keep track of collisions and weight.
 
i would suggest a simpler problem. given that you have made n-body simulation for this, how about showing the effects a third body has on an otherwise perfectly periodic two body system?

if you want to get some starting data for actual bodies in the solar system there is the JPL horizons service for just this: http://ssd.jpl.nasa.gov/?horizons

i'd also point out the usual gotcha - make sure to sum all the contributions from the bodies before applying them, if you apply them in sequence you will get some spectacular error behaviour. :)

also take the language criticism with a pinch of salt. using things like math libraries in C/C++ is a pain, and the standard libraries are wastelands of garbage compared to something modern like Python. you sort of need them if you need really high performance... like 1000s of bodies interacting in real time (i.e. a ring simulation you can watch). if you don't need that then its just a great way to make things harder for yourself.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 19 ·
Replies
19
Views
2K