π£ Ammo
API Documentation
An Ammo instance describes all details of a projectile and cartridge that can affect a trajectory:
- Drag curves, typically via Ballistic Coefficient referenced to a standard drag model.
- Muzzle velocity, including (optionally) any variations in velocity caused by powder temperature sensitivity.
- Size and weight, which determine spin drift and stability.
ExampleΒΆ
Imports:
from py_ballisticcalc import Ammo, Unit, DragModel
Create an Ammo instance:
ammo = Ammo(
dm=DragModel(
bc=0.381,
drag_table=TableG7,
weight=Unit.Grain(300),
length=Unit.Inch(1.7),
diameter=Unit.Inch(0.338),
),
mv=Unit.MPS(815),
powder_temp=Unit.Celsius(15),
temp_modifier=0.123,
use_powder_sensitivity=True,
)
float
values, in which case those attributes will be initialized with unit types defined by PreferredUnits
class.