These Matlab scripts illustrate the numerical solution of two one-dimensional tensile rods equipped with integro-differential and strain-gradient constitutive laws by means of classical Hermitian and Lagrangian finite element discretizations, B-spline finite element discretizations and C∞ generalized finite element discretizations.
Reference
M. Malagù, E. Benvenuti, C. A. Duarte, and A. Simone. One-dimensional nonlocal and gradient elasticity: Assessment of high order approximation schemes...