Keywords:
hydrodynamics, magnetohydrodynamics, Riemann problem, shock tube
This example computes shock tube problems for both hydrodynamic and magnetized flows. In essence, a shock tube is a 1D Riemann problem driven by discontinuous left and right states. Here, we provide a range of specific shock tubes for an ideal gas, including examples due to Einfeldt, Sod, Liska & Wendroff, Brio & Wu and Ryu & Jones. Further details, including reference solutions can be found in Stone et al. The Astrophysical Journal Supplement Series, Volume 178, Issue 1, article id. 137-177, pp. (2008).
This simulation can be performed with a USimBase license.
The Shock Tube example is accessed from within USimComposer by the following actions:
The basic example variables are editable in the Editor pane of the Setup window as described below. After any change is made, the Save and Process Setup button must be pressed again before a new run may commence.
The input file allows the user to set a variety of problem parameters related to the physics, initial conditions, domain and solver used for solving a shock tube problem.
The following parameters control the initial conditions of the shock tube:
The following parameters control the dimensionality, domain size and resolution of the simulation:
The following parameters the length of the simulation and data output:
The following parameters control the USim solvers used to evolve the Kelvin-Helmholtz instability:
After performing the above actions, continue as follows:
You will also see the engine log output in the Logs and Output Files pane. The run has completed when you see the output, “Engine completed successfully.”
After performing the above actions, continue as follows:
Drag the slider at the bottom of the Visualization Results pane to Dump 10 to see results at the end of the simulation, as shown in Fig. 80.