dbookstaber / py_ballistics

Point-mass ballistic trajectory calculator with support for custom drag models
GNU Lesser General Public License v3.0
3 stars 0 forks source link

Atmosphere changes for high-angle shots #8

Open dbookstaber opened 11 months ago

dbookstaber commented 11 months ago

When shooting at high angles the bullet will travel through atmosphere with varying density. We can use standard models of how density changes with elevation to incorporate this variable into each step of the trajectory calculation.

dbookstaber commented 9 months ago

Actually this might already be implemented via the atmo.get_density_factor_and_mach_for_altitude() line in _trajectory().

dbookstaber commented 9 months ago

Yep, it is implemented that way. But we still need to validate this. (#9 is related/relevant.)

Possible tests:

dbookstaber commented 8 months ago

We did confirm it while working on https://github.com/dbookstaber/py_ballistics/issues/11#issuecomment-1947499649

gambon2010 commented 3 months ago

It could also be interesting to estimate wind speeds when shooting at high angles, in theory the higher the bullet goes, the higher the wind speed will be. For example by using the 'Wind profile power law', but I'm not sure how this could be implemented.