T8: Visualization of Galaxies in cosmological simulations

We are going to use Splotch to visualize galaxies out of the Magneticum simulations.

How to Prepare:

(This has to be done only once at the beginning !)

How to do your first image:

The galaxies_box4_uhr.txt and the galaxies_box4_uhr_ideal.txt files contains a list of interesting objects, defined by 5 numbers: SNR and SUB defines the file and X, Y and Z the coordinate. Here an example:

SNR SUB X Y Z
136 12 44319.5 11750.2 15495.4
136 9 24555.5 37925.5 41413.5
036 10 32042.6 44672.2 22093.5

Now, select a galaxy of the list, download the file needed and edit the demo.par file:

How to improve your image:

Now you have a large range of possibilities to influence the appearance of the result. In general, lines starting with # as well as unused or unknown parameters in the parameter file are ignored. ptypes=2 defines that you want to visualize two particles species and ptype0=0 defines that the first species are the gas particles of the simulation and ptype1=4 defines that the second ones are the star particles in the simulation. Accordingly, all parameters ending with 0 refer to the gas particles and the one ending with 1 are referring to the stellar particles.

How to make a movie:

Splotch allows you to create image sequences directly in a very simple way. You create just a file with the evolution of some of the parameters and Splotch will produce an image for each line in the file. So simply: When you now run Splotch files with increasing numbers will be created, which you can glue together as a movie after wards. For example you can set the camera position as a circle around the object, see the movie below.

How to explore the unknown:

Example Image/Movie::