Shock Notes
Shock Notes
Shock Notes
Reading: Ryden chs. 3 & 4, Shu chs. 15 & 16. For the enthusiasts, Shu chs. 13 & 14.
A good article for further reading: Shull & Draine, The physics of interstellar shock waves, in
Interstellar processes; Proceedings of the Symposium, Grand Teton National Park, WY, July 1-7,
1986 (A88-14501 03-90). Dordrecht, D. Reidel Publishing Co., 1987, p. 283-319.
Shocks can also be produced by any supersonic compressive disturbance. This is the more common
source of shocks in astrophysical situations.
What are places where astrophysical shocks occur?
Cloud-cloud collisions
HII regions expanding into neutral medium
Stellar wind encountering medium
Supernova or GRB blast wave (internal and external shocks)
Accretion onto compact objects: spherical or disk
Accretion onto hydrostatic intracluster medium
In most cases a shock involves a “discontinuous” change of fluid properties over a scale ∼ λ.
We would like to derive the relations (a.k.a. “jump conditions”) between ρ 1 , u1 , T1 (or, equivalently,
P1 ) and ρ2 , u2 , T2 (or P2 ), for a steady-state, plane-parallel shock (~u perpendicular to shock front
and fluid properties depend only on distance to front).
37
Within the shock front (a.k.a. “transition layer”), viscous effects are important – they cause the
shock in the first place. However, outside this layer, viscous effects are small on scales larger than
the mean free path. We will derive conservation equations of the form
d
Q(ρ, u, P ) = 0 =⇒ Q(ρ, u, P ) = constant,
dx
and although the quantities Q involve viscous terms, we can ignore these outside the shock zone
and can therefore derive the jump conditions from equations that don’t involve viscosity terms.
and from the thermal energy equation, which it is helpful to write in the form (Ryden 1-43)
∂ ~ · (ρ~u) = −P ∇
~ · ~u − ∇
~ · F~ + Ψ,
(ρ) + ∇
∂t
analogous to the continuity equation, and to supplement with a separate equation (Ryden 1-44)
for conservation of kinetic energy
∂ 1 2 ~ · ( 1 ρu2 ~u) = ρ~u · ~g − ~u · ∇P ~ ↔
~ + ~u · (∇·
( 2 ρu ) + ∇ 2 π ).
∂t
∂ ∂ ∂ ∂ d
We now assume steady-state, ∂t = 0, plane-parallel, ∂y = 0, ∂z = 0, ∂x = dx , and ignore gravity
and viscosity. These equations then become
d
(ρu) = 0 (41)
dx
du 1 dP
u = − (42)
dx ρ dx
d du
(ρu) = −P (43)
dx dx
d 1 2 dP
( ρu u) = −u . (44)
dx 2 dx
(45)
ρu = constant =⇒ ρ1 u1 = ρ2 u2 .
Using
d du dρ du du dρ du d du
(ρu2 ) = 2ρu + u2 = ρu +u ρ +u = ρu + u (ρu) = ρu
dx dx dx dx dx dx dx dx dx
38
allows the equation (42) to be written
du dP d 2
ρu + = ρu + P = 0 (46)
dx dx dx
so
ρu2 + P = constant =⇒ ρ1 u21 + P1 = ρ2 u22 + P2 . (47)
If we had kept the viscosity terms in the derivation, equation (46) would instead have been
d 4 du
ρu2 + P − µ = 0. (48)
dx 3 dx
d P P
1 2 1 2
dx 2u ++
ρ
= 0 =⇒ 2u ++
ρ
= constant,
so
1 2 P1 P2
2 u1 + 1 + = 12 u22 + 2 + .
ρ1 ρ2
If we had been more complete, the conserved quantity would also include viscosity and heat con-
duction terms, but once again, these are unimportant outside of the transition zone.
ρ1 u1 = ρ 2 u2 (49)
ρ1 u21+ P1 = ρ2 u22 + P2 (50)
1 2 P1 1 2 P2
2 u1 + 1 + ρ = 2 u2 + 2 +
ρ2
. (51)
1
Even though the physics of the shock region may be complicated and varied, these conditions
follow from conservation of mass, momentum, and energy alone. More precisely, the first follows
39
from mass conservation, the second from mass and momentum conservation, and the third from
mass and energy conservation. If ρ1 , u1 , and P1 are known, we have three equations for the three
unknowns ρ2 , u2 , and P2 .
Using i = γi1−1 Pρii , the last of the jump conditions can be written
1 2 γ1 P1 γ2 P2
2 u1 + = 12 u22 + ,
γ1 − 1 ρ1 γ2 − 1 ρ2
for a gas that has a polytropic equation of state.
Note that γ2 may be different from γ1 if, for example, the shock dissociates molecules, or raises the
temperature so that previously inaccessible degrees of freedom become accessible.
The factor in () can be viewed as a ratio of “ram pressure” to thermal pressure in the pre-shock
gas, or as a ratio of kinetic energy density to thermal energy density.
In terms of the Mach number, the shock jump conditions are (Ryden eqs. 3-51)
ρ2 u1 (γ + 1)M12
= =
ρ1 u2 (γ − 1)M12 + 2
P2 ρ2 kT2 /m 2γM12 − (γ − 1)
= = .
P1 ρ1 kT1 /m γ+1
Together these conditions imply
T2 [(γ − 1)M12 + 2][2γM12 − (γ − 1)]
= .
T1 (γ + 1)2 M12
In the rest frame of a strong shock, with γ = 5/3, the post-shock kinetic energy is
1 2 1
u2 ≈ u21 ,
2 32
40
and the post-shock thermal energy is
3 kT2 9
≈ u21 .
2 m 32
So roughly half of the pre-shock kinetic energy is converted to thermal energy. The total energy
of the post-shock gas is lower (in the shock rest frame) because of the work done on the gas by
viscosity and pressure in the shock.
A shock converts supersonic gas into denser, slower moving, higher pressure, subsonic gas. It
increases the specific entropy of the gas by an amount
P2 P1 P2 ρ2
s2 − s1 = cV ln − cV ln = cV ln − cV γ ln .
ργ2 ργ1 P1 ρ1
41
7.3 Numerical hydrodynamics and artificial viscosity
“Shock capturing codes” work by searching for places where shocks are “likely” to occur (e.g.,
where the velocity field is developing a discontinuity) and imposing shock jump conditions over the
scale of one or two grid cells.
An alternative method, introduced by von Neumann and Richtmeyer in the 1950s, is to use an
“artificial viscosity” that is much larger than the true viscosity one would calculate based on the
microscopic properties of the gas.
High viscosity makes shocks broader, so that they can be resolved over several grid cells.
Since the jump conditions follow from conservation laws, the pre- and post-shock gas should still
have the correct relations even if the viscosity is not the true viscosity.
There is a fair amount of experimentation and black magic in artificial viscosity — tuning things
to get the desired physical behavior in as many situations as possible.
Within the rrl, the temperature drops, and the gas is squeezed to higher density. Since ρu =
constant, the velocity drops.
We can demonstrate this by returning to the steady-state equations (41)-(43) but including the
cooling term
(Γ − Λ)
L(ρ, T ) ≡ − > 0, [L] = erg g−1 s−1 .
ρ
The equations are
d
(ρu) = 0
dx
42
du1 dP
u = −
dxρ dx
d d du
(ρu) = ρu = −P − ρL.
dx dx dx
Combining the last equation with
1 P d 1 1 dP P dρ
= =⇒ = − 2
γ−1 ρ dx γ − 1 ρ dx ρ dx
and
1 dρ 1 du
=−
ρ dx u dx
(since ρ ∝ u−1 ) implies
u dP P du du
+ +P = −ρL,
γ − 1 dx u dx dx
dP
and substituting dx = −ρu du
dx implies
ρu2 du γ du
− + P = −ρL
γ − 1 dx γ − 1 dx
and thus
a2 − u2 du
= −L
γ − 1 dx
with a2 = γP/ρ. Since the post-shock flow is sub-sonic (u < a) and L > 0, we conclude that
du dρ
dx < 0, and mass conservation therefore implies that dx > 0.
The mass conservation and momentum conservation jump conditions apply as before, since their
derivation did not involve (which is the quantity affected by radiative cooling). Therefore
ρ3 u3 = ρ 2 u2 = ρ 1 u1
ρ3 u23 + P3 = ρ2 u22 + P2 = ρ1 u21 + P1 .
As u drops in the rrl, ρu2 = (ρu)u drops and the pressure must rise.
For a strong shock with γ = 5/3,
−1/2
5 P2
M2 = u 2 ≈ 0.45,
3 ρ2
so P2 ≈ 3ρ2 u22 and only a small rise in pressure is required to satisfy the second jump condition
even if u3 drops to zero.
The important point is that the pressure does not go down, and therefore a drop in temperature
must be accompanied by a proportional rise in density to maintain the pressure.
If there is a lot of post-shock cooling, then the density ratio ρ 3 /ρ1 can be very high.
43
This is probably the most important difference between a non-radiative shock and a radiative shock:
a non-radiative shock can only increase the density by a factor of ∼ 4, but a radiative shock can
increase the density by a very large factor.
A specific interesting case is that of an “isothermal shock,” where T 3 = T1 . (This becomes the
third jump condition.)
This can arise if, for instance, T1 = T3 is a temperature where the cooling time becomes very long,
or a temperature where heating and cooling processes balance.
ρ
Combined with the equation of state P = m kT = ρa2T , where aT = (kT /m)1/2 is the “isothermal
sound speed,” the solution to the shock jump conditions is,
2
ρ3 u1 u1
= = ≡ MT2
ρ1 u3 aT
T3 = T 1 .
Since 2 4 2
u1 aT u1
ρ3 u23 + P3 = ρ1 u21 + ρ1 a2T = ρ1 a2T + ρ1 u21 = P1 + ρ1 u21 ,
aT u1 aT
this solution satisfies the momentum jump condition.
The fact that ρ3 /ρ1 = MT2 means that the compression factor in an isothermal shock can be
arbitrarily high.
B1 u1 = B 2 u2 ,
i.e., the magnetic field lines are compressed by the same factor as the density.
B12 B2
ρ1 u21 + P1 + = ρ2 u22 + P2 + 2 ,
8π 8π
i.e., there is an additional “magnetic pressure” term B 2 /8π.
(The units of B 2 are erg cm−3 = dyne cm−2 .)
44
The energy jump condition becomes
γ P1 B2 γ P2 B2
1 2
2 u1 + + 1 = 12 u22 + + 2 .
γ − 1 ρ1 4πρ1 γ − 1 ρ2 4πρ2
Coupling of ions to magnetic fields can allow a shock front to be much narrower than the mean
free path λ for particle-particle interactions.
The situation is more complicated when B is not parallel to the shock front, and it can be much
more complicated in multi-fluid shocks when electrons, ions, and neutrals are coupled but not
perfectly coupled.
One important effect is that magnetosonic waves (a.k.a. Alfven waves) can “warn” upstream ions
and electrons about an approaching density discontinuity.
There are many additional classes of solutions, some of them discussed in the Shull & Draine article.
45