Multiscale Computational Modeling of Brittle and Ductile Materials under Dynamic Loading