Dynamic Response of Granular and Porous Materials under Large and Catastrophic Deformations