> For the complete documentation index, see [llms.txt](https://docs.gasflow-mpi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gasflow-mpi.com/2.-tutorials/2.2.1d-shock-tube.md).

# 2.2. Sod's Shock Tube Problem

{% hint style="info" %}
The 1D Sod shock tube, which can be solved analytically, is a Riemann problem used as a standard test problem in computational hydrodynamics.

\[1] G.A. Sod, A survey of Several Finite Difference Methods for Systems of Nonlinear Hyperbolic Conservation, Journal of Computational Physics, 1978 vol. 27, pp. 1-31.

\[2] J. Xiao, W. Breitung, M. Kuznetsov, H. Zhang, J. R. Travis, R. Redlinger, T. Jordan, “GASFLOW-MPI: A new 3-D parallel all-speed CFD code for turbulent dispersion and combustion simulations: Part I: Models, verification and validation”, International Journal of Hydrogen Energy, March 2017.

This tutorial demonstrates how to do the following:

* Launch the GASFLOW graphical user interface: GASVIEW.
* Create a new project.
* Generate the mesh using the built-in tool.
* Set numerical control parameters.
* Enable the second-order discretization scheme for improved predictions.
* Set gas properties, initial conditions and boundary conditions for a shock tube problem.
* Set physical model for a shock tube problem.
* Set output parameters for a 1D shock tube problem.
* Generate and check the GASFLOW input file, ingf.
* Set the remote GASFLOW server and run a calculation.
* Plot the calculation results.
  {% endhint %}

1\) GASFLOW input file

{% file src="/files/v7kCiiOgFV5VDQuj3wc5" %}

2\) GASFLOW results files

{% file src="/files/AeEYwqe4XKRWUAEIuXr3" %}

{% file src="/files/ZwTCRjuli9Vo6xaNLq7q" %}

3\) Comparison to the analytical solutions

{% content-ref url="/pages/GGjiM9hBn4Db1LggvvtK" %}
[\[AS-FD 2\] Transient Compressible Flow](/5.-verification-and-validation/5.1.-fluid-dynamics/as-fd-2-transient-compressible-flow.md)
{% endcontent-ref %}

<figure><img src="/files/cJ9utel9CepTyfctkBTN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/j24KRctkN4BX5GmEVWtJ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/qFpgIKSiM2ob06edSrYM" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/VKkT7bpl2ovj0YXEz01m" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LeYjgsYQccS68L6lI24e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/YYbi2iBT212lab5YCN9t" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PPoOMmdXF6UpZotMmuto" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4T7kDBKCy2HxBz9S49DU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5KZu9zkCuSZmKul985AC" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/UKs1IeLDeWbWO1HEmJKf" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iPU00OgBaHJDNwSzlROA" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/EjnGs3fO3IuJGnVbEBFH" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Uf6mI0lxKwdMlmD2l5w2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FkSBuqYF0XSoPHkaPx4O" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iKOnuaT4LU4BwHEt8SX8" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ZmmzCW0Rh7KHJFtPnrAr" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/w3fY7RMho2raNe4jeCZy" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4HZhjnVaJbOYqRlWIqUF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/lw22Ugk31hZvcg5pfwSI" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/fhW2snvjUju36CMyfyga" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/j3RB837vzJsX3dDSOKek" alt=""><figcaption></figcaption></figure>
