Module response_ode
Expand description
Zero-Heap 4D RK4 Driven Spring & Thermal ODE Response Kernel (response_ode.rs).
Consolidates DrivenSpring, SpringState, step_spring, ThermalTargets, and step_thermal
with a self-contained zero-heap 4-state 4th-order Runge–Kutta integrator Rk4Integrator4D.
Structs§
- Driven
Spring - Stiffness and damping per unit mass:
stiffness * (target - position) - damping * velocity. - ODEState4D
- 4-state ODE snapshot.
- Rk4Integrator4D
- Zero-heap 4th-order Runge–Kutta ODE integrator with fixed
[f64; 4]state. - Spring
State - 1D spring position and velocity state.
- Thermal
Targets - Two-channel driven thermal reservoir targets and relaxation rates ($s^{-1}$).
Enums§
- Response
OdeError - Error type returned by
Rk4Integrator4D,step_spring, andstep_thermal.
Traits§
- ODEFunction4D
- 4-state ODE derivative trait for
Rk4Integrator4D.
Functions§
- step_
spring - Steps a
DrivenSpringoverdt(0.0..=0.05s), substepped at $\le 1/240$ s viaRk4Integrator4D. - step_
thermal - Steps two thermal channels toward
targetsoverdt(0.0..=0.05s) viaRk4Integrator4D.
Type Aliases§
- Response
OdeResult - Result alias for ODE response kernels.