Kinetic torus?

Hi, I’m currently working on an architecture project. I’d like to try implementing a form in Grasshopper — a torus-shaped mass that can rotate and collapse/expand like a collapsible steamer. Could you suggest an initial logic or share any references I could look into?