leios / simuleios

Simulations for LeiosOS
https://www.youtube.com/user/LeiosOS
MIT License
198 stars 45 forks source link

Negative time results in make_list #10

Closed arfio closed 9 years ago

arfio commented 9 years ago

I read the MD paper linked in the readme file and i didn't understand how the equations were implemented. I got negative results and when i changed the calculations the time values were all positive. I did some testing and here are my results : Particle number : 10000 ; box_length = 100 ; radius = 0.1 ===> Total collision = 552 Particle number : 1000 ; box_length = 100 ; radius = 0.1 ===> Total collision = 5 Particle number : 1000 ; box_length = 10 ; radius = 0.1 ===> Total collision = 574 Particle number : 1000 ; box_length = 10 ; radius = 0.01 ===> Total collision = 4

arfio commented 9 years ago

Oh on some settings, i'm still getting some negative time results (Particle number : 100 ; box_length = 1 ; radius = 0.01 ===> Total collision = 6)

leios commented 9 years ago

Also: Because these are randomly generated numbers, you should be getting a different number of collisions every time, if that helps. I need to go through the equations once more...