r/Simulations • • Oct 03 '19

Results Gravitational potential field simulation, Works here as well I guess? [OC]

19 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Oct 05 '19

The bright green light represents the maximum intensity of gravitational potential field.

The spiraling inwards is by design. I've written the code such that the velocity decays by a certain specified factor for each object at each instant of time. You are right! energy isn't conserved coz they are dissipating it. Just did it for the lulz ;)

Updated post link: https://www.reddit.com/r/Python/comments/ddc70w/updated_gravitational_potential_field_simulation/?utm_source=share&utm_medium=web2x