Quasi-Static and Dynamic Buckling of Thin Cylindrical Shape-Memory Shells