Riemann problem for shallow water equations

The left figure shows the phase plane and the location of the middle state based on the left state and right state. You should be able to click on either of the states and drag it to a new location.

The plots on the right show the resulting Riemann solution as a function of x at one particular time (the solution is self similar). Note that depending on the relative location of the left and right states, the waves may be shocks and/or rarefaction waves.

Thanks to Mauricio del Razo Sarmina for developing the javascript for the interactive phase plane pages.