T0b: Introduction:
connecting, compiling, running, reading data

Before the tutorials:

As discussed in the Lecture, it is important to know the length scale on which the basic constituents of a medium interact. Start with the figure to think about and work out the following:

During the tutorials:

You will all use a shared computational resource (a USM compute cluster) and will use a job scheduling system to share the resources!

To do each tutorial, you need to follow some basic steps:

Step 1:
Connect to our machines (i.e., mpusm06.usm.uni-muenchen.de) and change into the directory you created (remember the individual steps done in T0a)
Step 2:
Set up the numerical experiment. (Note that there can be several numerical exercises in each tutorial.) To do so, there are 5 fundamental steps:
Step 2a:
Make a new directory for your experiment.
Step 2b:
Get the code.
Step 2c:
Get the configuration file (Config.sh) for the code.
Step 2d:
Get the parameter file (e.g., box.param) for the simulation.
Step 2e:
Get the job queue submission script (e.g., runme.sh).
Step 3:
Perform the numerical experiment. To do so, there are 6 fundamental steps:
Step 3a:
Modify the configuration file (Config.sh) for the code, i.e., change into Hydro-OpenGadget3 and set/unset the options needed for the current experiment.
Step 3b:
Compile the code (change into Hydro-OpenGadget3 and type make).
Step 3c:
Create the initial conditions for the numerical experiment you want to perform. Here you can use the programming language of your choice. We will always give examples, but not in all languages. So please get familiar with how to do this step. This is basically defining the domain and initialization of your experimental setup.
Step 3d:
Modify the parameter file (typically something.param) by specifying the details of your current experiment (i.e., give the parameter values tailored to the exact experiment).
Step 3d:
Prepare the submission script (e.g., runme.sh) for the experiment (that is, specify the name and the resources you want to use).
Step 3e:
Submit the script to the queuing system.
Step 4:
Visualize the results of the numerical experiment (when the simulation has finished running).

Repeat steps 2, 3, and 4 for the next experiment.

Step 1: Connecting

Step 2: Setup

Step 3: Perform the numerical experiment

Step 4: Visualize the results of the numerical experiment

You should see an image like this: You should see an animation like this, with particles moving from left to right:

Programming goals for T0:

Goal of this tutorial is that you learn how to use commands in a unix shell,
how to compile and execute a program,
how to write a simple program (concept of “main”),
how to define variables and calculate values in a program,
how to perform output from a program,
how to start a simulation, and
how to plot the results.

Running on other platforms

If you want to do the tutorials on an other platform (like your own PC), you need to have at least a C++ compiler installed and an MPI environment. In addition you need to have the gsl library available, plus whatever you want to use for creating your plots.

Further information

Description of the format of snapshot files.