Skip to main content

Pycrash

Pycrash is a 2D mathematical model for simulating vehicle motion and vehicular impacts using a variety of approaches based on fundamental physics and published accident reconstruction techniques. In addition to fundamental applications, Pycrash has accident reconstruction specific modules for obtaining and processing commonly used data

Installation (Requires Python > 3.6)

pip install pycrash PyPi

Planar Vehicle Motion

  1. Single vehicle motion based on driver inputs (brake, throttle, steer)
  2. Multi-vehicle motion and multiple impacts per vehicle

Impact Simulation

Single Degree of Freedom Model
Impulse Momentum Planar Collision
  • model based on conservation of momentum incorporating inter-vehicular sliding developed by Carpenter et al.
Sideswipe (in progress)
  • similar to previous model developed and validated by Funk et al.
  • improved to allow for driver inputs and flexible approach angles and contact locations

Validation

  • validation data are provided within the Github repo
  • Initial publication in 2021 SAE
  • Validation against real-world crashes 2026 SAE

Modular Design

  • Model calculations divided into modules to allow for future improvements
  • Vehicle motion incorporates a modular linear tire model to determine slip condition based on weight shift from longitudinal and lateral acceleration.

Collaboration

  • Contributors are welcome - create a branch to develop a new capability or improve the current model
  • There is a list of projects in the report for future applications that I would like to pursue
  • Create an issue if you identify a problem or to make suggestions for future improvements
  • Additional validation data are always welcome

Recommendations

  • Download Python here and install required packages with pip from PyPi
  • See Github repo for tutorials, Jupyter Notebooks and validation data
  • The validation and demonstration of Pycrash is best viewed using Jupyter notebooks

Metadata

Release files for pycrash 0.0.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycrash 0.0.18
File Size Uploaded Provenance
pycrash-0.0.18.tar.gz 86.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pycrash 0.0.18
File Interpreter ABI Platform
pycrash-0.0.18-py3-none-any.whl Python 3 none any Details

Total release size: 206.9 kB

Release files / pycrash-0.0.18.tar.gz

Download URL pycrash-0.0.18.tar.gz
Size 86.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a601f51d04a5f107f94c3d328035cb92d982f43210d0bd4f567ef5ad97cd5d75
BLAKE2b-256 checksum
How to use checksums
c87cad6a345796b5c7a7849e7356be88c1d5a27edd53b4e1e608d44e5c3dc968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / pycrash-0.0.18-py3-none-any.whl

Download URL pycrash-0.0.18-py3-none-any.whl
Size 120.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
314c0033b9c629b98f508eb114a50b11d2a60c1a2d7b1eee5816b30881a38e82
BLAKE2b-256 checksum
How to use checksums
6d519fa822b7db54d7829b1eab6221ac5c7120f2d1ae1a61b3bb3f4dbbfdf83b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Security for pycrash 0.0.18

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page