N-Body gravity simulation in 2D, 33000 particles

preview_player
Показать описание
~~~~~~~~~~~~~
| VIDEO LOG |
~~~~~~~~~~~~~
Number of particles : 33000

Max tree depth : 1024.000000
Gravitational approximation : 0.100000

Gravity : 0.010000
Gravity smoothing : 0.100000

Total mass : 0.500000
Mass variation : 25.000000

Initial radius : 50.000000
Initial rotation acceleration : 1.000000

Time step : 0.005000s
Simulation time : 8h 6m 5s
Simulated time : 2m 30s

Video time : 30s
Playback time scale : 5.00x
Simulation factor : 0.005143
Frame per seconds : 1.0fps
Рекомендации по теме
Комментарии
Автор

@kevroy314 I simply applied gravity equation, which proportional to particle masses and inversely proportional to the squared distance between particles. To acceleration computation I used ht eBarnes Hut which approximates a cluster of particles located far enough with a single particle which mass is the sum of the cluster mass and the position is the barycenter of the cluster.

VelRyphon
Автор

@TheJesseLenney No I did'nt try to simulate in astronomical scale. The reason is that values are far too big, and I did'nt want to do some trick in scale conversion. So I decided to normalize eveyrthing between 0 and 1. It's quiet generic. It can be multiplied by the factor you want, to get it at universe scale.

VelRyphon
Автор

It looks so 3d even though I think its 2d wow mind bending.

MrJTomer
Автор

i ur fan..of urs...
am new to creating simulation..
can u help me..which program to generate should i use data.and what should i use to simulate with?
u help will help me alot

paul
Автор

what method did you use? i'm just starting to get into n-body simulating and yours looks really nice. how fast is that computing? how did you end up handling the collision singularity?

kevroy
Автор

is it just me or does this look almost like atomic orbitals?

loggonable
visit shbcf.ru