Expand description
Advanced trajectory integration methods (RK4, RK45)
This module provides production-grade numerical integration for ballistic trajectories:
- RK4: 4th-order Runge-Kutta (fixed step)
- RK45: Dormand-Prince adaptive method (same as scipy.integrate.solve_ivp)
MBA-155: Upstreamed from ballistics_rust for shared use
Structs§
- Trajectory
Params - Parameters for trajectory computation
Enums§
- Kernel
Input Error - Why
try_integrate_trajectoryrefused its input before producing any trajectory point.
Functions§
- integrate_
trajectory - Main trajectory integration function
- solve_
trajectory_ rust - Python-exposed function for complete trajectory integration
- try_
integrate_ trajectory - Checked sibling of
integrate_trajectory(MBA-1338): rejects malformed wind segments (KernelInputError::Wind) and invalid downrange atmosphere zones (KernelInputError::Atmosphere, fromcrate::AtmoSock::validate) before sorting, vector precomputation, or producing any trajectory points, so a caller can never receive a poisoned trajectory. A wind error’sindexrefers to the caller’s own segment ordering. The station itself is valid by construction (KernelAtmosphere). - try_
solve_ trajectory_ rust - Checked sibling of
solve_trajectory_rust(MBA-1338): rejects malformed wind segments with a typedWindSegmentErrorbefore any integration work or trajectory points are produced. Bindings should migrate to this entry point so malformed segments surface as a structured error instead of a silently poisoned trajectory.