SPH Sod shock tube
What you are seeing: a one-dimensional smoothed-particle hydrodynamics (SPH) simulation of the Sod shock tube. The membrane at separates a high-pressure left state (, , ) from a low-pressure right state (, , ). At the membrane is removed.
The exact Riemann solution has three waves: a left-moving rarefaction fan (where the gas accelerates and rarefies), a contact discontinuity in the middle (where density jumps but pressure and velocity are smooth), and a right-moving shock (where density, pressure, and velocity all jump). The SPH method represents the fluid as 360 Lagrangian particles smoothed by a cubic-spline kernel; the artificial viscosity is what allows it to capture the shock.
speed2
fieldrho
WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.