Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
/ CyEulerBallistic Public archive

LGPL library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift. The fork of py_ballisticcalc.exts that can be used as side-package

License

Notifications You must be signed in to change notification settings

o-murphy/CyEulerBallistic

Repository files navigation

CyEulerBallistic

LGPL library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift. The fork of py_ballisticcalc.exts that can be used as side-package

license pypi downloads downloads/month versions Made in Ukraine

Python cythonized package tests (uv)

Table of contents

Installation

pip install CyEulerBallistic
# or 
uv add CyEulerBallistic

Usage

Initialize CyEulerBallistic engine

from py_ballisticcalc import Calculator
calc = Calculator(_engine="CyEulerBallistic")

Follow Original README for detailed illustrations of all features and usage.

About project

The library provides trajectory calculation for ballistic projectiles including air rifles, bows, firearms, artillery, and so on.

The 3DoF model that is used in this calculator is rooted in public C code of JBM's calculator, ported to C#, optimized, fixed and extended with elements described in Litz's Applied Ballistics book and from the friendly project of Alexandre Trofimov and then ported to Go.

This Python3 implementation has been expanded to support multiple ballistic coefficients and custom drag functions, such as those derived from Doppler radar data.

The online version of Go documentation is located here.

C# version of the package is located here, and the online version of C# API documentation is located here.

Contributors

This project exists thanks to all the people who contribute.

Special thanks to:

  • David Bookstaber - Ballistics Expert
    For help understanding and improving the functionality
  • Nikolay Gekht
    For the sources code on C# and GO-lang from which this project firstly was forked

RISK NOTICE

The library performs very limited simulation of a complex physical process and so it performs a lot of approximations. Therefore, the calculation results MUST NOT be considered as completely and reliably reflecting actual behavior or characteristics of projectiles. While these results may be used for educational purpose, they must NOT be considered as reliable for the areas where incorrect calculation may cause making a wrong decision, financial harm, or can put a human life at risk.

THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.

About

LGPL library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift. The fork of py_ballisticcalc.exts that can be used as side-package

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •