Relaxation of chemically-reacting air behind a shock


This example computes the relaxation of air due to chemical reactions which occurs behind a strong shock. The free stream air is travelling at Mach 12.3. This calculation was first presented by Marrone. The calculation presented here uses a newer set of reaction rates as compared to those used by Marrone. The details of this calculation can be found in Section 4.4.2 of the author’s thesis.

This example is found in the code collection at:



User-built files:

Input file for Poshax3.
Input file for describing the gas model.
User-built input file containing chemical reaction rates.
A script to execute the example and plot results.

Gas model input file:

Gas model input file for direct use by Poshax3. This file is created using the gasfile program.

Output file:
Output file from Poshax3 calculation. This contains flow properties as a function of distance downstream of the shock. This file is only available after running the calculation.

Data files:

Mole profiles of various species as calculated by Marrone.
Flow property profiles (as ratio of free stream values) as calculated by Marrone.

Results files:

A Gnuplot input file for plotting of results.
Plot of mole profiles of air species (as a ratio of original moles).
Plot of temperature and density ratio.

Running the simulation

The steps to running and plotting results are contained in the script: This can be executed at the command line, from this working directory as:

> ./


The results of the calculation show how the flow properties and species concentrations vary as the flow relaxes downstream of the normal shock. The following figure shows the temperature and density ratio (normalised by free stream values) behind the shock. A comparison to Marrone’s data is shown and the equilibrium state as computed by CEA2 is plotted. The calculation comes to the correct equlibrium values as expected.


Temperature and density ratio behind a normal shock in air at Mach 12.3.

The next figure shows how the species concentrations change as the chemical reaction proceed behind the shock. Again the comparisons to Marrone’s calculations are shown and the equilibrium concentrations calculated with CEA2. The difference between the present work and Marrone’s results are attributed to differences in the thermodynamic data and reaction rates used in the two calculations.


Species concentrations behind a normal shock in air at Mach 12.3.

Table Of Contents

Previous topic


Next topic

Vibrational relaxation of chemically inert air behind a shock

This Page