Simulating the gravitational interaction between two material points

AI Thread Summary
A computer model simulating the gravitational interaction of approximately 22,500 particles aims to replicate the clumping of matter into galaxies. The challenge lies in modeling the interaction accurately, particularly how to prevent particles from occupying the same space, as Newton's law leads to unrealistic scenarios where particles attract until they overlap. Suggestions include implementing a repulsion mechanism when particles are within a certain radius or merging them into a single particle upon close approach. The discussion also highlights the importance of considering collision dynamics, such as whether particles stick together or bounce apart based on their impact velocity. Overall, the conversation emphasizes the need for a more physical approach to modeling particle interactions in astrophysical simulations.
Signifier
Messages
75
Reaction score
0
Hello, I am trying to make a very rough computer model of the clumping of matter into galaxies in the large scale structure of the universe. As a starting point, I'm randomly distributing particles across a rectangle and then letting all the particles (about 22500 particles) interact via the inverse square law. The particles can be thought of as stardust clumps, "mass clouds," whatever you want to call them; the important thing is that they don't have an internal structure.

However, I'm curious as to how to exactly model the interaction between these particles. With Newton's law alone, the "particles" attract each other until they're a distance 0 apart; but of course with real matter the two particles cannot occupy the same space. How might one model this "same space" repulsion? What I have been doing is saying that once the particles get within a certain radius of each other, they stop attracting one another. It might be better to say that within some radius they begin repelling each other, but I'm not sure what this repulsion would look like. The way I'm doing gives me some interesting results but it seems arbitrary and unphysical (see attached gif).

This may not be the right place for this post, but I don't consider this purely or primarily a computer simulation question... Thank anyone for any suggestions or criticisms.
 

Attachments

  • cosm1.gif
    cosm1.gif
    25.3 KB · Views: 505
Astronomy news on Phys.org
Why would they repel? If 2 objects get too close to each other, presumably closer than the sum of their radii, just merge them into 1 particle with the combined mass and momentum of the original 2 objects.
 
Two objects will bump into each other if they approach closer than their radii. As far as whether or not they stick together after bumping, I would expect that it would depend on the velocity with which they collided - too fast, and they'd bounce off each other rather than stick. Without more information on the objects, I don't see how to make even a rough guess as to how to model whether the objects stick or bounce apart as a function of the impact velocity.
 
in HPC they use a smoothing coefficient which basically means its collisionless and you let them pass through or by each other.
...unfortunately my knowledge stops at that...
 
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
Thread 'Could gamma-ray bursts have an intragalactic origin?'
This is indirectly evidenced by a map of the distribution of gamma-ray bursts in the night sky, made in the form of an elongated globe. And also the weakening of gamma radiation by the disk and the center of the Milky Way, which leads to anisotropy in the possibilities of observing gamma-ray bursts. My line of reasoning is as follows: 1. Gamma radiation should be absorbed to some extent by dust and other components of the interstellar medium. As a result, with an extragalactic origin, fewer...
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
Back
Top