Oblique shock is observed in supersonic flows where flow encounters a wedge that subsequently changes the flow direction and compresses the flow. The shock angle and wedge angle, denoted as *β* and *θ* in the above figure (flow from left to right), are related to one another as:

Here *M* is the Mach number of the encountering flow, and the relation is plotted in the following figure.

As you can see, for each wedge angle, there are two shock angles. A shock with larger angle is called strong shock and smaller angle is called weak shock. In most of the cases, weak shock is prevalent (when Mach number goes from larger to smaller across a shock, the shock is weak shock). Using Flowsquare, such a supersonic flow can be simulated adequately. Using the input files (bc.bmp and grid.txt) below, you can simulate a following supersonic flow.

**Computational time:**1 min/1000 steps

**Boundary Condition:**bc.bmp

**Initial Condition:**—

**Parameters:**grid.txt

If you measure the angles (*β*=47 deg and *θ*=15 deg), **the difference from the theoretical value is within 1 degree!**