Compute the exact Riemann solution of the 1D compressible Euler equations (only for ideal polytopic gas) and store key physical quantities so that the exact solution at any point can be retracted using these quantities. Good and easy-to-use enough for plotting, code verifying and teaching. Support vacuum and zero-temperature/pressure inputs and outputs. Available to output the free boundary speed in the presence of vacuum. Quite rubost.
Euler_exact_Riemann_core.m
: The core function to compute some parameters that cahracterizes the solution, which can then used to analytically compute the solution at any point.Euler_exact_Riemann_sample.m
: The sampling function, which evaluates the exact solution at user-input positions (mainly for the purpose of plotting).test.m
: A simple script containing several different test cases.- Folder
examples
: Contain some figure outputs that should be expected from running thetest.m
.