Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
COPYING.txt
NASA_logo.png
Origami-Universe-0.png
Origami-Universe-1.png
Origami-Universe-2.png
Origami-Universe-3.png
Origami-Universe-4.png
Origami-Universe-5.png
README.md
README.md~
convertimage.py
densmesh.txt
dots.png
foldmovie.gif
foldyourown.py
monalisa_folded.png
monalisa_small.png
slider_demo.py

README.md

FoldYourOwnUniverse

Python module to set the initial conditions of a 2D universe, and see approximately how that would evolve gravitationally.

An image such as the Mona Lisa

Mona Lisa

morphs gravitationally to

Mona Lisa (folded)

Usage:

Random cosmological initial conditions: python foldyourown.py

Use NASA logo for initial conditions: python foldyourown.py NASA_logo.png

Use Mona Lisa logo for initial conditions: python foldyourown.py monalisa.png

Input .png can be arbitrary; to specify approximate resolution, use the optional third argument, e.g.

python foldyourown.py NASA_logo.png 96

Science:

The radio button 'Zeldovich' refers to the Zeldovich approximation (Zeldovich, 1970), which returns a qualitatively accruate description of the cosmic web.

'NoCollapse' inhibits overcrossing, returning a 2D version of the spherical (circular, in 2D) collapse approximation (Neyrinck M., 2013, MNRAS, 428, 141, arXiv:1204.1326).

Project started at NASA's Space Apps hackathon event: https://2014.spaceappschallenge.org/project/fold-your-own-universe/

You can’t perform that action at this time.