Around days 21–28 of human development the heart begins as a straight tube, fixed at both ends inside the pericardial cavity (arterial pole cranially, venous pole caudally). The tube then elongates faster than the cavity that contains it. Held at both ends but growing longer in between, it has nowhere to go but to buckle out of a straight line — the accepted mechanical model for the first stage of cardiac looping (Taber & Voronov; Männer, 2004).
For a rod of length L pinned at two points a fixed distance D apart, the simplest buckled shape is a circular arc of bend angle θ satisfying:
θ / (2·sin(θ/2)) = L / D
R = (L/D)·D / θ (arc radius)
bulge height = R·(1 − cos(θ/2))
This simulator solves that equation for θ every frame from the length/cavity ratio you set, and bends the tube into the resulting arc — the C-loop. A secondary out-of-plane term, ramped in through the later part of the stage timeline, offsets the arc into an S-loop, echoing how the real ventricle swings ventrally and to the right while the atrium moves dorsally and left.
- Growth differential — how much faster the tube outgrows the cavity; higher values buckle sooner and into a sharper, higher-amplitude loop.
- Left-right bias — a stand-in for the Nodal → Lefty → Pitx2c signaling cascade that breaks left-right symmetry in the embryo. A strong positive bias reliably bends the tube rightward — the normal D-loop. A strong negative bias mirrors it into an L-loop (situs inversus). Near zero, the bend direction is left to mechanical noise, which is exactly why loss of this signaling causes heterotaxy — randomized organ situs — in real embryos.
- Developmental stage — scrubs or auto-plays the timeline from straight tube through C-loop to S-loop; the small dots mark the outer-curvature myocardium, the zone of highest proliferation and strain during looping.
This is a deliberately simplified 1-D elastica approximation of a genuinely 3-D, multi-tissue process (it ignores the dorsal mesocardium, hemodynamic load, and cushion formation) — but the buckling relation and the left-right control logic are the real mechanisms textbooks and the primary literature attribute to this stage of heart development.