Skip to content

Shock generator and regular reflection ​

IDMilestoneTypeLegsBackendsFigure
SG#121 · S3, S4aPsg1–sg4 (boundary)CPU, FNLyes

Case and scope ​

[bc_y_max] type = shock-generator (boundary conditions) brings an oblique shock in through the top face. The legs measure the shock it makes against the oblique-shock relations (S3) and its regular reflection off a slip wall (S4a), with shockgen_oracle.py, which solves the relations on its own. These sg legs belong to src/tests/flume/verification/boundary/check.sh, not to the subgrid-scale models.

Setup ​

Setup
box, cells[0,2]×[0,1]×[0,0.25], 64×32×8, 8 blocks, periodic z (96×48×8 for sg4)
gasEuler, γ=1.4, ρ=1, p=1/γ (c=1), Mach 2 along x
boundaryinflow at x=0; extrapolation at x=2 and y=0 (wall-inviscid for sg4); shock-generator at y=1, deflection 10∘ from shock_x = 0.5 (β=39.314∘, p2/p1=1.70658, ρ2/ρ1=1.45843)
schemeWENO-U-5 characteristic, SSP-54, CFL 0.5, 2 ranks, to t=2.5 (steady; t=5 for sg4)
scriptsrc/tests/flume/verification/boundary/check.sh

Results ​

LegCaseOracleMeasured (CPU; FNL the same to the digits shown)
sg1the shock by its deflectionthe uniform region behind it (16 cells off the shock, 4 below the streamline from its foot, above y=0.2): p and ρ within 3e-3 of Rankine–Hugoniot, the flow angle within 0.05∘; the shock angle fitted from where p crosses (p1+p2)/2 along the rows within 0.3∘p 1.47e-3, ρ 1.22e-3, angle 0.026∘; β 39.322∘, the foot at x=0.496
sg2the same shock by its angle (shock_angle 39.313932)as sg1the same digits
sg3a shock entering beyond the box (shock_x 3)equal to an extrapolated top bit for bit0 of 64 datasets differ
sg4the regular reflection off a slip wall (S4a): wall-inviscid at y=0, shock_x = 0.1 (the shock meets the wall at x=1.321), t=5behind the reflected shock (8 cells off it and off the wall) p and ρ within 4e-3 of the exact p3/p1=2.80319, the flow parallel to the wall within 0.1∘; the reflected shock's angle to the wall within 0.3∘ of 39.384∘p 2.10e-3, ρ 1.50e-3, 0.062∘; 39.437∘, its foot at x=1.324

The incident shock ​

The shock generator at Mach 2

Left: p/p1 in the x-y plane of leg sg1; dashed, the shock of the theory from its foot; dotted, the streamline from the foot. Right: p/p1 and ρ/ρ1 along the row y=0.484 against the step of Rankine–Hugoniot at the theory's shock.

What it shows.

  • The shock is where the relations put it. Its angle is within 0.01∘ of β, and it meets the top within a cell of shock_x; behind it the state is Rankine–Hugoniot's within 1.5⋅10−3.
  • What the oracle leaves out, and why. The captured shock leaves oscillations of a few 10−3 that decay over 16 cells behind it (the staircase of an oblique shock on a Cartesian grid). The jump of the ghost state at shock_x leaves an entropy streak along the streamline from the foot (ρ 7e-3 off, the pressure continuous). Where the shock leaves through the extrapolated bottom, the corner downstream sits up to 4 % high: an extrapolated face crossed by an oblique shock is not clean. In a shock/boundary-layer interaction the shock meets the wall instead.

Regular reflection off a slip wall ​

The regular reflection off a slip wall

Leg sg4. Left: p/p1 in the x-y plane; dashed, the incident shock of the theory; dotted, the reflected one (M2=1.641, turned back by 10∘). Right: p/p1 along the row y=0.260 against the steps of the exact regular reflection.

What it shows.

  • The reflection is the exact one. Behind the reflected shock the state is within 2⋅10−3 of p3/p1=2.803, the flow parallel to the wall within 0.06∘, and the reflected shock lies within 0.06∘ of its angle, its foot within a cell of where the incident shock meets the wall.
  • It needs the steady state. At t=2.5 the region behind the reflected shock is still 6 % low near the outflow: the reflected shock forms at the wall and straightens outward, so the leg runs to t=5.

The viscous interaction with a turbulent boundary layer is S4b.