crashmetrics¶
For crash CAE engineers: Euro NCAP and Bharat NCAP scores, dummy injury criteria and LS-DYNA material cards, in Python.

Open-source Python for automotive crash safety calculations: injury criteria, Euro NCAP and Bharat NCAP scoring, pedestrian protection (with bonnet clearance and bottoming out), homologation checks, test-versus-CAE correlation, LS-DYNA keyword deck checks and binout and ASCII output readers, energy and model quality checks, load path and spot weld analysis across runs, all in one package.
Alpha software
crashmetrics is an engineering calculation aid. Validate its results against the official protocol you assess to; it does not certify regulatory compliance. See Protocol notes for every interpretation the package makes.
What it covers¶
| Area | What you can calculate | Guide |
|---|---|---|
| Signals | SAE J211 CFC filtering, resultants, unit conversion, resampling, HIC (grid search or exact maximum, verified), peak, 3 ms clip | Signals |
| Pedestrian (Euro NCAP) | Headform grid score with correction factor, blue / default-red / A-pillar points; aPLI and upper legform grids; total VRU score | Headform, Legforms |
| Bonnet clearance | Free space under every headform point from the mesh; bottoming out, its time and hard part, or a stiff bonnet, from each impact's nodout; why each point is red | Bonnet clearance |
| Pedestrian (India) | AIS-100 compliance: Flex-PLI and legacy legform limits, upper legform, HIC1000 / HIC1700 zones; Flex-PLI assessment interval and Euro NCAP Flex-PLI score | Flex-PLI and AIS-100 |
| Frontal dummies | DAMAGE, BrIC, neck loads, Nij, R94 limits, chest deflection, VC, CTI, THOR Rmax and abdomen, acetabulum, iliac force drop, femur, Tibia Index, knee slider | Frontal criteria |
| Euro NCAP 2026 | MPDB (20 points) and full width (10 points) scores with modifiers and the compatibility penalty; sled and virtual testing (VTC, 10 points); side impact AE-MDB (15), pole (10) and far side (10) | MPDB and full width, Virtual testing, Side and far side |
| Homologation | UN R94 / AIS-098, UN R95 / AIS-099, UN R135 and post-crash electrical safety, pass/fail per requirement | Homologation |
| Whiplash | BioRID NIC and Nkm; 2026 rear impact score, 5 points | Rear impact |
| Bharat NCAP | AIS-197 (2023 edition, ratings to September 2027) adult occupant scoring (ODB frontal, MDB side), pole test, star rating; scores from dummy channels or ISO-MME, named modifiers, scorecard; child occupant protection; safety assist star qualifiers | Bharat NCAP, Child occupant and rating |
| Intrusion | Pedal, steering column, A-pillar and footwell intrusion relative to the vehicle; dynamic and static; survival space | Intrusion |
| Vehicle | OLC, delta-V, rebound, dynamic crush, crash box energy, CFE, SEA | Pulse and energy |
| Materials | Tensile tests from machine exports: cleaning and E, Rp0.2, Rm, Ag, A; Lüders plateau, machine compliance, mean curve of several specimens; necking and extrapolated hardening curve (Swift, Voce, ...), n and K; strain-rate fits and checked *DEFINE_TABLE; the complete *MAT_024 card in any unit system; GISSMO failure from fracture tests (Hosford-Coulomb failure curve, FLC instability, element size regularisation) and *MAT_ADD_DAMAGE_GISSMO; checking, converting and comparing existing cards; material library |
Material cards, GISSMO |
| Data formats | ISO-MME (ISO/TS 13499) read and write | Virtual testing |
| LS-DYNA | binout reader (every output, as the ASCII readers return it), crashmetrics-binout; ASCII output readers (nodout, rcforc, sleout, secforc, rwforc, sbtout, abstat and more), crashmetrics-ascii to CSV; glstat / matsum energy balance checks, d3hsp run summary, crashmetrics-energy command |
binout, ASCII output, LS-DYNA energy |
| Keyword decks | Includes and parameters read; mass, centre of gravity and time step before the run; missing IDs, duplicates, contacts; load case and output requirements; edits and DOE variants | Keyword decks |
| Load paths | Part energies and section forces: energy ranking, load split, crush sequence, culprit parts between runs; synthetic frontal runs to try it | Load paths |
| Spot welds | Failed and critical welds from swforc, failure sequence and bursts, new failures against a baseline | Spot weld failure |
| Model quality | One pass/fail sheet per run: termination, mass, added mass, time step, energy balance, contact energies | Model quality |
| Test vs CAE | ISO/TS 18571 rating and grade, corridor and cross-correlation (CC) rating, peak, timing and RMSE errors | Test-versus-CAE correlation |
| Analytics and ML | Batch runs into tables; signal shape features, criteria and design parameters per run as a training set; DOE sampling, margins as targets, sensitivity ranking, probabilistic star ratings | Batch and analytics, ML features, DOE and sensitivity |
A first taste¶
from crashmetrics.pedestrian import check_flexpli, hic_colour
hic_colour(620) # Euro NCAP headform colour
# 'green'
check_flexpli(tibia_moment=300, mcl=20, acl=6, pcl=5).passed # AIS-100 Rev.1
# True
A full Bharat NCAP rating from dummy results takes about 30 lines; see the Bharat NCAP guide.
How to use these docs¶
- Getting started: install, run a first calculation, load your own test or CAE data, and learn the units and sign conventions.
- Guides: one step-by-step page per load case, each built around a runnable example with its real output.
- Protocol notes: where a protocol is ambiguous or silent, what crashmetrics does and why.
- Validation: what every function is checked against, and what is not validated yet.
- API reference: every function, parameter and result field.
Where the numbers come from¶
Every formula and limit comes from publicly available protocols and standards: Euro NCAP (assessment protocols, CP 005, CP 007), Bharat NCAP (AIS-197), AIS-100, UN regulations (R94, R127), UN GTR 9, FMVSS 208, SAE J211 and published research. The test suite reproduces the protocols' own worked examples wherever they give one, and checks the other formulas against hand calculations, closed-form solutions, independent implementations and real test data. The Validation page lists the evidence for every function.
crashmetrics is an independent project and is not affiliated with or endorsed by any of these organisations.