T4: The Riemann Problem:
try it out on your own

Before the tutorials:

As discussed in the Lecture, the Riemann Problem is the key pillar of Eulerian hydrodynamics and can not be solved fully analytically. In the lecture, we solved a special case of it. So, start with this picture

taken from Simulation Techniques for Cosmological Simulations. Now, think about:

Also, remember that we had the equation

with

to solve to get the solution for the pressure at the contact discontinuity (so pressure in sector 3 and 4). Think about:

During the tutorials:

You can start from the configuration of the code as obtained in T03 and collect some different particle distributions.

You can now write a program to set up a long slab (along the x-axis) which resembles your initial conditions.

Now you can run the simulation.

Programming goals for T4:

Goal of this tutorial is that you learn better how to create non-uniform initial conditions.

Solutions