Text this: Dynamic buckling of an inextensible elastic ring: Linear and nonlinear analyses