T1: Free-fall collapse
first simulations

Before the tutorials:

As discussed in the lecture, structures in the universe collapse under their own gravity. This holds from the larges structures like galaxy clusters where dark matter dominates the potential down to star formation, where gaseous clouds collapse.

Units are important (and tricky). Typical units for cosmological strutures are choosen to be kpc for lengths, 1010 M for masses and km/s for velocities. Think about what this means for the time unit in such simulations.

During the tutorials:

Preparing the code, as in the first tutorial, copy it over. But before compiling, change the following settings in the Config.sh file:

Do not forget the module load XXXX commands before compiling.

As in the first tutorial, copy the parameter file and modify it to be non-periodic and choose a reasonable unit system and adapt the times according to your calculated free-fall time for the galaxy cluster:

Extend the program which you used last time to create a sphere of particles as a representation of a collapsing cloud for the galaxy cluster case. As you treat dark matter particles this time, set the particle number in npart[1] instead of index [0] as last time. You also do not need to create a rho field for the density.

Now you can run the simulation as last time and use the same tools to visualize the results.

Programming goals for T1:

Goal of this tutorial is that you learn better how to create initial conditions files
and how to plot the results from a simulation.

Solutions