Calculation of failure in penetration of a striker into a finite-thickness barrier