Path: blob/master/activities/halos-catalog.ipynb
934 views
Task 2
This homework is an activity intended to practice the basic concepts of python and some of the functions offered by NumPy and Matplotlib.
Due to: Nov 08
The large-scale Universe
For this task, we are going to use a catalog of dark matter halos of a cosmological simulation of the large-scale Universe (The Bolshoi simulation). The catalog can be loaded from this link. The first, second and third columns are referred to the X, Y and Z coordinates of the halo in units of Megaparsec respectively (comoving coordinates). The last column is referred to the dark mass of the halo.
1. The Press–Schechter formalism: the number of objects of a mass range within a simulation of a portion of the Universe can be approximately predicted by the Press–Schechter formalism. The number of object with a mass between and is:
where is the mean matter density of the Universe, is the index of the power spectrum, the volume of the simulation and is a critical mass parameter.
Create a Python script that does the next:
Load the catalog of dark matter halos.
Using Matplotlib, generate and plot a histogram of log10(mass) for the halos, i.e., how many halos are per logarithmic mass range.
Plot in the same window the theoretical prediction of the Press-Schechter formalism using the next parameters:
Questions
Is it satisfied the Press-Schechter approximation for this simulation?
What is the resolution of the halos of the simulation? (This is, what is mass value of the smaller halo?)
Advice: use double logarithmic plots (loglog).
2. Distribution of massive halos: the more massive halos are generally located within high density regions of the large-scale distribution, like clusters and filaments. This is a consequence of the hierarchical structure formation, where small structures formed first and larger structures are made of the smaller ones.
Create a Python script that does the next:
Load the catalog of dark matter halos.
Select the more massive halos, namely .
Plot in a 3D scatter both, the complete catalogue of halos and the more massive halos (with different colours).
Questions
Is it verified the large-scale distributions of massive halos?
Where are they more likely to be?
How to plot a 3D scatter
For making a 3D scatter, it is necessary to import the package Axes 3D in order to activate the 3D plotting.
For this part, you should obtain something similar to this:
For both activities, you must deliver the codes as well as a short text file with the answer of the questions and possible comments you consider pertinent.
Bibliography
Press, William H., and Paul Schechter. "Formation of galaxies and clusters of galaxies by self-similar gravitational condensation." The Astrophysical Journal 187 (1974): 425-438.
Introduction to Computational and Programming Using Python, Guttag, J. V. The MIT Press. 2013.