Skip to content

exact Riemann solver for the compressible Euler equations in matlab

License

Notifications You must be signed in to change notification settings

YueWu2002/Euler_exact_Riemann

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Euler_exact_Riemann matlab code

Highlight

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.

Structure

  1. 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.
  2. Euler_exact_Riemann_sample.m: The sampling function, which evaluates the exact solution at user-input positions (mainly for the purpose of plotting).
  3. test.m: A simple script containing several different test cases.
  4. Folder examples: Contain some figure outputs that should be expected from running the test.m.

Examples

Lax shock tube Sod shock tube LeBlanc shock tube Double rarefaction I Double shock Double rarefaction II Vacuum middle state Vacuum left state