Skip to main content

Module stability

Module stability 

Source

Constants§

BULLET_LENGTH_RHO_EFF_KG_M3
Effective density (kg/m^3) used by the mass-based bullet-length estimate.
DEFAULT_TWIST_SG_TARGET
Gyroscopic-stability target used to synthesize a default twist when the shooter does not supply one (MBA-1135).

Functions§

compute_spin_drift
Calculate spin drift in meters using Litz approximation.
compute_spin_drift_with_decay
Calculate spin drift with optional spin decay modeling
compute_stability_coefficient
Calculate the gyroscopic stability coefficient (SG) for the bullet.
default_twist_inches
Synthesize a default barrel twist (inches per turn) for a bullet whose twist the shooter did not supply, by inverting the Miller stability formula for the twist that yields DEFAULT_TWIST_SG_TARGET (MBA-1135).
estimate_bullet_length_m
Estimate a bullet’s length (meters) from its diameter and mass using a constant-effective-density cylinder model (MBA-1135).