Nonlinear analysis of the buckling and vibration of a rotating elasticum