Orangutan Liana Swing 2D

A pendulum on a bending tree top: normal modes, resonant shaking, pumping and the release that bridges the gap.

Presets

Playback

Layers

Model checks

The science

Two oscillators, one swing

An orangutan hanging from a liana tied to a thin tree top is a double oscillator: a pendulum (liana angle θ, length L) whose pivot sits on the tip of a bending tree (sway x). The tree top is a cantilever beam of length H, diameter d and wood modulus E; a tip load bends it like a spring of stiffness k = 3EI/H3 with I = πd4/64. Its effective moving mass is M = Mcrown + 0.2357 mtop (the 0.2357 is the Rayleigh factor of a uniform cantilever). Doubling the diameter makes the tree 16 times stiffer; doubling the flexible length makes it 8 times softer.

Equations of motion (Lagrange)

With the body at (x + L sinθ, −L cosθ) and an optional crouch-stretch L(t) = L0 + a sin(2πfpt):

(M+m) x" + m L cosθ θ" + m(L" sinθ + 2L' θ' cosθ − L θ'2 sinθ) + c x' + k x = F(t)

cosθ x" + L θ" + 2L' θ' + g sinθ = 0

Both are solved together by a fourth-order Runge–Kutta step of 2 ms. F(t) = F0 sin(2πfdt) is the horizontal push the animal gives the trunk by rocking its body. The tree absorbs energy: a soft top swallows part of the swing, which is why a heavy ape on a thin crown swings less than the free-pendulum formula suggests.

Normal modes and beats

For small angles, constant L and no damping the system has two normal modes. Their angular frequencies solve M L ω4 − ((M+m) g + kL) ω2 + k g = 0. In the first mode the liana and tree swing in the same direction at a frequency a little below the free pendulum √(g/L)/2π; in the second the tree is dominant and the body moves against it. When the two are not far apart, energy sloshes between pendulum and tree with a beat period 1/(f2 − f1). Wild orangutans are observed to sway flexible trees until they can step or jump across the gap; shaking near a normal-mode frequency is exactly resonance, and the frequency-response graph shows the two peaks (the tree-top deflection per newton of force).

Parametric pumping

Crouching and standing changes the pendulum length. Shortening the liana when the body is moving fastest at the bottom (θ = 0) and lengthening it at the extremes feeds energy in twice per swing, so the best pumping frequency is about 2 f1. Pumping needs a non-zero starting swing and many cycles to build up; the amplitude grows roughly exponentially at a rate proportional to a/L.

The jump

Releasing at time t gives the ballistic launch state: vx = x' + L' sinθ + L θ' cosθ, vy = −L' cosθ + L θ' sinθ. The body then follows a parabola, so at the target trunk (x = D) it arrives at height y = y0 + vyτ − gτ2/2 with τ = (D − x0)/vx. The clearance is that height minus the branch height. A grab succeeds when it is within the grab window. The orange curve in the third graph is this clearance computed live from the current swing; releasing while it is inside the green band is the whole game.

Three in-page numerical checks

1. The two normal-mode frequencies from the quadratic above against the nonlinear time-stepped model started in each eigenvector with a 1 mrad amplitude (period from zero crossings). 2. Energy T + V of the undamped model over 40 s at a large swing angle. 3. The closed-form clearance against brute-force stepping of the flight with a 10 µs step.

Honest simplifications

Real trees bend in two directions and have several modes; here only the first (cantilever) mode in one plane is kept. The liana is rigid, massless and inextensible (real vines stretch a little); the animal is a point at the hands, with no body rotation, arm flexing or leg swing; air drag is ignored; the animal decides the release moment from the clearance forecast, which a real ape judges by eye. The wood stiffness, crown masses and damping are typical round numbers for tropical trees, not measurements of a specific tree.

What to try
  • Start with Adult female, big swing: watch the orange curve in the third graph; with Auto-release on, the animal lets go when it enters the green band.
  • Turn Auto-release off and press Let go now at the wrong moment: the dashed path shows where you will land.
  • Stiff trunk versus Soft crown: a stiff top gives the full pendulum swing, a soft one absorbs it into sway (compare "Energy in the tree").
  • Shake the tree at the swing frequency starts from a 10 degree swing and grows through resonance; try detuning the shaking frequency by 0.05 Hz and watch the build-up fail.
  • Pump the swing: crouch-stretch at twice the swing frequency; set it to the swing frequency itself and nothing grows.
  • Make the tree thin and the ape heavy and look at the two peaks of the frequency-response graph move apart and together.
  • Press Tune shake to mode 1 after changing the liana length.
Starting...
Tree-top sway and body offset against time
Tree-top response to a push (normal modes)
Height above the branch if released now