Presets
Playback
Surface
Start of the strings
Motion
Camera
Layers
Quality
Model check
The science
A taut string is a geodesic
Stretch a string tight over a smooth surface and it follows a geodesic: locally the shortest path, with no sideways acceleration along the surface. On a surface of revolution (rho(v) cos phi, rho(v) sin phi, z(v)) the metric is ds^2 = E dv^2 + rho^2 dphi^2 with E = rho'^2 + z'^2.
The geodesic equations
With unit speed, the Christoffel symbols give v'' = -(E_v / 2E) v'^2 + (rho rho' / E) phi'^2 and phi'' = -2 (rho'/rho) v' phi'. The page integrates these four first-order equations with fourth-order Runge-Kutta (step 0.005 in arc length). Open surfaces are handled by reflecting at the ends of the profile; on the torus the profile is periodic.
Clairaut relation
Because the surface is rotation symmetric, the second equation integrates to a conserved quantity: c = rho^2 phi' = rho sin(psi), where psi is the angle between the geodesic and the meridian. Since sin(psi) <= 1, the geodesic can only exist where rho >= c: it turns back at the circle rho = c (the pink band in the pictures marks the forbidden region). On a torus a string launched with c larger than the inner equator radius R - r stays trapped in the outer part and oscillates about the outer equator; with a smaller c it winds around the tube. On an hourglass (catenoid) with neck radius a the geodesics with c > a bounce back and those with c < a pass the neck.
Quadrature form
Eliminating the arc length gives the longitude gained between two heights: d phi / d v = c sqrt(E) / (rho sqrt(rho^2 - c^2)). The integral from the start to the turning point is computed with the substitution v = v_s + (v_t - v_s)(1 - cos(theta))/2, which removes the inverse-square-root endpoint singularity, and is compared with the ODE result.
Curvature
The Gaussian curvature is K = -(1 / (rho sqrt(E))) d/dv ( rho' / sqrt(E) ). It is +1/R^2 on a sphere, 0 on a cylinder, -1 on the pseudosphere (tractricoid): there neighbouring geodesics spread apart, on the sphere they converge.
Honest simplifications
Surfaces are smooth, frictionless and rigid; a real string also has bending stiffness and friction (a geodesic is the friction-free limit). Reflection at the rim of an open surface is a modelling choice, not a geodesic property. Near the poles of the sphere and ellipsoid the profile stops at v = 0.03 and pi - 0.03 to avoid the coordinate singularity of the longitude.
Independent checks on this page
- Clairaut constant and unit speed along 20,000 RK4 steps on a vase.
- Longitude gained to the first turning point: the ODE against the Clairaut integral, on a torus and an hourglass.
- On the unit sphere the geodesic stays on a plane through the centre and closes after 2 pi; the curvature formula returns +1 and -1 for the sphere and the pseudosphere.
What the 3D scene adds
A Blender-built workshop bench with a brass turntable. The string is a tube that follows the integrated path on a lathe-turned surface; the pink bands show the forbidden region rho < c on the surface itself.