jung [at] seas.harvard.edu
A C++ simulation framework for studying the mechanics and entanglement of flexible rods.
Understanding how flexible rods interact, tangle, and stabilize is central to problems ranging from robotic grasping to the structural integrity of bird nests and fiber packings. To study these phenomena computationally, I built a 3D rod dynamics simulation in C++ that can handle large ensembles of rods with repulsive contact and frictional interactions.
The simulator evolves rod configurations forward in time using a discrete elastic rod (DER) framework. Each rod is discretized as a chain of nodes and edges, and interactions between rods are handled through short-range repulsive potentials. The simulation can track:
A key feature is the ability to decompose the motion of rods into components — for instance, separating translational drift from local orientational fluctuations — which helps isolate the geometric signature of entanglement.
This simulator is the primary tool for generating data used in our study of the entanglement transition in rod packings (PNAS 2025). By sweeping rod aspect ratio and packing fraction, we were able to map out the phase boundary between loose (unentangled) and entangled states, and measure how the caging number predicts dynamic stability.
Building this simulator taught me a great deal about the subtleties of contact mechanics at finite rod density. Naive repulsive potentials can lead to catastrophic overlap at high density; careful choice of potential stiffness and integration timestep is essential. I also learned the value of decomposing rod motion — treating the system not as \(N\) independent particles but as a collective geometrical object.
| back to works | home |