crashmetrics.frontal_scoring¶
frontal_scoring
¶
Euro NCAP frontal impact scoring: MPDB and full width (2026 protocols).
Follows the Euro NCAP Crash Protection Frontal Impact Protocol v1.1 (September 2025, for 2026-2028) and CP 007 Assessment Modifiers v1.1.
Scoring scheme
Each injury criterion gets a colour band from its higher (HPL) and
lower (LPL) performance limits. The band width is (LPL - HPL) / 3
(protocol Section 3.4.1)::
green value < HPL
yellow HPL <= value < HPL + width
orange HPL + width <= value < HPL + 2 width
brown HPL + 2 width <= value < LPL
red value >= LPL
A criterion with an LPL only (no HPL) is green below the LPL and red at
or above it. A body region takes the band of its lowest-scoring
criterion and earns that band's share of the region's points (Section
3.5: green 1.25, yellow 1.0, orange 0.75, brown 0.5, red 0 of 1.25,
i.e. 100, 80, 60, 40 and 0 %; see BAND_FRACTIONS).
Occupant modifiers are percentages of the region's maximum points (Q
dummy score modifiers of the whole dummy score) and full-scale modifiers
percentages of 10 points per load case. Scores do not go below zero
(CP 007, Section 1). The MPDB compatibility penalty follows CP 007
Appendix A (compatibility_penalty). Without hard head contact (peak resultant
head acceleration above 80 g or other evidence), HIC15 and the head
3 ms acceleration are not applied to adult dummies; Q dummies are then
assessed on the head 3 ms acceleration only.
Units: forces in N, moments in N m, deflections and displacements in mm, accelerations in g, VC in m/s. Pass the worst of left and right.
Check all limits against the protocol version you assess to.
BAND_FRACTIONS
module-attribute
¶
BAND_FRACTIONS: dict[str, float] = {
"green": 1.0,
"yellow": 0.8,
"orange": 0.6,
"brown": 0.4,
"red": 0.0,
}
Share of the region points per band, from the protocol's Section 3.5
text (1.25 / 1.0 / 0.75 / 0.5 / 0 points). The colour band tables of the
same protocol (Section 3.4) print 100 / 80 / 40 / 20 / 0 % instead; pass
band_fractions=BAND_FRACTIONS_TABLE to use those.
BAND_FRACTIONS_TABLE
module-attribute
¶
BAND_FRACTIONS_TABLE: dict[str, float] = {
"green": 1.0,
"yellow": 0.8,
"orange": 0.4,
"brown": 0.2,
"red": 0.0,
}
Band shares as printed in the Section 3.4 colour band tables.
ADULT_REGIONS
module-attribute
¶
ADULT_REGIONS: dict[str, tuple[str, ...]] = {
"head_neck": (
"hic15",
"head_a3ms",
"neck_shear",
"neck_tension",
"neck_extension",
),
"chest_abdomen": (
"chest_compression",
"viscous_criterion",
"abdomen_compression",
),
"knee_femur_pelvis": (
"acetabulum_force",
"femur_force",
"knee_displacement",
),
"lower_leg": ("tibia_index", "tibia_force"),
}
Criteria of each adult body region (only those with a limit for the dummy are used).
CHILD_REGIONS
module-attribute
¶
CHILD_REGIONS: dict[str, tuple[str, ...]] = {
"head": ("hic15", "head_a3ms"),
"neck": ("neck_tension", "neck_extension"),
"chest": ("chest_compression", "chest_a3ms"),
}
Criteria of each Q6 / Q10 body region.
DUMMY_LIMITS
module-attribute
¶
DUMMY_LIMITS: dict[str, dict[str, Limit]] = {
"hybrid3_05": {
**_head_neck(
Limit(1200.0, 2000.0, 2700.0, True),
Limit(1700.0, 2600.0, 2900.0, True),
Limit(36.0, 49.0, 57.0, True),
),
"viscous_criterion": Limit(0.5, 1.0, 1.0),
"femur_force": Limit(2600.0, 6200.0),
"knee_displacement": Limit(6.0, 15.0),
"tibia_index": Limit(None, 1.3),
"tibia_force": Limit(None, 8000.0),
},
"hybrid3_50": {
**_head_neck(
Limit(1900.0, 3100.0, 3100.0),
Limit(2700.0, 3300.0, 3300.0),
Limit(42.0, 57.0, 57.0),
),
"viscous_criterion": Limit(0.5, 1.0, 1.0),
"femur_force": Limit(3800.0, 9100.0),
"knee_displacement": Limit(6.0, 15.0),
"tibia_index": Limit(0.4, 1.3),
"tibia_force": Limit(2000.0, 8000.0),
},
"thor_50": {
**_head_neck(
Limit(1900.0, 3100.0, 3100.0),
Limit(2700.0, 3300.0, 3300.0),
Limit(42.0, 57.0, 57.0),
),
"abdomen_compression": Limit(None, 88.0),
"acetabulum_force": Limit(3300.0, 4100.0),
"femur_force": Limit(3800.0, 9100.0),
"knee_displacement": Limit(6.0, 15.0),
"tibia_index": Limit(0.4, 1.3),
"tibia_force": Limit(2000.0, 8000.0),
},
"hybrid3_95": {
**_head_neck(
Limit(2300.0, 3800.0),
Limit(3300.0, 4000.0),
Limit(56.0, 76.0),
capping=False,
),
"viscous_criterion": Limit(0.5, 1.0),
"femur_force": Limit(4800.0, 11500.0),
"knee_displacement": Limit(6.0, 17.0),
"tibia_index": Limit(0.4, 1.3),
"tibia_force": Limit(4000.0, 10000.0),
},
"q6": {
"hic15": Limit(500.0, 700.0, 700.0),
"head_a3ms": Limit(60.0, 80.0, 80.0),
"neck_tension": Limit(1700.0, 2620.0),
"neck_extension": Limit(None, 36.0),
"chest_compression": Limit(30.0, 42.0, 56.0),
},
"q10": {
"hic15": Limit(500.0, 700.0, 700.0),
"head_a3ms": Limit(60.0, 80.0, 80.0),
"neck_tension": Limit(1700.0, 2620.0),
"neck_extension": Limit(None, 49.0),
"chest_compression": Limit(None, 56.0, 56.0),
"chest_a3ms": Limit(41.0, 55.0, 55.0),
},
}
Limits per dummy from the protocol's Section 3.5 (kN converted to N).
Chest compression of adult dummies depends on the test speed; see
CHEST_COMPRESSION_LIMITS. The THOR chest compression is Rmax.
Hybrid III 95th tibia HPLs are bracketed in the protocol (to apply once
a lower leg certification procedure exists). Hybrid III 5th neck capping
applies to the driver only. Q6 / Q10 neck extension and Q10 chest
compression are printed as single values and used as LPLs.
CHEST_COMPRESSION_LIMITS
module-attribute
¶
CHEST_COMPRESSION_LIMITS: dict[str, dict[int, Limit]] = {
"hybrid3_05": {
35: Limit(18.0, 34.0, 34.0),
50: Limit(18.0, 34.0, 34.0),
56: Limit(22.0, 42.0, 42.0),
},
"hybrid3_50": {
35: Limit(20.0, 42.0, 42.0),
50: Limit(20.0, 42.0, 42.0),
},
"thor_50": {
35: Limit(29.0, 54.0, 54.0),
50: Limit(35.0, 60.0, 60.0),
},
"hybrid3_95": {
50: Limit(28.0, 55.0),
56: Limit(28.0, 55.0),
},
}
Adult chest compression limits (mm) by test speed (km/h).
MPDB_OCCUPANTS
module-attribute
¶
MPDB_OCCUPANTS: dict[str, tuple[str, dict[str, float]]] = {
"driver": (
"thor_50",
dict.fromkeys(ADULT_REGIONS, 1.25),
),
"front_passenger": (
"hybrid3_05",
dict.fromkeys(ADULT_REGIONS, 1.25),
),
"rear_q6": (
"q6",
{"head": 2.5, "neck": 1.25, "chest": 1.25},
),
"rear_q10": (
"q10",
{"head": 2.5, "neck": 1.25, "chest": 1.25},
),
}
MPDB (offset) test: dummy and region points per position (20 points).
FWDB_OCCUPANTS
module-attribute
¶
FWDB_OCCUPANTS: dict[str, tuple[str, dict[str, float]]] = {
"driver": (
"hybrid3_05",
dict.fromkeys(ADULT_REGIONS, 1.25),
),
"front_passenger": (
"thor_50",
dict.fromkeys(ADULT_REGIONS, 0.625),
),
"rear_passenger": (
"hybrid3_05",
{
"head_neck": 0.625,
"chest_abdomen": 1.25,
"knee_femur_pelvis": 0.625,
},
),
}
Full width test (35 km/h): dummy and region points per position (10 points); the rear passenger's lower leg is not scored.
OCCUPANT_MODIFIERS
module-attribute
¶
OCCUPANT_MODIFIERS: dict[str, tuple[str, float]] = {
"head_bottoming_out": ("head_neck", 20.0),
"unstable_airbag_contact": ("head_neck", 20.0),
"hazardous_airbag_deployment": ("head_neck", 20.0),
"excursion_450mm": ("head_neck", 50.0),
"excursion_550mm": ("head_neck", 100.0),
"steering_wheel_contact": ("chest_abdomen", 20.0),
"shoulder_belt_load": ("chest_abdomen", 40.0),
"submarining": ("knee_femur_pelvis", 100.0),
"knee_load_variable": ("knee_femur_pelvis", 20.0),
"knee_load_concentrated": ("knee_femur_pelvis", 20.0),
"pedal_rearward_100mm": ("lower_leg", 50.0),
"pedal_rearward_200mm": ("lower_leg", 100.0),
"pedal_vertical_72mm": ("lower_leg", 20.0),
"pedal_blocking": ("lower_leg", 20.0),
"incorrect_airbag_deployment": ("per region", 20.0),
"q6_excursion_550mm": ("head", 100.0),
"q10_excursion_450mm": ("head", 50.0),
"q10_excursion_550mm": ("head", 100.0),
"q_full_belt_slippage": ("dummy", 100.0),
"q_partial_belt_slippage": ("dummy", 50.0),
"q_restraint": ("dummy", 100.0),
"q_submarining": ("dummy", 100.0),
"q_ejection": ("dummy", 100.0),
"q_crs_attachment": ("dummy", 100.0),
}
Occupant modifiers (protocol Section 4.3.1): body region and penalty in
% of that region's points ("dummy": of the Q dummy score). DAMAGE:
see damage_modifier. Reference data for building the inputs.
FULL_SCALE_MODIFIERS
module-attribute
¶
FULL_SCALE_MODIFIERS: dict[str, float] = {
"a_pillar_100mm": 2.5,
"steering_column": 1.25,
"bodyshell_integrity": 1.25,
"footwell_rupture": 1.25,
"door_opening": 5.0,
"door_detachment": 100.0,
"restraint_failure": 100.0,
}
Full-scale test modifiers (Section 4.3.2), % of 10 points. Door opening applies per door; steering column uses the worst of rearward (>= 90 mm), vertical (>= 72 mm) and lateral (>= 90 mm).
FULL_SCALE_MODIFIER_BASE
module-attribute
¶
Full-scale modifiers are percentages of 10 points per load case.
COMPATIBILITY_MAX_PENALTY
module-attribute
¶
Largest compatibility penalty, points (25 % of the 20-point MPDB score, or 50 % of 10 points).
Limit
dataclass
¶
Limit(
hpl: float | None,
lpl: float,
capping: float | None = None,
capping_driver_only: bool = False,
)
Performance limits of one criterion (same units as the value).
CriterionResult
dataclass
¶
CriterionResult(
name: str,
value: float,
limit: Limit,
band: str,
capping_exceeded: bool,
)
capping_exceeded
instance-attribute
¶
True if the value is at or above the capping limit.
RegionScore
dataclass
¶
RegionScore(
name: str,
points: float,
max_points: float,
band: str,
governing: str,
modifier_percent: float,
criteria: tuple[CriterionResult, ...],
)
modifier_percent
instance-attribute
¶
Sum of the occupant modifiers applied, % of max_points.
DummyScore
dataclass
¶
DummyScore(
dummy: str,
points: float,
max_points: float,
regions: dict[str, RegionScore],
hard_contact: bool,
capping_exceeded: tuple[str, ...],
)
capping_exceeded
instance-attribute
¶
Criteria at or above their capping limit. The protocol extract does not state the consequence, so it is reported, not applied.
Occupant
dataclass
¶
Occupant(
values: Mapping[str, float],
hard_contact: bool | None = None,
modifiers: Mapping[str, Sequence[float]] = dict(),
dummy_modifiers: Sequence[float] = (),
)
Measured values and assessment inputs of one occupant.
values
instance-attribute
¶
Criterion values (keys of ADULT_REGIONS /
CHILD_REGIONS, plus optional "head_peak" in g).
hard_contact
class-attribute
instance-attribute
¶
Head hard contact; inferred from values["head_peak"] > 80 g if
None.
modifiers
class-attribute
instance-attribute
¶
Occupant modifiers per region, in % of the region points, e.g.
{"head_neck": [20.0]}.
dummy_modifiers
class-attribute
instance-attribute
¶
Modifiers of the whole dummy score in % (Q dummy score modifiers, e.g. 50 for partial belt slippage).
TestScore
dataclass
¶
TestScore(
points: float,
max_points: float,
occupants: dict[str, DummyScore],
occupant_points: float,
full_scale_deduction: float,
compatibility_penalty: float,
)
colour_band
¶
colour_band(value: float, limit: Limit) -> str
Colour band of a criterion value (see the module notes).
damage_modifier
¶
Head and neck modifier for THOR DAMAGE, %: 20 for 0.42 <= DAMAGE < 0.47, 40 at 0.47 or above, else 0.
score_dummy
¶
score_dummy(
dummy: str,
occupant: Occupant,
region_points: Mapping[str, float],
speed: int = 50,
band_fractions: Mapping[str, float] = BAND_FRACTIONS,
driver: bool = False,
exclude: Collection[str] = (),
) -> DummyScore
Score one dummy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dummy
|
str
|
Key of |
required |
occupant
|
Occupant
|
Values, hard contact and modifiers. |
required |
region_points
|
Mapping[str, float]
|
Maximum points per body region (e.g. from |
required |
speed
|
int
|
Test speed for the adult chest compression limits, km/h. |
50
|
band_fractions
|
Mapping[str, float]
|
Share of the region points per band. |
BAND_FRACTIONS
|
driver
|
bool
|
True for the driver (driver-only capping limits). |
False
|
exclude
|
Collection[str]
|
Criteria not assessed (e.g. |
()
|
Raises:
| Type | Description |
|---|---|
ValueError
|
For unknown criteria, or a missing value of a scored criterion. |
score_test
¶
score_test(
occupants: Mapping[str, DummyScore],
full_scale_modifiers: Sequence[float] = (),
compatibility_penalty: float = 0.0,
) -> TestScore
Combine dummy scores into a test score.
full_scale_modifiers are percentages of
FULL_SCALE_MODIFIER_BASE (10 points), e.g. 2.5 for A-pillar
displacement; compatibility_penalty is in points.
score_mpdb
¶
score_mpdb(
occupants: Mapping[str, Occupant],
full_scale_modifiers: Sequence[float] = (),
compatibility_penalty: float = 0.0,
band_fractions: Mapping[str, float] = BAND_FRACTIONS,
) -> TestScore
MPDB (offset) test score, 20 points at 50 km/h.
occupants has keys "driver" (THOR 50th), "front_passenger"
(Hybrid III 5th), "rear_q6" and "rear_q10". Give the
compatibility penalty in points (see compatibility_penalty).
score_fwdb
¶
score_fwdb(
occupants: Mapping[str, Occupant],
full_scale_modifiers: Sequence[float] = (),
speed: int = FWDB_SPEED,
band_fractions: Mapping[str, float] = BAND_FRACTIONS,
) -> TestScore
Full width test score, 10 points.
occupants has keys "driver" (Hybrid III 5th),
"front_passenger" (THOR 50th) and "rear_passenger" (Hybrid III
5th). The test runs at 35 km/h, which selects the chest compression
limits; speed overrides it.
compatibility_percentages
¶
MPDB compatibility sliding scales, % (CP 007 Appendix A.3).
The barrier deformation standard deviation sd (mm) scales linearly
from 50 mm (0 %) to 150 mm (100 %), the trolley OLC (g) from 25 g
(0 %) to 40 g (100 %); both are clamped to 0-100 %.
compatibility_penalty
¶
MPDB compatibility penalty in points (CP 007, Appendix A).
With s and o the SD and OLC sliding scales (0 to 1, see
compatibility_percentages)::
penalty = 1.25 (s + o + 2 s o) + 1.25 if bottoming out, <= 5 points
This is the scoring rationale of CP 007 Figure 2 (1.25 points for the SD alone, 1.25 for the OLC alone, 5 for both at 100 %, 1.25 points = 6.25 % of the MPDB score added for bottoming out) and reproduces its three worked examples (2.826, 5.0 and 2.242 points).