Skip to content

Vehicle pulse and crush energy

Modules: crashmetrics.pulse (olc, pulse_summary) and crashmetrics.energy (integrate_acceleration, absorbed_energy, crush_metrics, kinetic_energy).

Occupant Load Criterion (OLC)

The OLC describes how hard the vehicle pulse is on a restrained occupant. A virtual occupant moves 65 mm in free flight, then decelerates uniformly over a further 235 mm until it reaches the vehicle velocity; the OLC is that deceleration (Euro NCAP CP 005).

from crashmetrics.pulse import olc
from crashmetrics.signals import cfc_filter

a = cfc_filter(t, accel_x, cfc=180)      # m/s^2, negative while decelerating
result = olc(t, a, v0=50 / 3.6)          # initial velocity, m/s
result.value                             # g (9.81 m/s^2 per g, change with gravity=)
result.t1, result.t2                     # end of free flight and of restraint phase, s

The record should start at T0. The tests check olc against the closed-form solution for constant deceleration and an independent numerical formulation.

Pulse summary

from crashmetrics.pulse import pulse_summary

s = pulse_summary(t, a, v0=50 / 3.6)
s.delta_v, s.rebound_velocity, s.restitution
s.max_displacement, s.time_of_max_displacement   # dynamic crush, m and s
s.peak_deceleration, s.mean_deceleration         # m/s^2

Velocity and displacement from acceleration

from crashmetrics.energy import integrate_acceleration, kinetic_energy

velocity, displacement = integrate_acceleration(t, a, v0=13.9)
kinetic_energy(1500.0, 13.9)          # J for 1500 kg at 13.9 m/s

Warning

Integration amplifies sensor offset and drift. Check the zero level of test data before integrating.

Crash box and rail energy

For a force–displacement curve (for example force in kN and crush in mm, which gives energy in J):

from crashmetrics.energy import absorbed_energy, crush_metrics

energy_curve = absorbed_energy(crush_mm, force_kN)     # cumulative energy at each sample
box = crush_metrics(crush_mm, force_kN, mass=1.2, max_displacement=150.0)
box.energy, box.mean_force, box.peak_force, box.peak_force_displacement
box.crush_force_efficiency           # mean / peak force
box.specific_energy_absorption       # energy / mass
Metric Definition
Absorbed energy \(E = \int F\,dx\) (trapezoidal)
Mean force \(E / \text{crush distance}\)
Crush force efficiency (CFE) mean force / peak force
Specific energy absorption (SEA) \(E / m\)

max_displacement evaluates the metrics over a fixed stroke, so different designs compare fairly; always report the stroke with them. The energy functions do not convert units: use one consistent system.

Tested on real crash tests

pulse_summary and the CFC filter are checked on vehicle acceleration channels of two tests of the NHTSA Vehicle Crash Test Database (public information; the files are in tests/data/nhtsa/):

Test Check Result
2320: 1996 Dodge Neon, rigid barrier, 56.5 km/h Peak, crush, its time and restitution (CFC 60) against the values an independent project computed from the same channel 35.2 g, 740 mm at 78 ms, 0.162, against 35.2 g, 740 mm, 78 ms and 0.163
4429: 1999 Lincoln Navigator head-on into a 1996 Dodge Neon, 48.5 km/h each Momentum conservation: the velocity changes are in the inverse ratio of the masses 1.96 against 2.08 (6 %)
4429 Both cars end at the common velocity of a plastic impact (4.7 m/s) 4.0 and 5.0 m/s

For test 2320 the OLC is 29 g. Removing the 0.06 g pre-impact offset of the channel changes the crush by 2 mm.

import numpy as np
from crashmetrics.pulse import pulse_summary
from crashmetrics.signals import cfc_filter

t, a_g = np.loadtxt("tests/data/nhtsa/v02320tsv.078").T      # s, g
keep = t >= 0                                                # from first contact
a = cfc_filter(t, a_g, 60)[keep] * 9.80665                   # m/s^2
s = pulse_summary(t[keep], a, v0=56.5 / 3.6)
s.max_displacement, s.time_of_max_displacement, s.restitution   # 0.740 m, 0.078 s, 0.162

