Skip to content

Guides

One page per task. Each guide explains the steps, shows the code, and ends with a complete runnable example from the examples/ folder with its real output (the test suite checks that output on every change).

Guide You will learn to Example
Signals, HIC and the 3 ms clip Filter channels, form resultants, compute HIC, peaks, 3 ms clips and exceedance curves 01_signals_hic.py
HIC accuracy and performance Choose between the grid search and the exact HIC maximum, with verification, accuracy and run times hic_convergence.py
Pedestrian headform Score a Euro NCAP headform grid from CAE predictions and verification tests 02_headform_grid.py
Pedestrian legforms and VRU score Score aPLI and upper legform grids and combine the total VRU score 03_legform_vru.py
Bonnet clearance and bottoming out Measure the free space under every headform point from the mesh, read each impact's nodout, find when and on which hard part the head bottoms out, and why each point is red 34_bonnet_clearance.py
Flex-PLI and AIS-100 Process Flex-PLI signals and check AIS-100 compliance 04_flexpli_ais100.py
Frontal dummy criteria Calculate head, neck, chest, abdomen, pelvis and leg criteria for the Hybrid III and THOR 05_frontal_dummy_criteria.py
Euro NCAP MPDB and full width Score the 2026 frontal tests with modifiers and compatibility 06_euroncap_mpdb_fwdb.py
Bharat NCAP star rating Score the ODB frontal and MDB side tests and get the star rating 07_bharat_ncap.py
Vehicle pulse and crush energy Compute OLC, delta-V, crush, absorbed energy, CFE and SEA 08_pulse_olc_crush.py
LS-DYNA energy checks Check energy balance and read d3hsp run information 09_lsdyna_energy_check.py
Batch runs, analytics and ML Process many runs into a table for dashboards, DOE and ML 10_batch_analytics.py
Features for machine learning Turn runs into a feature table of criteria, signal shape and design parameters for ML models 11_ml_features.py
Test-versus-CAE correlation Rate CAE against test signals with ISO/TS 18571, the CC rating and error measures 12_test_cae_correlation.py
Intrusion measurement Measure pedal, steering column, A-pillar and footwell intrusion relative to the vehicle, from CAE or before/after test measurements 13_intrusion.py
Homologation compliance Check UN R94 / AIS-098, UN R95 / AIS-099, UN R135 and post-crash electrical safety, requirement by requirement 14_homologation.py
Euro NCAP side and far side Score the 2026 AE-MDB, pole and far side tests (35 points) with modifiers, robustness and the far side rules 15_euroncap_side.py
Bharat NCAP child occupant and complete rating Score child occupant protection (dynamic, CRS installation, vehicle based) and apply the safety assist qualifiers to the stars 16_bharat_ncap_cop_rating.py
Rear impact (whiplash) Compute NIC and Nkm from BioRID signals and score the 2026 rear impact assessment (front seat geometry and sled tests, rear seats) 17_whiplash.py
LS-DYNA ASCII output Read nodout, rcforc, sleout, secforc, rwforc, sbtout, deforc, jntforc, abstat, rbdout, spcforc and swforc into arrays, a whole run at once or as CSV 18_lsdyna_ascii.py
Load paths and energy Rank parts by absorbed energy (matsum), read section forces (secforc), check the load split between upper, middle and lower paths and the crush sequence 30_load_paths.py
Load paths and energy Compare a baseline with variants: the parts that explain the change, where the load went, all runs side by side, a Markdown report 31_compare_runs.py
Spot weld failure Find failed and critical spot welds (swforc), the failure sequence and unzipping bursts, and the welds that fail only in a variant 32_spot_weld_failure.py
LS-DYNA binout Read binout files (one or several, single or double precision) as the same objects as the ASCII files; run folders with binout only work in every analysis 36_binout.py
Keyword decks: check before you run Read a deck with its includes and parameters; parts, mass and time step before the run; missing includes and IDs, duplicates, contacts; load case and whether the outputs give what the analyses need; edit and write DOE variants 35_keyword_deck.py
Model quality check sheet Check a run before trusting it: termination, mass and centre of gravity, added mass, time step, energy balance and contact energies in one pass/fail sheet, several runs side by side 33_model_quality.py
Euro NCAP sled and virtual testing (VTC) Validate restraint simulations against sled tests (model quality, ISO/TS 18571 sensor scores, assessment criteria) and score the 10-point sled and virtual testing; exchange data as ISO-MME 19_euroncap_virtual_testing.py
DOE, sensitivity and probabilistic ratings Sample design variables (with LS-DYNA parameters), use margins to the limits as ML targets, rank which variable drives which criterion 20_doe_margins_sensitivity.py
DOE, sensitivity and probabilistic ratings Turn test scatter into the probability of a star rating 21_probabilistic_rating.py
Bharat NCAP star rating Go from unfiltered dummy channels to the Bharat NCAP scores and a scorecard with point losses and the next star 22_bncap_channels_scorecard.py
Material cards Read a tensile test from a machine export, clean the curve and get E, Rp0.2, Rm, Ag and A (first steps to a *MAT_024 card) 23_tensile_test.py
Material cards Handle Lüders plateaus and cross-head strains, and combine several specimens into a mean curve with scatter 24_tensile_specimens.py
Material cards Build the *MAT_024 hardening curve: true stress, necking, plastic strain, Swift / Voce / Hockett-Sherby / Swift-Voce extrapolation, n and K 25_hardening_curve.py
Material cards Fit Cowper-Symonds and Johnson-Cook to tests at several strain rates, write a checked strain-rate *DEFINE_TABLE, find crossing curves 26_strain_rate_table.py
Material cards Write the *MAT_024 card with its curve or rate table in any LS-DYNA unit system, with a simple failure strain and a provenance header 27_mat024_card.py
Material cards Read and check existing *MAT_024 cards, convert their units, compare two cards, verify one with a single-element test, keep a material library 28_check_existing_cards.py
Failure with GISSMO Fit the failure strain against triaxiality from shear, notched and biaxial tests (with their loading paths), add instability from the FLC and element size regularisation, and write *MAT_ADD_DAMAGE_GISSMO with the *MAT_024 29_gissmo_failure.py

The general workflow

Almost every calculation follows the same four steps:

flowchart LR
    A[Raw channels<br>test or CAE] --> B[Units and signs<br>to_seconds, to_g]
    B --> C[Filter<br>cfc_filter]
    C --> D[Criteria<br>HIC, VC, Nij, TI ...]
    D --> E[Scores and ratings<br>Euro NCAP, Bharat NCAP, AIS-100]
  1. Load the time base and channels as arrays.
  2. Convert to the units and signs crashmetrics expects (conventions).
  3. Filter each channel with its CFC.
  4. Calculate the criteria, then score them for the protocol you need.

You can also start at step 4 or 5: if you already have peak values (from a test report or a post-processor), the scoring functions take numbers directly.