Numerical Methods For Continuum Mechanics With Nonlocal Interactions: Weak Form Peridynamics And Nanoscale Strain Engineering