How to model Solar System formation accurately and realistically

Click For Summary
SUMMARY

This discussion focuses on the development of a crude N-body simulator for modeling Solar System formation, utilizing 300 particles initialized with randomized positions and velocities. The simulation incorporates inelastic collisions to allow particles to merge, ultimately stabilizing into a few larger bodies. Key concerns include the accuracy of gravitational softening and the relevance of two-body relaxation time in collisional versus collisionless systems. The participant seeks insights on gravitational softening's advantages and potential errors, as well as suggestions for enhancing the simulation's realism.

PREREQUISITES
  • N-body simulation concepts
  • Gravitational softening techniques
  • Understanding of collisional and collisionless systems
  • Basic knowledge of Newtonian physics
NEXT STEPS
  • Research the implications of two-body relaxation time in astrophysical simulations
  • Explore existing open-source N-body simulation software for potential improvements
  • Study the Nice model for insights into Solar System formation
  • Investigate advanced techniques for energy dissipation in gravitational collapse
USEFUL FOR

Astronomers, astrophysicists, and software developers interested in simulating celestial mechanics and the formation of planetary systems.

Joshua Benabou
I've been working on a crude N-body simulator which allows N bodies of equal masses to interact gravitationally in 2 dimensions. My goal is to model the formation of Solar System.

Each body is modeled as a circle with a radius as a function of its mass, in such a way that all bodies have the same density.

When two bodies collide, i.e their radii overlap, they stick together inelastically (but momentum is conserved).

I have initialized the simulation with N=300 particles, and initial positions and velocties randomized (all positions bounded to a certain rectangular window, all velocties of the same modulus).

As the simulation progresses, particles move about, collide and form larger particles, and after some time the system appears to reach a stable state in which the number of particles is very few, usually between 2-5 (the most common case is a planet-sun system)

-----------------------------------------
I've taken care of the efficiency of the code (by implementing Barnes-Hut). However I am now concerning myself with the accuracy/realism, especially with respect to two issues:

---------------------------------------------
I have read online about collisional and collisionless systems. Apparently a small globular star cluster is collisional, but the stars in a galaxy or dark matter particles in a galazy are collisionless. Apparently whether the system is collisional or not is related to the "two-body relaxation time", which I don't understand either.

- **Is the formation of a Solar System a collisional problem? Is the relaxation time relevant for my simulation? How would this change if I wanted to model the evolution of a galaxy?**

-------------------------------------------------------------------------------
**II.**
I've read online about "gravitational softening" whereby Newton's law $F=\frac{Gm_1m_2}{r^2}$ is replaced by $F=\frac{Gm_1m_2}{r^2+\epsilon^2}$ for some constant $\epsilon$ which is small compared to the distances involved in the simulation.

As I understand it, the purpose is to bound errors in the simulation due to close encounters between bodies: if $r$ is small, the accelerations are large, but since the time resolution is finite, the error grows.

I've tested the effect of softening for $N=3$ particles intialized at the vertices of an equilateral triangle with equal speeds (Lagrange's peridic solution to the N-body problem). The configuration is supposed to be symmetric, with the particles moving on ellipses which form $120$ degree angles with each other and share a common focus. But since all three particles come very close together at their perigees, errors grow and eventually the symmetry collapses and the planets go haywire.

Introducing softening didn't seem to make much of a difference. It seems to prevent large-angle scattering, but it leads to errors which grow overtime and destroy the symmetry of the Lagrange configuration anyways.

Now I'm not sure relevant this test is for my solar system sim because it is almost impossible to have close encounter of three particles simultaneously.

My question is thus:

-**What is the advantage of gravitational softening? Doesn't it create errors which grow overtime? Should I be using it in my simulation?**
------------------------------------------

-**Finally, any other things I should be considering in my simulation/ general suggestions?**
 
Astronomy news on Phys.org
I would search for already existing open-source simulations. If they exist, why reinvent the wheel when you can take existing, imperfect one and help improve it?
 
nikkkom said:
I would search for already existing open-source simulations. If they exist, why reinvent the wheel when you can take existing, imperfect one and help improve it?

No. I'm not going to read through other people's code. Second, this is my project - to make the simulation myself and see how far I can get.
 
But the solar system did not begin with N bodies. It started as a cloud of gas and dust.

I'm sure you know that, so I'm puzzled about your goals with an N body simulation.
 
anorlunda said:
But the solar system did not begin with N bodies. It started as a cloud of gas and dust.

I'm sure you know that, so I'm puzzled about your goals with an N body simulation.

Well a cloud of gas and dust is a system of N bodies for N very very large. Since the computer can't deal with that many particles, what I'm simulating (if N is on the order of 10,000 say) is more the formation of a Solar System starting from planetisemals.

And indeed, even though the assumptions of the model I'm using in my code are super simplistic, I already got a Solar System with a sun and 3 orbiting planets moving in apparently stable elliptical orbits, with one of these planets having a moon!

Modeling solar system formation is one of the main uses of N body simulations, is it not? See for example the Nice model.
 
But a key to gravitational collapse is the ability to radiate away energy. If you model only the gravity of N rigid bodies, energy will be conserved and collapse shouldn't happen. Right?
 
anorlunda said:
But a key to gravitational collapse is the ability to radiate away energy. If you model only the gravity of N rigid bodies, energy will be conserved and collapse shouldn't happen. Right?

Indeed, but as I said, my code allows the particles to collide inelastically, so this is where the energy is lost...
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 21 ·
Replies
21
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
6K