Skip to main content

Module cosserat_rod

Module cosserat_rod 

Expand description

Regime II & V: Geometrically Exact Discrete Cosserat Rod Solver (cosserat_rod.rs).

Models compliant axial spines, teleost fin rays, flexible tails, hydrostatic tentacles, and botanical FSPM metamers with centerline positions, $SO(3)$ material frames, Darboux bending/twist strain, internal hydrostatic cavity pressure $P_{\text{cav}}\pi r^2$, anisotropic fluid/wind drag, gravitropic/phototropic auxin tropism, and WGSL compute kernel.

Structs§

CosseratElement
Material-frame segment state connecting node i to node i + 1.
CosseratElementGpu
GPU-aligned 64-byte Cosserat element buffer matching COSSERAT_ROD_WGSL.
CosseratEnvironment
Environmental forcing parameters for Cosserat rods (gravity, fluid/wind, light direction).
CosseratNode
Centerline node state for a discrete Cosserat rod.

Constants§

COSSERAT_ROD_WGSL
MAX_COSSERAT_NODES

Functions§

compute_darboux_vector
Computes material Darboux bending/twist vector $\boldsymbol{\Omega}$ between adjacent frames.
hydrostatic_cavity_axial_force
Computes internal hydrostatic cavity axial thrust $F_{\text{cav}} = P_{\text{cav}} \pi r^2$.
step_cosserat_rod_zero_heap
Advances a discrete Cosserat rod by dt seconds with zero heap allocations (HotZeroHeap).