How fish avoid an electric collision
Glass knifefish generate a continuous wave-type electric organ discharge (EOD). An overlapping neighbour's EOD produces amplitude beats and differential phase cues. Sensory P-units convey amplitude information, while T-units specialise in timing. In Eigenmannia, circuit computations resolve whether the neighbour's frequency is above or below its own, and the fish shifts its EOD in the opposite direction.
EXPERIMENTAL REFERENCE The direction of the jamming avoidance response and P/T coding are reported in classic neuroethology experiments. EOD frequencies in this genus are commonly hundreds of hertz. Peak interference is strongest at small frequency differences.
What is real, what is magnified?
REAL STRUCTURES Focal and neighbouring transparent knifefish, ribbon-shaped anal fin, skin electrosensory receptors. ILLUSTRATIVE Fish shape, electroreceptor dots, rocks, plants and dipole placement. SCALED Rainbow-like electric field surfaces, bright pulse trails, motion of the high-frequency carrier (slowed to a beat representation), distance and fish dimensions. Electric fields cannot be seen by the naked eye.
Equations driving every frame
V(t) = A₁ sin(2πf₁t) + A₂ sin(2πf₂t)
|Δf| = |f₂ − f₁| ; AM depth = min(r, 1/r)
J = AM depth × exp[−½(|Δf|/8 Hz)²]
τₚ dP/dt = J − P
τₘ df₁/dt = f_target − f₁
TEXTBOOK Linear superposition, analytic beats, first-order filter and numerical fourth-order Runge–Kutta integration. ILLUSTRATIVE Gaussian JAR tuning, thresholded ideal phase-sign decoder, neural gain, response time and temperature Q₁₀. The model does not reproduce neural spike trains or full P/T spatial phase-comparison circuitry.
Independent numerical check
ENGINE / RK4—
REFERENCE / EXACT—
RELATIVE DIFFERENCE—
For constant input 0.8, τ = 0.24 s, at t = 0.17 s: independent exact solution P(t) = 0.8[1 − exp(−t/τ)]. This validates the integrator, not the biological parameter fit.
Research references & limitations
Heiligenberg & Rose (1985), neural computations for the JAR
Electrosensory encoding of envelopes and interference
Eigenmannia EOD frequency and behavioural measurements
LIMITATIONS Uniform water conductivity, two equivalent far-field electric dipoles, no realistic electrode positions, no three-dimensional current-density finite elements, no empirically fitted species-specific neural response. Spatial colours show signed potential and interference qualitatively. JAR simulated for a single focal fish; neighbouring discharge remains fixed.
Illustrative educational model, not affiliated with any real institution or manufacturer.