Universe Sandbox

General Category => Everything Else => Topic started by: vh on January 20, 2016, 06:34:27 PM

Title: time
Post by: vh on January 20, 2016, 06:34:27 PM
i wrote a gravity simulator. 65536 bodies

once i get the parameters of the code fine-tuned, i'm going to try a one million body, ten thousand timestep simulation
Title: Re: time
Post by: vh on January 20, 2016, 06:36:50 PM
0 years

(https://dl.dropboxusercontent.com/u/42218552/years/0.png)
Title: Re: time
Post by: vh on January 20, 2016, 06:37:00 PM
3 billion years

(https://dl.dropboxusercontent.com/u/42218552/years/1000.png)
Title: Re: time
Post by: vh on January 20, 2016, 06:37:09 PM
6 billion years

(https://dl.dropboxusercontent.com/u/42218552/years/2000.png)
Title: Re: time
Post by: vh on January 20, 2016, 06:37:16 PM
9 billion years

(https://dl.dropboxusercontent.com/u/42218552/years/3000.png)
Title: Re: time
Post by: vh on January 20, 2016, 06:37:22 PM
12 billion years

(https://dl.dropboxusercontent.com/u/42218552/years/4000.png)
Title: Re: time
Post by: tuto99 on January 20, 2016, 06:44:45 PM
nice
Title: Re: time
Post by: Lord DC on January 20, 2016, 06:52:12 PM
i hope to be able to do this with SPH in US2 someday.
Title: Re: time
Post by: vh on January 20, 2016, 07:08:15 PM
i suggest using something like this instead

http://wwwmpa.mpa-garching.mpg.de/gadget/

Title: Re: time
Post by: atomic7732 on January 20, 2016, 07:08:57 PM
beautiful galaxies
Title: Re: time
Post by: Bla on January 21, 2016, 12:47:48 AM
Impressive. Do the edges wrap? Is everything equally distributed or (presumably something caused stuff to start clumping)?
Title: Re: time
Post by: vh on January 21, 2016, 06:38:13 AM
yup, edges wrap, and the force of gravity wraps too (that was a nasty implementation detail). everything starts on a uniform grid with slight perturbations to position and velocity