crashmetrics.whiplash¶
whiplash
¶
Rear impact (whiplash): BioRID criteria and the 2026 Euro NCAP / ANCAP rear impact score.
Follows the Crash Protection Rear Impact protocol v1.2 (August 2026, 2026-2028) for the points and limits and Euro NCAP CP 005 v1.4.1 for the criteria. The rear impact score is out of 5 points:
- Front seat, 4 points: static geometry 1 (head restraint height and backset) and dynamic 3 (sled tests with the medium and high severity pulses, 1.5 points each: NIC, upper neck shear Fx and tension Fz, 0.5 points each).
- Rear seats, 1 point: head restraint geometry and non-use position.
Functions:
nic: Neck Injury Criterion from T1 and head x accelerations.nkm: Nkm neck criterion from upper neck Fx and My.score_whiplash_pulse: Points of one sled test (1.5), with capping.front_geometry_score: Static geometry of a front seat (0-1).score_front_seat: The 4-point front seat score.rear_seat_score,score_rear_seats: The 1-point rear score.score_whiplash: The 5-point total.
Units: accelerations m/s^2 (or g with units="g"), forces N, moments
N m, heights and backsets mm, velocities m/s, times ms, angles deg.
NKM_INTERCEPTS
module-attribute
¶
NKM_INTERCEPTS: dict[str, float] = {
"flexion": 88.1,
"extension": -47.5,
"shear_anterior": 845.0,
"shear_posterior": -845.0,
}
Nkm intercepts (CP 005 3.2.7): moments N m, forces N.
OC_DISTANCE
module-attribute
¶
Distance from the upper neck load cell to the occipital condyle, m.
WHIPLASH_LIMITS
module-attribute
¶
WHIPLASH_LIMITS: dict[
str, dict[str, tuple[float, float]]
] = {
"medium": {
"nic": (11.0, 24.0),
"upper_neck_fx": (30.0, 190.0),
"upper_neck_fz": (360.0, 750.0),
},
"high": {
"nic": (13.0, 23.0),
"upper_neck_fx": (30.0, 210.0),
"upper_neck_fz": (470.0, 770.0),
},
}
Scored criteria per pulse: (higher, lower) performance limits. NIC m^2/s^2, upper neck shear +Fx and tension Fz in N; 0.5 points each, linear between the limits.
WHIPLASH_CAPPING
module-attribute
¶
WHIPLASH_CAPPING: dict[str, dict[str, float]] = {
"medium": {
"nic": 27.0,
"rebound_velocity": 5.2,
"upper_neck_fx": 290.0,
"upper_neck_fx_negative": 360.0,
"upper_neck_fz": 900.0,
"upper_neck_my_extension": 30.0,
"upper_neck_my_flexion": 30.0,
"lower_neck_fx": 360.0,
"lower_neck_my_extension": 30.0,
"lower_neck_my_flexion": 30.0,
},
"high": {
"nic": 25.5,
"nkm": 0.78,
"rebound_velocity": 6.0,
"upper_neck_fx": 364.0,
"upper_neck_fx_negative": 360.0,
"upper_neck_fz": 1024.0,
"upper_neck_my_extension": 30.0,
"upper_neck_my_flexion": 30.0,
"lower_neck_fx": 360.0,
"lower_neck_my_extension": 30.0,
"lower_neck_my_flexion": 30.0,
"seatback_deflection": 32.0,
},
}
Capping limits per pulse: reaching any gives no points for that pulse. Values are compared as magnitudes (negative shear, moments).
T1_THRC_CAPPING
module-attribute
¶
T1_THRC_CAPPING: dict[str, tuple[float, float]] = {
"medium": (15.55, 92.0),
"high": (17.8, 92.0),
}
T1 acceleration (g) and head restraint contact start T-HRC (ms): capping applies only if both are reached.
NkmResult
dataclass
¶
PulseScore
dataclass
¶
FrontSeatScore
dataclass
¶
FrontSeatScore(
points: float,
geometry: float,
test_position: float,
lowest_rearmost: float,
dynamic: float,
medium: PulseScore,
high: PulseScore,
notes: tuple[str, ...] = (),
max_points: float = 4.0,
)
RearSeat
dataclass
¶
RearSeat(
height_lowest: float,
height_highest: float,
backset_mid: float,
backset_worst: float,
torso_angle: float,
roofline_gap: float | None = None,
non_use_position: bool = False,
)
Rear outboard seat head restraint measurements.
height_lowest
instance-attribute
¶
Effective height in the lowest position, mm.
height_highest
instance-attribute
¶
Effective height in the highest position, mm.
roofline_gap
class-attribute
instance-attribute
¶
Gap to the roofline / headliner at the highest position, mm, if the roofline prevents the heights (at most 50 mm is accepted).
non_use_position
class-attribute
instance-attribute
¶
Non-use position accepted (automatic return, rotation > 60 deg, torso line change > 10 deg, or the discomfort metric).
nic
¶
nic(
time: ArrayLike,
t1_ax: ArrayLike,
head_ax: ArrayLike,
t_end: float | None = None,
units: Literal["m/s^2", "g"] = "m/s^2",
) -> float
Return the Neck Injury Criterion, m^2/s^2 (CP 005 3.2.6).
NIC(t) = 0.2 a_rel(t) + v_rel(t)^2 with a_rel = a_T1,x -
a_head,x and v_rel its time integral; the maximum is taken up
to t_end (head restraint contact end, T-HRC(end), in s).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
ArrayLike
|
Time in s, starting at T-zero. |
required |
t1_ax
|
ArrayLike
|
T1 x acceleration (mean of left and right) and head CoG x acceleration, CFC 60. |
required |
head_ax
|
ArrayLike
|
T1 x acceleration (mean of left and right) and head CoG x acceleration, CFC 60. |
required |
t_end
|
float | None
|
End of the evaluation, s (T-HRC(end)); default: whole record. |
None
|
units
|
Literal['m/s^2', 'g']
|
Unit of the accelerations. |
'm/s^2'
|
nkm
¶
nkm(
time: ArrayLike,
fx: ArrayLike,
my: ArrayLike,
t_end: float | None = None,
) -> NkmResult
Return Nkm (CP 005 3.2.7) from upper neck Fx (N) and My (N m).
M_OCy = My - 0.01778 Fx; each of the four combinations
M_OCy / M_int + Fx / F_int (flexion 88.1 or extension -47.5 N m;
anterior 845 or posterior -845 N) counts only where both the moment
and the force have that combination's sign (the other terms set to
zero, an AND condition). Evaluated up to t_end (T-HRC(end), s).
score_whiplash_pulse
¶
score_whiplash_pulse(
pulse: Pulse, values: Mapping[str, float]
) -> PulseScore
Score one front seat sled test.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pulse
|
Pulse
|
|
required |
values
|
Mapping[str, float]
|
|
required |
front_geometry_score
¶
Static geometry of a front seat in the test position, 0-1.
The worse of the effective head restraint height (1 at 825 mm or more, 0 at 790 mm or less, linear between) and the backset (1 below 45 mm, 0 at 45 mm or more).
score_front_seat
¶
score_front_seat(
medium: PulseScore,
high: PulseScore,
effective_height: float,
backset: float,
lowest_rearmost: Sequence[tuple[float, float]] = (),
front_seats: int = 2,
automatic_head_restraint: bool = False,
head_restraint_structure_ok: bool = True,
dummy_loading: bool = False,
) -> FrontSeatScore
The 4-point front seat score.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
medium
|
PulseScore
|
The two pulse scores. |
required |
high
|
PulseScore
|
The two pulse scores. |
required |
effective_height
|
float
|
Head restraint geometry in the test position, mm. |
required |
backset
|
float
|
Head restraint geometry in the test position, mm. |
required |
lowest_rearmost
|
Sequence[tuple[float, float]]
|
(effective height, backset) in the lowest and rearmost position
of each front seat; a seat meeting 790 mm and 70 mm earns
0.5 / |
()
|
front_seats
|
int
|
Number of front seats, n. |
2
|
head_restraint_structure_ok
|
bool
|
False if the head restraint structure requirement (120 mm cylinder) is not met: geometry 0. |
True
|
dummy_loading
|
bool
|
Seat design exploiting the dummy or loading other body areas unfavourably: -1 point. |
False
|
Notes
Geometry is the test position score plus the lowest and rearmost credit, at most 1 point (see the protocol notes).
rear_backset_limit
¶
Rear seat backset limit, mm: 7.128 x torso angle (deg) + 153.
rear_seat_score
¶
rear_seat_score(seat: RearSeat) -> float
Score of one rear outboard seat, 0-1: effective height 0.375, backset mid 0.25 and worst-case 0.125 (only with the height), and non-use position 0.25 (only with geometry above 0).
score_rear_seats
¶
score_rear_seats(
seats: Sequence[RearSeat], centre_seat_r17: bool = True
) -> float
Rear score, 0-1: the outboard seat scores scaled to 1 point (their mean). A row scores only if its centre seat meets UN R17 head restraint requirements as standard. For symmetric seats give one seat twice.
score_whiplash
¶
score_whiplash(
front: FrontSeatScore, rear: float
) -> WhiplashScore
The 5-point rear impact score (front 4 + rear 1).