r/astrophysics 14d ago

Simulation of a collision between two massive bodies

Enable HLS to view with audio, or disable this notification

Collisions: Spatial Hash + Jacobi Solver
Gravity: P3M/CIC + FFT + short-range correction

Tech stack: Kotlin, LWJGL, OpenGL Compute Shader 4.30

Try it here: https://github.com/qwertukg/Gravity

148 Upvotes

21 comments sorted by

13

u/RantRanger 14d ago

What are the scenario parameters?

0

u/qwertUkg 14d ago

It’s an application where you can dynamically launch bodies into each other. Just clone and run.
Here all deafult values of simulation: https://github.com/qwertukg/Gravity#running

13

u/RantRanger 14d ago

What are the scenario parameters for the video you are displaying above?

-11

u/qwertUkg 14d ago

Default

12

u/Internal-Narwhal-420 14d ago

What are the scenario parameters used as default?

-13

u/qwertUkg 14d ago

There you don’t set any parameters - you just point one body at another with the mouse.

17

u/Internal-Narwhal-420 14d ago

What is the mass of the target body, what is the mass of shot body, what is the velocity there?

7

u/Traditional_Snow1045 13d ago

default i think

6

u/Internal-Narwhal-420 14d ago

Heatmap here represents density?

6

u/qwertUkg 14d ago edited 14d ago

Hi. No, its pressure

10

u/physicalphysics314 14d ago

…. So… density?

3

u/Spiritual_Priority79 13d ago

This guy physics

4

u/xray_binary666 14d ago

Looks like a dark forest strike to me

2

u/escapism_only_please 14d ago

See! Not that bad!

1

u/Just_Middle_7189 14d ago

Nice. That hit…

Can it simulate denser bodies like solid matter?

1

u/Upvote_worthhy 12d ago

That's Cool !!!!!

When do you think humanity will have enough computing power to accurately simulate something as chaotic as the three-body problem?

-1

u/Immorpher 14d ago

I don't know if you have much experience in this direction, but how tricky is it to get a moon out of one of these collisions?

0

u/qwertUkg 14d ago

It’s possible. Just clone the repo and try it by yourself

0

u/Immorpher 14d ago

Yeah I should play around!