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

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

Release files for pycrash 0.0.17

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.17
File Size Uploaded
pycrash-0.0.17.tar.gz 67.2 kB Details

Built distribution (wheel)

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

Total release size: 169.5 kB

Release files / pycrash-0.0.17.tar.gz

Download URL pycrash-0.0.17.tar.gz
Size 67.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d771e20fb47fab9504771c4ce51b78d2a678d1f20be50e6df9f9f64f0c54bcf4
BLAKE2b-256 checksum
How to use checksums
5313b55bd79fa24fc0e3dd54c53ce4ec04ca53fe59a45a0e228e2c598eb3e332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

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

Download URL pycrash-0.0.17-py3-none-any.whl
Size 102.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b36c99c5525808656cb26b2a9db814684019b5f3820031d0c66e93ee79585ae
BLAKE2b-256 checksum
How to use checksums
0c897f00c1ec14f0aba91ada56c4b4ad2c718dd3057457724a81f1a3551acfda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.17 This release

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

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