Travelling body waves
y(s,t) = A sin(ks + ωt)
z(s,t) = Az max[0, sin(ks + ωt + φ) − h]
The lateral wave bends the body; a phase-shifted vertical wave lifts alternating sections. A smooth contact weight approximates how much of each segment carries load.
Anisotropic substrate resistance
fd = −wc[c∥ ttᵀ + c⊥ nnᵀ]v
The local tangent t and normal n define different resistance along and across the body. The model solves the quasi-static force balance over grounded segments, including the downhill component of gravity.
∫ fd ds + (−mg sin β, 0) = 0
Wave-speed check
c = ω/k = fλ
Body translation is integrated with fixed-step RK4 while gait phase advances analytically. The independent check tracks a crest in sampled centreline geometry and compares its measured speed with the closed-form travelling-wave speed.
What is simplified
- The body is a prescribed flexible centreline, not a full musculoskeletal simulation.
- Substrate forces use a linear, low-speed resistive approximation rather than granular discrete-element physics or measured Coulomb friction.
- Body length (1.6 m), mass (0.50 kg), wave length (1.2 m), contact compliance and resistance coefficients are illustrative. The phase offset and body yaw are fixed for this teaching model.
- Real snakes alter their gait with anatomy, sand grain size, slope, speed and sensory feedback; this model is not a species-specific prediction.
Textbook constant: gravitational acceleration g = 9.81 m/s². All other displayed model parameters are marked illustrative or scaled.
Illustrative educational model, not affiliated with any real institution or manufacturer.