crashmetrics.pulse¶
pulse
¶
Vehicle crash pulse metrics.
Functions:
olc: Occupant Load Criterion (OLC).pulse_summary: Velocity change, time to zero velocity, maximum displacement, rebound and deceleration of a crash pulse.
Inputs are in SI units: time in s, acceleration in m/s^2, velocity
in m/s. The acceleration is the vehicle (or barrier) longitudinal
acceleration in its direction of travel, so it is negative while the
vehicle decelerates, and velocity is v0 + integral(acceleration).
The record should start at the time of first contact (T0), when the
velocity is v0. Filter the acceleration first if your protocol
requires it (Euro NCAP uses CFC 180 for the MPDB OLC).
OLC_GRAVITY
module-attribute
¶
Value of g in m/s^2 used by Euro NCAP to express OLC in g.
OLCResult
dataclass
¶
Result of an OLC calculation.
PulseSummary
dataclass
¶
PulseSummary(
v0: float,
final_velocity: float,
delta_v: float,
time_to_zero_velocity: float | None,
max_displacement: float,
time_of_max_displacement: float,
rebound_velocity: float,
restitution: float,
peak_deceleration: float,
mean_deceleration: float | None,
)
Summary of a vehicle crash pulse. SI units throughout.
final_velocity
instance-attribute
¶
Velocity at the end of the record, m/s (negative if rebounding).
delta_v
instance-attribute
¶
Velocity change over the record, v0 - final_velocity, m/s.
time_to_zero_velocity
instance-attribute
¶
First time the velocity reaches zero, s; None if it never does.
max_displacement
instance-attribute
¶
Maximum displacement from the start (dynamic crush into a rigid barrier), m.
time_of_max_displacement
instance-attribute
¶
Time of the maximum displacement, s.
rebound_velocity
instance-attribute
¶
Largest rearward velocity reached, m/s; zero without rebound.
peak_deceleration
instance-attribute
¶
Largest deceleration (largest negative acceleration), m/s^2.
mean_deceleration
instance-attribute
¶
v0 / time_to_zero_velocity, m/s^2; None if velocity never
reaches zero.
olc
¶
olc(
time: ArrayLike,
acceleration: ArrayLike,
v0: float,
free_flight: float = 0.065,
restraint: float = 0.235,
gravity: float = OLC_GRAVITY,
) -> OLCResult
Return the Occupant Load Criterion (OLC) of a crash pulse.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
ArrayLike
|
1D time array in s, starting at T0. |
required |
acceleration
|
ArrayLike
|
1D vehicle longitudinal acceleration in m/s^2, negative while decelerating (see the module notes). |
required |
v0
|
float
|
Vehicle velocity at the first sample, in m/s. |
required |
free_flight
|
float
|
Free-flight distance of the virtual occupant, in m. |
0.065
|
restraint
|
float
|
Restraint-phase distance of the virtual occupant, in m. |
0.235
|
gravity
|
float
|
Value of g used to express OLC in g. Euro NCAP uses 9.81. |
OLC_GRAVITY
|
Returns:
| Type | Description |
|---|---|
OLCResult
|
|
Notes
A virtual occupant initially moves at v0 without restraint
(free flight) until it has moved free_flight relative to the
vehicle, at time t1. It then decelerates uniformly at the OLC
until its velocity equals the vehicle velocity at t2, having
moved a further restraint relative to the vehicle. With
V(t) the vehicle velocity and S(t) its displacement:
v0 * t1 - S(t1) = free_flight(v0 + V(t2)) / 2 * (t2 - t1) - (S(t2) - S(t1)) = restraintOLC = (v0 - V(t2)) / (t2 - t1)
This follows the Euro NCAP definition (Data Acquisition and Injury Calculation protocol, MPDB OLC). Both times are solved by bisection to floating-point precision.
pulse_summary
¶
pulse_summary(
time: ArrayLike, acceleration: ArrayLike, v0: float
) -> PulseSummary
Summarise a vehicle crash pulse.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
ArrayLike
|
1D time array in s, starting at T0. |
required |
acceleration
|
ArrayLike
|
1D vehicle longitudinal acceleration in m/s^2, negative while decelerating. |
required |
v0
|
float
|
Vehicle velocity at the first sample, in m/s. |
required |
Returns:
| Type | Description |
|---|---|
PulseSummary
|
Times are measured from the first sample. |
Notes
The maximum displacement is the vehicle's own displacement from the start; it equals dynamic crush only for an impact into a fixed rigid barrier.