Overview
Vine robots are soft robots that grow from the tip by turning a pressurized tube inside out. They show promise for jobs like eldercare, where a vine could grow beneath a patient to support them. Those jobs often need flat or multi-chamber cross-sections instead of the usual circle, and nobody had a good way to predict how those shapes behave under a load.
Our team built a tool for that. You draw a cross-section or import a DXF, set the material, chamber pressures, and the load, and the tool shows the vine deforming in real time. Results export to .mat and .dxf.
My part
The tool has two halves: a desktop designer, which a teammate built, and the simulation backend underneath it, which I built. Every time someone runs a simulation in the designer, my code works out the shape the vine settles into.
I prototyped the model in MATLAB, then moved it to Python to make it more accessible.
The backend does three jobs, each covered below: describe the vine’s physics, find its resting shape reliably, and let loads of any shape press into it.
The team’s designer running my simulation on a partitioned vine under a rectangular load.
The physics
The cross-section is a mesh of nodes joined by edges, and the simulation looks for the node positions with the lowest total energy. The skin barely stretches, so its edges act as stiff springs. Each chamber’s pressure pushes its walls outward. Bending stiffness comes from Euler–Bernoulli beam bending: the skin resists bending at every node in proportion to its flexural rigidity, EI. The load presses down under its own weight, and the floor holds the vine up from below.
I derived every gradient by hand and vectorized them with NumPy, with no autodiff library.
Choosing a solver
Most of the work was getting the simulation to converge. A vine’s skin barely stretches but bends easily, and that gap in stiffness makes most optimizers blow up. I experimented with many solvers before landing on Adam, including MATLAB’s quasi-Newton fminunc and constrained fmincon, SciPy’s BFGS and L-BFGS-B, and explicit force-balance stepping, along with around thirty ways of formulating the problem itself.
Adam won because it takes a bounded step on every coordinate. Instead of jumping straight to an answer, it lets a load press into the vine gradually, and the stiff skin doesn’t throw it off. The solve also uses continuation: it starts from an easy version of the problem, with low pressure and stiffness and no load, and ramps up to the real one, carrying the solver’s state from each step to the next.
One of the early failures: chambers overlapping instead of sharing walls.
Loads of any shape
Circles, rectangles, and ellipses have closed-form distance functions. An arbitrary polygon doesn’t. To handle one, I precompute an inset field for the polygon. Each edge gets a band whose exit direction is that edge’s normal, each reflex corner gets a triangular fan, and the deep interior is a zero region. During the solve, every node inside the load looks up its exit vector in one vectorized pass, so even a star-shaped load costs about the same as a circle.
Exit fields for an L-shape and a star. Arrows show the direction each node is pushed out of the load.
Validation
We validated the simulation both analytically and experimentally.
Analytically, I compared it against a closed-form membrane model for circular and rectangular loads, checking the simulated load height and floor contact length against theory.
Experimentally, the team built three vines (circular, three-chamber partitioned, and stick-reinforced), loaded them on the test rig shown at the top of this page, and 3D-scanned the deformed shapes. We then processed the scans into cross-sections and overlaid the simulated nodes on them.
Agreement was good overall, with larger deviations at higher loads. The full results are being written up for publication.





