crashmetrics.pedestrian¶
hic
¶
Head Injury Criterion (HIC) calculations.
HICResult
dataclass
¶
Result of a HIC calculation.
start_time and end_time are in seconds, like the input
time; the *_ms properties give the same values in
milliseconds.
calculate_hic
¶
calculate_hic(
time: ArrayLike,
acceleration: ArrayLike,
window_ms: float = 15.0,
resolution_ms: float = 0.1,
method: str = "grid",
) -> HICResult
Calculate HIC using a refined, linearly interpolated time grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
ArrayLike
|
One-dimensional time array in seconds. |
required |
acceleration
|
ArrayLike
|
One-dimensional non-negative resultant acceleration in g. |
required |
window_ms
|
float
|
Maximum interval duration in milliseconds. If the signal is
shorter than this, a |
15.0
|
resolution_ms
|
float
|
Spacing of the refined time grid in milliseconds. |
0.1
|
method
|
str
|
|
'grid'
|
Returns:
| Type | Description |
|---|---|
HICResult
|
Approximate maximum HIC and its interval. |
Notes
The acceleration is treated as linear between samples, and its
integral is computed exactly. With method="grid" the maximum is
searched over end points on a uniform grid of resolution_ms
(plus the samples themselves, except for records of more than
20 000 samples that are over four times as dense as the grid), so
the result is a lower bound of the exact value whose accuracy
depends on resolution_ms (typically within 0.1 % at 0.1 ms; see the
HIC accuracy page of the documentation).
With method="exact", HIC(t1, t2) = (t2 - t1) [I / (t2 - t1)]^2.5
with I the integral of the linear interpolation is maximised over
all continuous endpoints. HIC is continuously differentiable in
both endpoints, so the maximum is either a stationary point,
where a(t1) = a(t2) = 0.6 I / (t2 - t1), or lies on the
boundary t2 - t1 = window (where a(t1) = a(t2)), at the start
or the end of the record. On every pair of linear segments these
conditions reduce to quadratic equations, which are solved in closed
form; segment pairs that cannot beat the grid result are skipped.
This numerical method is not, by itself, evidence of compliance with a regulatory assessment protocol.
headform
¶
Euro NCAP headform grid scoring for pedestrian and cyclist protection.
Functions:
hic_colour: Colour band of a HIC15 value.verification_colour: Colour assigned to a verification test, with the 10 % HIC tolerance.correction_factor: Correction factor from verification tests.headform_score: Head score of a full impact-point grid.
The rules follow the Euro NCAP protocols named in PROTOCOLS:
"euroncap_2026": Crash Protection - Vulnerable Road User Impacts, v1.1, September 2025 (head maximum 10 points, A-pillar rewards)."euroncap_2023": Assessment Protocol - Vulnerable Road User Protection, v11.4, December 2023 (head maximum 18 points).
Check them against the protocol version you assess to.
Grid points are identified by any hashable key, for example
(row, column) tuples such as (12, -6). Each grid point holds
either a predicted HIC15 value or one of these labels:
"green","yellow","orange","brown","red": predicted colour"default_red": defaulted red (for example roof), always 0 points"blue": blue point, scored from its own test result"a_pillar": A-pillar point; 0 points unless tested for the rewards of the 2026 protocol (in 2023 it scores as default red)
COLOUR_POINTS
module-attribute
¶
COLOUR_POINTS: dict[str, float] = {
"green": 1.0,
"yellow": 0.75,
"orange": 0.5,
"brown": 0.25,
"red": 0.0,
}
Points per grid point for each colour.
PROTOCOLS
module-attribute
¶
PROTOCOLS: dict[str, HeadformProtocol] = {
"euroncap_2026": HeadformProtocol(
name="Euro NCAP Crash Protection - VRU Impacts v1.1 (2026)",
max_points=10.0,
a_pillar_rewards=(
(20.0, 1000.0, 1.0),
(30.0, 1700.0, 2.0),
(40.0, 1700.0, 3.0),
),
),
"euroncap_2023": HeadformProtocol(
name="Euro NCAP Assessment Protocol - VRU v11.4 (2023)",
max_points=18.0,
a_pillar_rewards=None,
),
}
Built-in protocol versions.
HeadformProtocol
dataclass
¶
HeadformProtocol(
name: str,
max_points: float,
a_pillar_rewards: tuple[tuple[float, float, float], ...]
| None,
correction_range: tuple[float, float] = (0.85, 1.15),
)
Scoring parameters of one protocol version.
VerificationTest
dataclass
¶
VerificationTest(
point: Hashable,
predicted_colour: str,
measured_hic: float,
assessed_colour: str,
predicted_points: float,
actual_points: float,
)
One verification test and how it was assessed.
CorrectionFactorResult
dataclass
¶
CorrectionFactorResult(
factor: float,
unrounded_factor: float,
predicted_score: float,
actual_score: float,
accepted: bool,
tests: tuple[VerificationTest, ...],
)
Correction factor from verification tests.
factor
instance-attribute
¶
Factor applied to the predicted score (rounded if requested).
predicted_score
instance-attribute
¶
Predicted points of the verification points.
actual_score
instance-attribute
¶
Points of the verification points from the tests.
accepted
instance-attribute
¶
True if the factor is inside the protocol's accepted range.
HeadformScore
dataclass
¶
HeadformScore(
score: float,
max_score: float,
percentage: float,
grid_points: int,
total_points: float,
predicted_points: float,
corrected_points: float,
blue_points: float,
a_pillar_points: float,
correction: CorrectionFactorResult | None,
colour_counts: dict[str, int] = dict(),
protocol: str = "",
)
Head score of an impact-point grid.
percentage
instance-attribute
¶
Grid score as a percentage of the maximum (capped at 100).
grid_points
instance-attribute
¶
Number of grid points, the maximum achievable grid score.
total_points
instance-attribute
¶
Grid score before the 100 % cap: corrected predicted points plus blue and A-pillar points.
predicted_points
instance-attribute
¶
Predicted points of the coloured (non-special) grid points.
corrected_points
instance-attribute
¶
predicted_points multiplied by the correction factor.
correction
instance-attribute
¶
correction: CorrectionFactorResult | None
None when no verification tests were given (no correction).
colour_counts
class-attribute
instance-attribute
¶
Number of grid points per predicted colour or label.
hic_colour
¶
Return the colour band of a HIC15 value.
Green < 650 <= yellow < 1000 <= orange < 1350 <= brown < 1700 <= red.
verification_colour
¶
Colour assigned to a verification test result.
A 10 % tolerance on HIC15 applies only to confirm the predicted colour. If the measured value lies in the predicted colour's accepted range, the predicted colour stands; otherwise the colour is taken from the measured HIC15 without tolerance.
Accepted ranges (as tabulated in the protocols): green < 722.22; yellow 590.91 to < 1111.11; orange 909.09 to < 1500.00; brown 1227.27 to < 1888.89; red >= 1545.45.
correction_factor
¶
correction_factor(
tests: Mapping[Hashable, tuple[str | float, float]],
protocol: str = "euroncap_2026",
round_to: int | None = 3,
) -> CorrectionFactorResult
Return the correction factor from verification tests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tests
|
Mapping[Hashable, tuple[str | float, float]]
|
|
required |
protocol
|
str
|
Key of |
'euroncap_2026'
|
round_to
|
int | None
|
Decimal places to round the factor to before it is applied. The protocols' worked examples use three (for example 6.50 / 7.00 = 0.929). Use None to keep it unrounded. |
3
|
Returns:
| Type | Description |
|---|---|
CorrectionFactorResult
|
|
Notes
factor = actual score / predicted score of the verification
points, each scored with COLOUR_POINTS.
headform_score
¶
headform_score(
grid: Mapping[Hashable, str | float],
verification: Mapping[Hashable, float] | None = None,
blue_results: Mapping[Hashable, float] | None = None,
a_pillar_results: Mapping[
Hashable, Sequence[tuple[float, float]]
]
| None = None,
protocol: str = "euroncap_2026",
round_correction_factor: int | None = 3,
) -> HeadformScore
Return the Euro NCAP head score of an impact-point grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
grid
|
Mapping[Hashable, str | float]
|
|
required |
verification
|
Mapping[Hashable, float] | None
|
|
None
|
blue_results
|
Mapping[Hashable, float] | None
|
|
None
|
a_pillar_results
|
Mapping[Hashable, Sequence[tuple[float, float]]] | None
|
|
None
|
protocol
|
str
|
Key of |
'euroncap_2026'
|
round_correction_factor
|
int | None
|
Decimal places of the correction factor; see
|
3
|
Returns:
| Type | Description |
|---|---|
HeadformScore
|
|
Notes
Each grid point can earn at most one point from its colour (green 1, yellow 0.75, orange 0.5, brown 0.25, red 0), so the maximum grid score is the number of grid points. The predicted points of the coloured grid points are multiplied by the correction factor. Blue points (scored from their tests), default red points (0) and A-pillar points are not corrected. In the 2026 protocol each tested A-pillar point earns the reward of the highest speed at which it passes: 20 km/h with HIC15 < 1000 earns 1, 30 km/h with HIC15 < 1700 earns 2, 40 km/h with HIC15 < 1700 earns 3.
score = min(total_points / grid_points, 1) * max_points.
How the A-pillar rewards combine with the grid total is this package's reading of the protocol (added to the grid score; the maximum stays the number of grid points); confirm it for your use.
legform
¶
Euro NCAP legform scoring: aPLI (femur, knee/tibia) and upper legform (pelvis).
Functions:
sliding_scale: Score between a higher and a lower performance limit.leg_colour: Colour of a leg grid-point score.apli_point_score: Femur and knee/tibia scores of one aPLI test.upper_legform_point_score: Score of one upper legform test.upper_legform_alpha,upper_legform_energy: Upper legform impact angle, energy and test velocity, and whether a test is required.apli_score,upper_legform_score: Femur, knee/tibia and pelvis points of a full grid, filling untested points by symmetry and from the worst adjacent result.
Units: force in N, bending moment in N m, MCL elongation in mm, energy in J. The Euro NCAP limits (both protocols):
| Criterion | Higher limit | Lower limit |
|---|---|---|
| Upper legform sum of forces | 5.0 kN | 6.0 kN |
| aPLI femur bending moment | 390 N m | 440 N m |
| aPLI tibia bending moment | 275 N m | 320 N m |
| aPLI MCL elongation | 27 mm | 32 mm |
Region maxima: "euroncap_2026" (Crash Protection - VRU Impacts
v1.1) pelvis 2.5, femur 2.5, knee/tibia 5; "euroncap_2023" (VRU
Assessment Protocol v11.4) pelvis 4.5, femur 4.5, knee/tibia 9.
Grid points lie on a line across the vehicle. Give them as numbers
(lateral index, -5 to 5; 5.5 for an extra point 50 mm
outboard) or as Euro NCAP names such as "L+3", "L0", "U-2".
Point -n is the mirror of n.
LEGFORM_LIMITS
module-attribute
¶
LEGFORM_LIMITS: dict[str, tuple[float, float]] = {
"upper_legform_sum_of_forces": (5000.0, 6000.0),
"apli_femur_moment": (390.0, 440.0),
"apli_tibia_moment": (275.0, 320.0),
"apli_mcl_elongation": (27.0, 32.0),
}
(higher, lower) performance limits: N, N m, N m and mm.
UPPER_LEGFORM_NOMINAL_MASS
module-attribute
¶
Mass used for the nominal impact energy, kg.
UPPER_LEGFORM_TEST_MASS
module-attribute
¶
Upper legform impactor test mass, kg.
UPPER_LEGFORM_NOMINAL_VELOCITY
module-attribute
¶
Nominal velocity vo, m/s (40 km/h).
UPPER_LEGFORM_MIN_ENERGY
module-attribute
¶
A test is not required below this nominal impact energy, J.
LegformProtocol
dataclass
¶
Maximum points of the leg body regions in one protocol version.
ApliPointScore
dataclass
¶
ApliPointScore(
femur_moment: float,
tibia_moment: float,
mcl_elongation: float,
femur: float,
tibia: float,
mcl: float,
knee_tibia: float,
)
Scores of one aPLI test.
UpperLegformEnergy
dataclass
¶
UpperLegformEnergy(
alpha: float,
nominal_velocity: float,
energy: float,
test_velocity: float,
test_required: bool,
)
Upper legform nominal impact energy and test velocity.
LegRegionScore
dataclass
¶
LegRegionScore(
region: str,
points: float,
max_points: float,
percentage: float,
total: float,
grid_points: int,
scores: dict[Hashable, float],
sources: dict[Hashable, str],
protocol: str,
)
Points of one body region from a legform grid.
percentage
instance-attribute
¶
Sum of grid-point scores as a percentage of the number of points.
scores
instance-attribute
¶
Score of every grid point, from the highest lateral index down.
sources
instance-attribute
¶
Where each score comes from: "tested", "symmetry of X",
"worst adjacent X" or "not required (E < 160 J)".
ApliScore
dataclass
¶
ApliScore(
femur: LegRegionScore,
knee_tibia: LegRegionScore,
point_scores: dict[Hashable, ApliPointScore],
)
Femur and knee/tibia points from aPLI tests.
point_scores
instance-attribute
¶
point_scores: dict[Hashable, ApliPointScore]
Scores of the tested points.
round_score
¶
Round a score half up, as in the protocols' worked examples.
sliding_scale
¶
Return the score of value on a linear sliding scale.
1 at or below the higher performance limit, 0 at or above the lower performance limit, linear in between.
leg_colour
¶
Colour of a leg grid-point score, after rounding to 3 decimals.
Green 1.000; yellow 0.750 to < 1.000; orange 0.500 to < 0.750; brown 0.001 to < 0.500; red 0.000 (VRU Assessment Protocol v11.4, Section 1.3.3.2).
upper_legform_point_score
¶
Score of one upper legform test from the sum of forces.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sum_of_forces
|
ArrayLike
|
Peak sum of the upper and lower forces in N, or its time history (the peak magnitude is used). |
required |
round_to
|
int | None
|
Decimal places of the score (the protocols' examples use 3); None keeps it unrounded. |
3
|
apli_point_score
¶
apli_point_score(
femur_moment: ArrayLike,
tibia_moment: ArrayLike,
mcl_elongation: ArrayLike,
round_to: int | None = 3,
) -> ApliPointScore
Femur and knee/tibia scores of one aPLI test.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
femur_moment
|
ArrayLike
|
Femur bending moment in N m: a peak, the peaks of several gauges, or time histories. The largest magnitude is used ("worst performing femur bending moment"). |
required |
tibia_moment
|
ArrayLike
|
Tibia bending moment in N m, as for |
required |
mcl_elongation
|
ArrayLike
|
MCL elongation in mm (peak or time history). |
required |
round_to
|
int | None
|
Decimal places of each score; None keeps them unrounded. |
3
|
upper_legform_alpha
¶
Upper legform impact angle alpha, in degrees.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ibrl
|
tuple[float, float]
|
|
required |
wad930
|
tuple[float, float]
|
|
required |
Returns:
| Type | Description |
|---|---|
float
|
Angle to the ground of the impact direction, which is perpendicular to the straight line through the two points: 0 for a vertical line, 45 for a line at 45 degrees. Negative if the line leans forward beyond vertical. |
upper_legform_energy
¶
upper_legform_energy(alpha: float) -> UpperLegformEnergy
Nominal impact energy and test velocity of the upper legform.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alpha
|
float
|
Impact angle in degrees, from |
required |
Notes
En = 0.5 x 7.4 kg x (11.11 m/s x cos(1.2 alpha))^2, and the test velocity with the 10.5 kg impactor is vt = sqrt(2 En / 10.5 kg). No test is required if En is below 160 J.
upper_legform_score
¶
upper_legform_score(
grid_points: Iterable[Hashable],
tests: Mapping[Hashable, ArrayLike],
energies: Mapping[Hashable, float] | None = None,
protocol: str = "euroncap_2026",
symmetric: bool = True,
asymmetric_points: Iterable[Hashable] = (),
not_required_score: float = 1.0,
energy_tolerance: float = 0.1,
round_to: int | None = 3,
) -> LegRegionScore
Pelvis points from upper legform tests on the WAD 775 grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
grid_points
|
Iterable[Hashable]
|
All grid points ( |
required |
tests
|
Mapping[Hashable, ArrayLike]
|
|
required |
energies
|
Mapping[Hashable, float] | None
|
Optional |
None
|
protocol
|
str
|
|
'euroncap_2026'
|
symmetric
|
bool
|
Apply results to the mirror point on the other side. |
True
|
asymmetric_points
|
Iterable[Hashable]
|
Points the manufacturer declared asymmetric: no symmetry is applied to or from them. |
()
|
not_required_score
|
float
|
Score of untested points where no test is required (below 160 J). The protocols do not state it; 1.0 (full points) is this package's default. |
1.0
|
energy_tolerance
|
float
|
Relative energy difference allowed when a result is shared. |
0.1
|
round_to
|
int | None
|
Decimal places of each tested point's score; None keeps it. |
3
|
Returns:
| Type | Description |
|---|---|
LegRegionScore
|
Region |
Notes
Untested points take, in order: the result of their mirror point (if symmetric), else the worst result of the adjacent points that have a tested or mirrored result.
apli_score
¶
apli_score(
grid_points: Iterable[Hashable],
tests: Mapping[
Hashable,
ApliPointScore
| tuple[ArrayLike, ArrayLike, ArrayLike],
],
protocol: str = "euroncap_2026",
symmetric: bool = True,
asymmetric_points: Iterable[Hashable] = (),
round_to: int | None = 3,
) -> ApliScore
Femur and knee/tibia points from aPLI tests on the bumper grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
grid_points
|
Iterable[Hashable]
|
All bumper test zone grid points ( |
required |
tests
|
Mapping[Hashable, ApliPointScore | tuple[ArrayLike, ArrayLike, ArrayLike]]
|
|
required |
protocol
|
str
|
|
'euroncap_2026'
|
symmetric
|
bool
|
As for |
True
|
asymmetric_points
|
bool
|
As for |
True
|
round_to
|
int | None
|
Decimal places of each tested point's scores; None keeps them. |
3
|
Notes
Untested points are filled separately for the femur and for the knee/tibia, so one untested point can take its femur score from one neighbour and its knee/tibia score from the other.
vru
¶
Total Euro NCAP passive VRU (pedestrian and cyclist) crash protection score.
VRUScore
dataclass
¶
VRUScore(
total: float,
max_total: float,
percentage: float,
head: float,
pelvis: float,
femur: float,
knee_tibia: float,
protocol: str,
)
Passive VRU crash protection points by body region.
vru_score
¶
vru_score(
head: HeadformScore | float,
pelvis: LegRegionScore | float,
femur: LegRegionScore | float,
knee_tibia: LegRegionScore | float,
protocol: str = "euroncap_2026",
) -> VRUScore
Return the passive VRU crash protection score.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
head
|
HeadformScore | float
|
|
required |
pelvis
|
LegRegionScore | float
|
|
required |
femur
|
LegRegionScore | float
|
The |
required |
knee_tibia
|
LegRegionScore | float
|
The |
required |
protocol
|
str
|
|
'euroncap_2026'
|
flexpli
¶
Flex-PLI (flexible pedestrian legform impactor) criteria and scoring.
Functions:
assessment_interval: Flex-PLI assessment interval (AIS-100 Rev.1 3.2, UN GTR 9, UN R127).flexpli_peaks: Peak tibia bending moment and knee ligament elongations within it.flexpli_point_score,flexpli_score: Euro NCAP Flex-PLI scoring (Pedestrian / VRU Assessment Protocol v10.0.5, used 2014-2022): tibia and knee halves per grid point, the grid scaled to 6 points.
Units: time in s, bending moment in N m, elongation in mm. Filter all channels with CFC 180.
Euro NCAP limits (higher / lower performance):
| Criterion | Higher limit | Lower limit |
|---|---|---|
| Tibia bending moment | 282 N m | 340 N m |
| MCL elongation | 19 mm | 22 mm |
| ACL / PCL elongation | 10 mm | 10 mm (threshold: the knee scores 0 at or above it) |
FLEXPLI_LIMITS
module-attribute
¶
FLEXPLI_LIMITS: dict[str, tuple[float, float]] = {
"tibia_moment": (282.0, 340.0),
"mcl_elongation": (19.0, 22.0),
"acl_pcl_elongation": (10.0, 10.0),
}
Euro NCAP (higher, lower) performance limits, N m and mm (v10.0.5, Section 1.1.3).
MARGINAL_MOMENT
module-attribute
¶
Bending moment above which the first local maximum is sought, N m.
FlexPliPeaks
dataclass
¶
FlexPliPeaks(
tibia_moment: float,
tibia_segment: int,
mcl: float,
acl: float,
pcl: float,
interval: tuple[float, float],
)
Peak Flex-PLI values within the assessment interval.
FlexPliPointScore
dataclass
¶
assessment_interval
¶
assessment_interval(
time: ArrayLike,
bone_moments: Sequence[ArrayLike],
t_contact: float | None = None,
) -> tuple[float, float]
Flex-PLI assessment interval (AI), (start, end) in s.
AIS-100 Rev.1 Section 3.2 (as UN GTR 9 / UN R127): from first contact to the last zero crossing of all femur and tibia segments after their first local maximum following a marginal value of 15 N m. If a segment does not cross zero, all curves are shifted down until every segment crosses zero (for the AI only).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
ArrayLike
|
1D time array, s. |
required |
bone_moments
|
Sequence[ArrayLike]
|
Femur and tibia bending moment histories (normally femur 1-3 and tibia 1-4), N m, positive in impact bending. |
required |
t_contact
|
float | None
|
Time of first contact; the first sample by default. |
None
|
Notes
Implementation: each segment ends at its first zero crossing after that first maximum; the AI ends at the latest of these. Segments that never exceed 15 N m do not limit the AI. With a downward shift, the shift is the smallest that makes every such segment reach zero after its maximum.
flexpli_peaks
¶
flexpli_peaks(
time: ArrayLike,
tibia_moments: Sequence[ArrayLike],
mcl: ArrayLike,
acl: ArrayLike,
pcl: ArrayLike,
interval: tuple[float, float] | None = None,
femur_moments: Sequence[ArrayLike] = (),
) -> FlexPliPeaks
Peak absolute tibia bending moment and ligament elongations.
The peaks are taken within interval; if None, it is computed with
assessment_interval from the femur and tibia moments.
flexpli_point_score
¶
flexpli_point_score(
tibia_moment: float,
mcl: float,
acl: float,
pcl: float,
round_to: int | None = 3,
) -> FlexPliPointScore
Score of one Flex-PLI test (Euro NCAP v10.0.5, Section 1.3.2.4).
Tibia: 0.5 x sliding scale of the worst tibia moment (282-340 N m). Knee: 0.5 x sliding scale of the MCL elongation (19-22 mm), only if the ACL and PCL elongations are below 10 mm, else 0.
flexpli_score
¶
flexpli_score(
grid_points: Iterable[Hashable],
tests: Mapping[
Hashable,
FlexPliPointScore
| tuple[float, float, float, float],
],
max_points: float = 6.0,
symmetric: bool = True,
asymmetric_points: Iterable[Hashable] = (),
round_to: int | None = 3,
) -> LegRegionScore
Euro NCAP Flex-PLI lower leg score of a bumper grid (6 points).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
grid_points
|
Iterable[Hashable]
|
All grid points ( |
required |
tests
|
Mapping[Hashable, FlexPliPointScore | tuple[float, float, float, float]]
|
|
required |
max_points
|
float
|
Region maximum (6 points). |
6.0
|
Notes
Untested points take their mirror point's result (if symmetric), else
the worst adjacent result. The point scores are summed, divided by
the number of grid points and multiplied by max_points.
ais100
¶
AIS-100 pedestrian protection compliance checks (India).
AIS-100 Rev.1 (April 2024) follows UN GTR 9 / UN R127 with the Flex-PLI; the original AIS-100 (with Amendments) uses the legacy (TRL) lower legform. Both use the same upper legform and headform requirements.
Functions:
bumper_legform: Which legform test applies for a lower bumper height (Section 4.1).check_flexpli: Flex-PLI to bumper (Rev.1, 5.1.1).check_legacy_legform: Legacy lower legform to bumper (original AIS-100, 5.1.1).check_upper_legform_bumper: Upper legform to bumper (5.1.2 in both editions).check_relaxation_width: Total bumper width nominated for the relaxed tibia limit (264 mm).check_headform_zones,check_headform_tests: HIC1000 / HIC1700 zone areas and test results (5.2.3-5.2.4).
Each check returns Check with the measured values, limits,
utilisation (value / limit, worst first) and passed.
Units: moments in N m, elongations and displacements in mm, angles in degrees, accelerations in g, forces in N, areas in any consistent unit.
AIS100_FLEXPLI_LIMITS
module-attribute
¶
AIS100_FLEXPLI_LIMITS: dict[str, float] = {
"mcl": 22.0,
"acl": 13.0,
"pcl": 13.0,
"tibia_moment": 340.0,
"tibia_moment_relaxed": 380.0,
}
AIS-100 Rev.1, 5.1.1: absolute values, mm and N m. The relaxed tibia limit applies in the nominated widths (264 mm in total).
AIS100_LEGACY_LEGFORM_LIMITS
module-attribute
¶
AIS100_LEGACY_LEGFORM_LIMITS: dict[str, float] = {
"knee_bending_angle": 19.0,
"knee_shear_displacement": 6.0,
"tibia_acceleration": 170.0,
"tibia_acceleration_relaxed": 250.0,
}
Original AIS-100, 5.1.1: degrees, mm and g (upper tibia).
AIS100_UPPER_LEGFORM_LIMITS
module-attribute
¶
AIS100_UPPER_LEGFORM_LIMITS: dict[str, float] = {
"sum_of_forces": 7500.0,
"bending_moment": 510.0,
}
Upper legform to bumper, 5.1.2 (both editions): N and N m.
RELAXATION_WIDTH_LIMIT
module-attribute
¶
Total bumper test width the manufacturer may nominate for the relaxed tibia limit, mm.
Check
dataclass
¶
bumper_legform
¶
bumper_legform(
lower_bumper_height: float,
) -> Literal["lower_legform", "either", "upper_legform"]
Legform test to the bumper by lower bumper height, mm (Section 4.1): below 425 mm the lower legform; 425 to below 500 mm either, at the manufacturer's choice; 500 mm and above the upper legform.
check_flexpli
¶
check_flexpli(
tibia_moment: float,
mcl: float,
acl: float,
pcl: float,
relaxed_zone: bool = False,
) -> Check
Flex-PLI to bumper (AIS-100 Rev.1, 5.1.1).
Peaks within the assessment interval (see
crashmetrics.pedestrian.flexpli.flexpli_peaks): MCL <= 22 mm,
ACL and PCL <= 13 mm, tibia bending moment <= 340 N m, or 380 N m at
a point inside the nominated relaxation width (relaxed_zone).
check_legacy_legform
¶
check_legacy_legform(
knee_bending_angle: float,
knee_shear_displacement: float,
tibia_acceleration: float,
relaxed_zone: bool = False,
) -> Check
Legacy lower legform to bumper (original AIS-100, 5.1.1): knee bending angle <= 19 deg, knee shearing displacement <= 6.0 mm, upper tibia acceleration <= 170 g (250 g inside the nominated relaxation width).
check_upper_legform_bumper
¶
check_upper_legform_bumper(
sum_of_forces: float, bending_moment: float
) -> Check
Upper legform to bumper (5.1.2): instantaneous sum of the impact forces <= 7.5 kN and bending moment <= 510 N m.
check_relaxation_width
¶
check_relaxation_width(widths: Iterable[float]) -> Check
The nominated relaxation widths (mm) must total at most 264 mm.
check_headform_zones
¶
check_headform_zones(
child_area: float,
adult_area: float,
hic1000_child_area: float,
hic1000_adult_area: float,
) -> Check
Area requirement for the HIC1000 zone (5.2.3), on projected areas.
The HIC1000 zone must cover at least half the child headform test
area and two thirds of the combined child and adult test areas; with
a child test area only (adult_area == 0), two thirds of it. The
rest (HIC1700 zone) must stay below HIC 1700.
utilisation here is required share / actual share (<= 1 passes).
check_headform_tests
¶
check_headform_tests(
results: Iterable[
tuple[Literal["hic1000", "hic1700"], float]
],
) -> Check
Headform test results by zone: HIC <= 1000 in the HIC1000 zone and
<= 1700 in the HIC1700 zone (5.2.3). results are (zone, HIC)
pairs; the worst utilisation per zone is reported.