Pond Frogs (3D)

Aim a frog from lily pad to lily pad: projectile motion, pad buoyancy, wave-equation ripples and a pond food chain.

Switch to 2D

Presets

Playback

Keys: Space = jump, Tab = next pad, arrows = direction and angle.

Jump

World

Pond and ripples

Ecosystem

Time and drawing

Camera

Layers

Quality

Model check

The science

A frog jump is a projectile

The moment the frog leaves the pad it flies freely: gravity is the only force that matters. With take-off speed v, angle θ and gravity g, the flight is a parabola:

x(t) = v cosθ · t, y(t) = v sinθ · t − ½ g t²

When it lands at the height it started from, the range is R = v² sin 2θ / g, the peak height is H = v² sin²θ / (2g) and the flight time is T = 2 v sinθ / g. Because sin 2θ is largest at 45°, 45° gives the longest jump for a given speed. On the Moon (g = 1.62) the same jump goes six times as far, so "Auto-set speed" picks a gentler push.

Aiming: choosing a pad solves R(v) = distance for the speed (the page does this by bisection on the real simulated flight, so it also works with air drag switched on). Kinetic energy ½ m v² turns into potential energy m g y on the way up and back again on the way down; the energy graph shows the total staying constant (apart from drag).

Air drag is the quadratic law F = ½ ρ Cd A v². For a 350 g frog moving at a few m/s it is tiny, which is why the ideal and the real arc almost coincide. Switch it on and turn the frog mass down to see it matter.

Lily pads are floating discs

A pad of radius r floats like a disc: if it is pushed down by z the water pushes back with an extra upthrust k z, with k = ρw g π r² (Archimedes). The pad also drags a lot of water with it, an "added mass" of about (4/3) ρw r³. So the pad behaves like a damped spring:

M z″ + c z′ + k z = −m g, with M = mpad + (4/3) ρw r³ and damping ratio ζ = 0.2 (the energy it radiates away as ripples).

A frog landing adds the momentum m vy; taking off pushes the pad down by the reaction. The real dip is only about a millimetre, so the picture exaggerates it with the "Pad dip drawn" slider; the readout "Pad dip" shows the true value in millimetres.

Ripples: the wave equation

The water surface height u(x, z, t) follows the damped wave equation

∂²u/∂t² = c² (∂²u/∂x² + ∂²u/∂z²) − γ ∂u/∂t

solved on a 121 × 85 grid (cell 8.3 cm) with a time step of 1/240 s. For long waves in water of depth h the speed is c = √(g h), so deeper water, or stronger gravity, makes faster ripples; the "ripple probe" graph marks when the front of the last splash should arrive, t = d / c. Pads and the reeds at the bank add extra damping; switch the reed sponge off to watch ripples bounce back from the shore. A splash is injected as a Gaussian dent whose depth grows with the landing speed and the frog mass.

The pond ecosystem

Flies N grow logistically and are eaten by frogs F, who turn food into new frogs:

dN/dt = r N (1 − N/K) − a N F, dF/dt = e a N F − δ F

The balance point is N* = δ / (e a) and F* = r (1 − N*/K) / a. Start away from it and the numbers swing around it before settling. The number of flies you see buzzing and of other frogs hopping on the pads follows these curves, and every fly your frog catches removes one from N. Time here runs in "days" at the speed set by the ecosystem slider.

Model checks

The page re-computes five things independently of the animation: the drag-free range against the formula, the speed of a fresh test ripple against √(g h), the bobbing period of a pad against the damped-spring formula, the ecosystem after 400 days against its balance point, and the energy lost to drag against the work done by drag.

Honest simplifications

  • The frogs are drawn several times life size so you can see them; the masses and speeds are realistic for a bullfrog.
  • Real ripples on a pond are capillary-gravity waves that spread out by wavelength; this model is the simple non-dispersive wave equation with one speed. The height of the ripples is exaggerated on screen by the "Ripple height drawn" slider (default 14×); the readout and graph use the true values.
  • The bed you see under the water is a fixed picture; the depth slider only changes the wave speed.
  • The landing is a point-mass hit on the pad; the frog has no spin, and flies are a population model drawn as a few dots.
Loading model...
Loading Blender model...
Jump side view: predicted vs flown
Energy during the jump (kinetic, potential, total)
Ripple height at the probe (front arrives at d/c)
Pond ecosystem: flies and frogs (days)
Made with 🟠 Blender · Three.js