A 2D spring model for the simulation of nonlinear hysteretic elasticity