galaxy flush reloaded
pan and zoom as usual
In 2006 Tim played around with swarm simulations in processing and ended up with funny flush like settings. We tweaked the parameters in such a way that it ended up looking like and sounding like a galaxy being flushed down the drain and made it into the art work “dipper galaxy flush” where dipper refers to the wellknown patterns in the constellation Ursa Major. Our comment wasn’t though referring to a particular galaxy there but to galaxies in general – which could include our own.
If you look at the processing code you see that Tim’s simulation doesn’t use e.g. Newtonian gravity, although Tim used a force which is similarily “centralizing” as dark matter.
Inspired by discussions about dark matter and dark energy and general relativity at John Baez’ social media I wanted to get a feeling of how important the feature of dark matter is in order to allow for galaxy formation.
The above is a realtime javascript simulation using purely newtonian gravity with no dark matter but two giant masses (indicated by blue circles, which size is not proportional to the smaller circles) and something that could be called an “inelastic binding”. That is if the distance between masses is smaller than some number then those “close-by” masses behave as if they stuck together as in an inelastic collision, or in other words: the velocity of a mass is set to be the weighted average velocity of the close-by masses (details in the code, how much inelastic collision you want is set by the parameter “mix”).
It was acutally not so easy to find a configuration which somewhat mimicks galaxies, but the above looks a bit as if, I find. If I find the time I may add a 3D viewer. Try yourself – the source code is open.
Here how a scientifically advanced galaxy simulation, which includes dark matter looks on a super computer: World’s first realistic simulation of the formation of the Milky Way and here an interview with the author Lucio Mayer. Just like us many other users think it looks like a filmed flush – if you read the comments.
Here another simulation by Fabio Governato on his youtube channel: The Formation of a Milky Way like Galaxy. He has a whole variety of galaxy formation videos.
remark: the simulation is a modification of Mike Bostocks canvas swarm simulation at https://bl.ocks.org/mbostock/2647922
update 1.12.2017: There was a mistake in the addition of the z-speed, which is now corrected in the above version. Luckily the correction did affect the overall appearance only slightly.