Complete example

"""Example 8: vehicle crash pulse (OLC, delta-V, crush) and crash box energy.

The vehicle acceleration is in its direction of travel, so it is
negative while the car decelerates, in SI units (s, m/s^2, m/s).
"""

import numpy as np

from crashmetrics.energy import (
      absorbed_energy,
      crush_metrics,
      integrate_acceleration,
      kinetic_energy,
)
from crashmetrics.pulse import olc, pulse_summary
from crashmetrics.signals import cfc_filter

# --- 1. Vehicle pulse: 50 km/h into a barrier, about 100 ms -----------------
t = np.arange(0.0, 0.15, 1e-4)
v0 = 50.0 / 3.6                                         # m/s
shape = np.where(t < 0.1, np.sin(np.pi * t / 0.1), 0.0)
rng = np.random.default_rng(3)
# Half-sine sized for a 15 % rebound: delta-V = 1.15 x v0
a_raw = -1.15 * v0 * np.pi / 0.2 * shape + 5.0 * rng.standard_normal(t.size)
a = cfc_filter(t, a_raw, cfc=180)                       # Euro NCAP uses CFC 180 for OLC

result = olc(t, a, v0=v0)
print(f"OLC          : {result.value:.1f} g "
      f"(free flight ends {result.t1 * 1000:.1f} ms, "
      f"restraint phase ends {result.t2 * 1000:.1f} ms)")

summary = pulse_summary(t, a, v0=v0)
print(f"Delta-V      : {summary.delta_v:.2f} m/s, "
      f"rebound {summary.rebound_velocity:.2f} m/s "
      f"(restitution {summary.restitution:.2f})")
print(f"Dynamic crush: {summary.max_displacement * 1000:.0f} mm at "
      f"{summary.time_of_max_displacement * 1000:.1f} ms")
print(f"Deceleration : peak {summary.peak_deceleration / 9.81:.1f} g, "
      f"mean {summary.mean_deceleration / 9.81:.1f} g")

# Velocity and displacement histories, and the energy to absorb
velocity, displacement = integrate_acceleration(t, a, v0=v0)
print(f"Kinetic energy at 50 km/h, 1500 kg: {kinetic_energy(1500.0, v0) / 1000:.1f} kJ")

# --- 2. Crash box: force (kN) against crush (mm) gives energy in J ----------
crush = np.linspace(0.0, 180.0, 901)                    # mm
force = (110.0 * (crush / 4.0) * np.exp(1.0 - crush / 4.0)        # initial peak
         + 55.0 * (1.0 - np.exp(-crush / 5.0)) + 8.0 * np.sin(crush / 6.0))   # kN
energy_curve = absorbed_energy(crush, force)
box = crush_metrics(crush, force, mass=1.2, max_displacement=150.0)
print(f"Crash box    : {box.energy / 1000:.2f} kJ over {box.crush_distance:.0f} mm, "
      f"mean {box.mean_force:.1f} kN, peak {box.peak_force:.1f} kN at "
      f"{box.peak_force_displacement:.1f} mm")
print(f"               CFE {box.crush_force_efficiency:.2f}, "
      f"SEA {box.specific_energy_absorption / 1000:.1f} kJ/kg, "
      f"energy at full stroke {energy_curve[-1] / 1000:.2f} kJ")

Output:

OLC          : 26.0 g (free flight ends 37.6 ms, restraint phase ends 100.0 ms)
Delta-V      : 15.94 m/s, rebound 2.06 m/s (restitution 0.15)
Dynamic crush: 624 mm at 76.6 ms
Deceleration : peak 25.7 g, mean 18.5 g
Kinetic energy at 50 km/h, 1500 kg: 144.7 kJ
Crash box    : 9.17 kJ over 150 mm, mean 61.1 kN, peak 147.8 kN at 5.0 mm
               CFE 0.41, SEA 7.6 kJ/kg, energy at full stroke 10.86 kJ