Shock dynamics