Chemically reacting flow in converging and diverging combustion chambers