DragModel
Drag model of projectile
BCPoint
dataclass
¶
For multi-bc drag models, designed to sort by Mach ascending
Source code in py_ballisticcalc\drag_model.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
DragModel ¶
DragModel(bc: float, drag_table: DragTableDataType, weight: Union[float, Weight] = 0, diameter: Union[float, Distance] = 0, length: Union[float, Distance] = 0)
:param bc: Ballistic Coefficient of bullet = weight / diameter^2 / i, where weight is in pounds, diameter is in inches, and is the bullet's form factor relative to the selected drag model. :param drag_table: If passed as List of {Mach, CD} dictionaries, this will be converted to a List of DragDataPoints. :param weight: Bullet weight in grains :param diameter: Bullet diameter in inches :param length: Bullet length in inches NOTE: .weight, .diameter, .length are only relevant for computing spin drift
Source code in py_ballisticcalc\drag_model.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
DragModelMultiBC ¶
DragModelMultiBC(bc_points: List[BCPoint], drag_table: DragTableDataType, weight: Union[float, Weight] = 0, diameter: Union[float, Distance] = 0, length: Union[float, Distance] = 0) -> DragModel
Compute a drag model based on multiple BCs. If weight and diameter are provided then we set bc=sectional density. Otherwise, we set bc=1 and the drag_table contains final drag terms. :param bc_points: :param drag_table: list of dicts containing drag table data :param weight: Bullet weight in grains :param diameter: Bullet diameter in inches :param length: Bullet length in inches
Source code in py_ballisticcalc\drag_model.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|