The science
Two-touch memory. Each bend of a trigger hair fires an action potential. In the trap it adds a pulse to a decaying calcium-like memory: dC/dt = −C / τ, C → C + 1 per touch. The trap closes when C ≥ 1.5. One touch gives C = 1 (no closure); a second touch after Δt gives C = 1 + e−Δt/τ, so closure needs Δt ≤ τ ln 2 (about 21 s for τ = 30 s). This is the simplified model of Bohm et al. (2016).
Capture probability. With a fly that makes touches at rate λ (Poisson) and leaves at rate μ = 1/T, window w = τ ln 2, E = e−(λ+μ)w, a = λ/(λ+μ): q = a2(1−E) / (1 − aE). A seeded Monte Carlo run of the same accumulator is compared with this formula below.
Snap. Closure takes roughly 0.1-0.3 s; it is a hydroelastic snap-through of the curved lobes, not a muscle. Here it is animated in 0.28 s. After closure the cilia interlock into a cage; further touches (about 5 action potentials in total) make the trap seal and start digestion.
Digestion. Glands secrete enzymes for about 5-12 days (7 here), then the trap reopens and drops the husk. An empty closed trap reopens within about a day (12 h here).
Honest simplifications. Thresholds and timings are rounded literature values, fly motion is a random walk, trap geometry is a Blender model (lobes rotate rigidly) and the snap-through is a smooth angle curve, not a solved elastic shell.