Euler's fluid equation for Sod Shock tube is solved in 1 Dimension. The tube spans from -10 to 10 in spatial dimension. Barrier is at X=0 and left and right side of the tube have different initial conditions. Excellent description of Sod Shock tube including algorithm of Richtmyer method can be found at this link:
I have referred the above link in making this code.
Sathyanarayan Rao (2021). Numerical Solution of Euler's Equation for Sod Shock Tube using Richtmyer method. (https://www.mathworks.com/matlabcentral/fileexchange/48612-numerical-solution-of-euler-s-equation-for-sod-shock-tube-using-richtmyer-method), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!