Skip to content

crashmetrics.homologation

homologation

Homologation compliance checks: UN R94, R95, R135 and post-crash electrical safety (India and Europe).

India's AIS standards follow these UN Regulations: AIS-098 (offset frontal) follows R94 and AIS-099 (side) follows R95. Check the AIS revision in force for any differences.

Functions:

  • check_r94_occupant, check_r94_vehicle: UN R94 (05 series, 56 km/h 40 % offset deformable barrier, Hybrid III 50th male in both front seats), paragraphs 5.2.1 to 5.2.7.
  • check_r95_occupant, check_r95_vehicle: UN R95 lateral collision (ES-2 dummy), paragraphs 5.2 and 5.3.
  • check_r135_occupant, check_r135_vehicle: UN R135 pole side impact (01 series, 32 km/h at 75 deg, WorldSID 50th male), paragraphs 5.3 to 5.5.
  • check_electrical_safety: Post-crash electrical safety (R94 5.2.8, R137 5.2.8, R95 5.3.7): protection against electric shock per high-voltage bus, electrolyte leakage, REESS retention, fire.
  • combine: One result from several (both front occupants and the vehicle, for example).

Every check returns a ComplianceResult: per requirement the value, limit, utilisation (value / limit), pass/fail and clause. A requirement whose value is not given is listed as not assessed and never counts as passed: complete tells whether everything was assessed.

Units: forces N, moments N m, deflections and displacements mm, VC m/s, accelerations g, voltages V, resistances ohm, energies J. Peak values are magnitudes unless stated.

Series module-attribute

Series = tuple[ArrayLike, ArrayLike]

(time in s, signal).

R94_LIMITS module-attribute

R94_LIMITS: dict[str, float] = {
    "hpc": 1000.0,
    "head_a3ms": 80.0,
    "neck_extension": 57.0,
    "thcc": 42.0,
    "vc": 1.0,
    "tibia_compression": 8000.0,
    "tibia_index": 1.3,
    "knee_slider": 15.0,
    "steering_upward": 80.0,
    "steering_rearward": 100.0,
    "fuel_leakage_rate": 30.0,
}

UN R94 limits (04 and 05 series). Neck tension and shear (Figures 1 and 2) and the femur force criterion (Figure 3) are force-duration curves: crashmetrics.neck.NECK_FORCE_LIMITS ("r94_tension", "r94_shear") and crashmetrics.lower_extremity.FEMUR_FORCE_LIMITS ("r94_hybrid3_50").

R95_LIMITS module-attribute

R95_LIMITS: dict[str, float] = {
    "hpc": 1000.0,
    "rdc": 42.0,
    "vc": 1.0,
    "pspf": 6000.0,
    "apf": 2500.0,
    "fuel_leakage_rate": 30.0,
}

UN R95 limits (ES-2 dummy).

R135_LIMITS module-attribute

R135_LIMITS: dict[str, float] = {
    "hic36": 1000.0,
    "shoulder_force": 3000.0,
    "thorax_rib_deflection": 55.0,
    "abdominal_rib_deflection": 65.0,
    "lower_spine_3ms": 75.0,
    "pubic_force": 3360.0,
    "fuel_leakage_first_5_min": 142.0,
    "fuel_leakage_rate_5_30_min": 28.0,
}

UN R135 limits (01 series, WorldSID 50th male).

Requirement dataclass

Requirement(
    name: str,
    clause: str,
    value: float | bool | None,
    limit: float | bool | None,
    utilisation: float | None,
    passed: bool | None,
    unit: str = "",
    note: str = "",
)

One requirement of a regulation and its assessment.

name instance-attribute

name: str

Requirement name, e.g. "thcc".

clause instance-attribute

clause: str

Paragraph of the regulation.

value instance-attribute

value: float | bool | None

Measured value (None if not given).

limit instance-attribute

limit: float | bool | None

Limit (the required state for yes/no requirements).

utilisation instance-attribute

utilisation: float | None

value / limit for numeric limits (1.0 = at the limit); for force-duration curves the largest ratio of the curve to the limit.

passed instance-attribute

passed: bool | None

True or False, or None if not assessed.

ComplianceResult dataclass

ComplianceResult(
    regulation: str,
    requirements: dict[str, Requirement],
    notes: tuple[str, ...] = (),
)

Result of a compliance check.

regulation instance-attribute

regulation: str

For example "UN R94 (driver)".

requirements instance-attribute

requirements: dict[str, Requirement]

Every requirement, assessed or not.

passed property

passed: bool

True if every assessed requirement passed. Check complete as well: requirements that were not assessed are not included.

complete property

complete: bool

True if every requirement was assessed.

failures property

failures: list[str]

Requirements that failed.

not_assessed property

not_assessed: list[str]

Requirements without a value.

worst property

worst: str | None

Assessed numeric requirement with the highest utilisation.

summary

summary() -> str

A text table: one line per requirement.

ElectricalLimits dataclass

ElectricalLimits(
    max_dc_voltage: float = 60.0,
    max_ac_voltage: float = 30.0,
    max_energy: float = 0.2,
    max_chassis_resistance: float = 0.1,
    min_isolation_dc: float = 100.0,
    min_isolation_ac: float = 500.0,
    max_electrolyte_outside_percent: float = 7.0,
    max_electrolyte_outside_litres: float = 5.0,
    electrolyte_minutes: float = 60.0,
)

Limits of the post-crash electrical safety requirements.

The defaults are those of UN R94 (04 and 05 series) 5.2.8 and UN R137 (02 series) 5.2.8. Earlier series of some regulations (for example older R95 texts) allowed 2.0 J and a 30-minute electrolyte window: use ElectricalLimits(max_energy=2.0, electrolyte_minutes=30) for those.

max_dc_voltage class-attribute instance-attribute

max_dc_voltage: float = 60.0

5.2.8.1.1: within 60 s after the impact, V DC.

max_ac_voltage class-attribute instance-attribute

max_ac_voltage: float = 30.0

5.2.8.1.1: V AC.

max_energy class-attribute instance-attribute

max_energy: float = 0.2

5.2.8.1.2: total energy and each Y-capacitor energy, J (less than).

max_chassis_resistance class-attribute instance-attribute

max_chassis_resistance: float = 0.1

5.2.8.1.3: exposed conductive parts to the electrical chassis, ohm (less than).

min_isolation_dc class-attribute instance-attribute

min_isolation_dc: float = 100.0

5.2.8.1.4.1: ohm per volt of working voltage, DC buses.

min_isolation_ac class-attribute instance-attribute

min_isolation_ac: float = 500.0

5.2.8.1.4.1: ohm per volt, AC buses (and combined buses).

max_electrolyte_outside_percent class-attribute instance-attribute

max_electrolyte_outside_percent: float = 7.0

5.2.8.2.1: aqueous electrolyte outside the passenger compartment, % of the REESS electrolyte.

max_electrolyte_outside_litres class-attribute instance-attribute

max_electrolyte_outside_litres: float = 5.0

5.2.8.2.1: and at most this volume, litres.

electrolyte_minutes class-attribute instance-attribute

electrolyte_minutes: float = 60.0

Observation period after the impact, minutes (informational).

HVBus dataclass

HVBus(
    name: str,
    kind: Literal["DC", "AC", "DC+AC"] = "DC",
    working_voltage: float | None = None,
    voltage: float | None = None,
    energy: float | None = None,
    ipxxb: bool | None = None,
    chassis_resistance: float | None = None,
    isolation_resistance: float | None = None,
    ac_part_protected: bool | None = None,
)

Post-crash measurements of one high-voltage bus.

Give what was measured; the bus is protected if at least one of the four criteria of 5.2.8.1 is met.

name instance-attribute

name: str

For example "traction DC".

kind class-attribute instance-attribute

kind: Literal['DC', 'AC', 'DC+AC'] = 'DC'

"DC+AC" for DC and AC buses that are conductively connected.

working_voltage class-attribute instance-attribute

working_voltage: float | None = None

Working voltage, V (for the isolation requirement).

voltage class-attribute instance-attribute

voltage: float | None = None

Largest of Ub, U1 and U2 measured within 60 s after the impact, V.

energy class-attribute instance-attribute

energy: float | None = None

Largest of the total energy TE and the Y-capacitor energies, J.

ipxxb class-attribute instance-attribute

ipxxb: bool | None = None

True if protection degree IPXXB is provided.

chassis_resistance class-attribute instance-attribute

chassis_resistance: float | None = None

Largest resistance of exposed conductive parts to the electrical chassis, ohm.

isolation_resistance class-attribute instance-attribute

isolation_resistance: float | None = None

Isolation resistance Ri, ohm.

ac_part_protected class-attribute instance-attribute

ac_part_protected: bool | None = None

"DC+AC" buses only: True if the AC part meets the physical protection or the voltage criterion (then 100 ohm/V suffices).

combine

combine(
    regulation: str, *results: ComplianceResult
) -> ComplianceResult

Return one result from several, with requirement names prefixed by each part's name in brackets ("driver: thcc").

check_r94_occupant

check_r94_occupant(
    hpc: float | None = None,
    head_contact: bool = True,
    head_a3ms: float | None = None,
    neck_tension: Series | object | None = None,
    neck_shear: Series | object | None = None,
    neck_extension: float | None = None,
    thcc: float | None = None,
    vc: float | None = None,
    femur_left: Series | object | None = None,
    femur_right: Series | object | None = None,
    tibia_compression: float | None = None,
    tibia_index: float | None = None,
    knee_slider: float | None = None,
    position: str = "occupant",
) -> ComplianceResult

Check a Hybrid III 50th male against UN R94 5.2.1.

Parameters:

Name Type Description Default
hpc float | None

Head performance criterion (HIC over intervals up to 36 ms, Annex 4: calculate_hic(t, a, window_ms=36)).

None
head_contact bool

False if the head had no contact with the vehicle: the HPC requirement is then satisfied (Annex 4, 1.1).

True
head_a3ms float | None

Resultant head acceleration exceeded for 3 ms cumulatively, rebound excluded, g.

None
neck_tension Series | object | None

(time s, Fz) and (time s, Fx) at the upper neck in N, or the result of crashmetrics.neck.neck_force_criterion; checked against Figures 1 and 2 (cumulative exceedance).

None
neck_shear Series | object | None

(time s, Fz) and (time s, Fx) at the upper neck in N, or the result of crashmetrics.neck.neck_force_criterion; checked against Figures 1 and 2 (cumulative exceedance).

None
neck_extension float | None

Peak extension bending moment about y, N m.

None
thcc float | None

Thorax compression criterion (chest deflection), mm.

None
vc float | None

Viscous criterion, m/s.

None
femur_left Series | object | None

(time s, Fz) femur axial force in N (compression negative), or the result of crashmetrics.lower_extremity.femur_force_criterion; checked against Figure 3.

None
femur_right Series | object | None

(time s, Fz) femur axial force in N (compression negative), or the result of crashmetrics.lower_extremity.femur_force_criterion; checked against Figure 3.

None
tibia_compression float | None

Largest tibia compressive force (any tibia), N.

None
tibia_index float | None

Largest tibia index (top and bottom of each tibia).

None
knee_slider float | None

Largest knee sliding displacement, mm.

None
position str

Seat name for the report ("driver", "passenger").

'occupant'

check_r94_vehicle

check_r94_vehicle(
    steering_upward: float | None = None,
    steering_rearward: float | None = None,
    door_opened: bool | None = None,
    doors_unlocked_after: bool | None = None,
    doors_open_without_tools: bool | None = None,
    fuel_leakage_rate: float | None = None,
) -> ComplianceResult

Check the vehicle requirements of UN R94 5.2.2 to 5.2.7.

Parameters:

Name Type Description Default
steering_upward float | None

Residual displacement of the steering wheel hub centre, mm (crashmetrics.intrusion static values).

None
steering_rearward float | None

Residual displacement of the steering wheel hub centre, mm (crashmetrics.intrusion static values).

None
door_opened bool | None

True if any door opened during the test.

None
doors_unlocked_after bool | None

True if the side doors were unlocked after the impact.

None
doors_open_without_tools bool | None

True if at least one door per row (or seat displacement) allows evacuation without tools.

None
fuel_leakage_rate float | None

Continuous fuel leakage rate after the collision, g/min.

None

check_r95_occupant

check_r95_occupant(
    hpc: float | None = None,
    head_contact: bool = True,
    rdc: float | None = None,
    vc: float | None = None,
    pspf: float | None = None,
    apf: float | None = None,
) -> ComplianceResult

Check an ES-2 dummy against UN R95 5.2.1.

Parameters:

Name Type Description Default
hpc float | None

Head performance criterion. With head_contact=False HPC is not calculated ("No Head Contact" is recorded) and the requirement is satisfied.

None
rdc float | None

Rib deflection criterion: largest deflection of the three ribs, mm.

None
vc float | None

Largest viscous criterion of the three ribs, m/s.

None
pspf float | None

Pubic symphysis peak force, N.

None
apf float | None

Abdominal peak force: sum of the three abdominal load cells, N (internal force; 2.5 kN corresponds to 4.5 kN external).

None

check_r95_vehicle

check_r95_vehicle(
    door_opened: bool | None = None,
    non_struck_doors_unlocked: bool | None = None,
    egress_possible: bool | None = None,
    dangerous_detachment: bool | None = None,
    fuel_leakage_rate: float | None = None,
) -> ComplianceResult

Check the vehicle requirements of UN R95 5.3.

Parameters:

Name Type Description Default
door_opened bool | None

True if any door opened during the test (5.3.1).

None
non_struck_doors_unlocked bool | None

True if the doors on the non-struck side were unlocked after the impact (5.3.2).

None
egress_possible bool | None

True if, without tools, doors could be opened, seats tilted and the dummy released and removed (5.3.3).

None
dangerous_detachment bool | None

True if interior components came loose and noticeably increase the risk of injury from sharp or jagged parts (5.3.4).

None
fuel_leakage_rate float | None

Continuous fuel leakage rate, g/min (5.3.6).

None

check_r135_occupant

check_r135_occupant(
    hic36: float | None = None,
    shoulder_force: float | None = None,
    thorax_rib_deflection: float | None = None,
    abdominal_rib_deflection: float | None = None,
    lower_spine: Series | float | None = None,
    pubic_force: float | None = None,
) -> ComplianceResult

Check a WorldSID 50th male against UN R135 5.3 (01 series).

Parameters:

Name Type Description Default
hic36 float | None

HIC with intervals up to 36 ms (Annex 10).

None
shoulder_force float | None

Peak lateral shoulder force, N.

None
thorax_rib_deflection float | None

Largest thorax rib deflection, mm.

None
abdominal_rib_deflection float | None

Largest abdominal rib deflection, mm.

None
lower_spine Series | float | None

Lower spine resultant acceleration as (time s, g), or the value exceeded for 3 ms cumulatively; must not exceed 75 g except for intervals whose cumulative duration is at most 3 ms.

None
pubic_force float | None

Peak pubic symphysis force, N.

None

check_r135_vehicle

check_r135_vehicle(
    struck_door_separated: bool | None = None,
    other_doors_held: bool | None = None,
    fuel_leakage_first_5_min: float | None = None,
    fuel_leakage_rate_5_30_min: float | None = None,
) -> ComplianceResult

Check the door and fuel requirements of UN R135 5.4 and 5.5.1.

Parameters:

Name Type Description Default
struck_door_separated bool | None

True if a side door struck by the pole separated totally from the vehicle (5.4.1).

None
other_doors_held bool | None

True if the other doors stayed latched, with latch, striker and hinges attached (5.4.2).

None
fuel_leakage_first_5_min float | None

Liquid fuel spilled in the first 5 minutes after first contact, g in total (5.5.1.1).

None
fuel_leakage_rate_5_30_min float | None

Spillage rate from 5 to 30 minutes, g/min (5.5.1.2).

None

check_electrical_safety

check_electrical_safety(
    buses: Sequence[HVBus] = (),
    electrolyte: Literal["aqueous", "non-aqueous"]
    | None = None,
    electrolyte_in_cabin: bool | None = None,
    electrolyte_outside_percent: float | None = None,
    electrolyte_outside_litres: float | None = None,
    electrolyte_leaked_anywhere: bool | None = None,
    reess_retained: bool | None = None,
    reess_entered_cabin: bool | None = None,
    fire_or_explosion: bool | None = None,
    limits: ElectricalLimits | None = None,
    regulation: str = "UN R94/R137 5.2.8",
) -> ComplianceResult

Check post-crash electrical safety of a vehicle with a high-voltage electric power train (UN R94 and R137 5.2.8; R95 5.3.7).

Parameters:

Name Type Description Default
buses Sequence[HVBus]

One HVBus per high-voltage bus. Each must meet at least one criterion: voltage, low energy, physical protection, or isolation resistance.

()
electrolyte Literal['aqueous', 'non-aqueous'] | None

Electrolyte type of the REESS.

None
electrolyte_in_cabin bool | None

True if electrolyte spilled into the passenger compartment.

None
electrolyte_outside_percent float | None

Aqueous electrolyte spilled outside the passenger compartment.

None
electrolyte_outside_litres float | None

Aqueous electrolyte spilled outside the passenger compartment.

None
electrolyte_leaked_anywhere bool | None

Non-aqueous electrolyte: True if liquid leaked into the passenger or luggage compartment or outside the vehicle.

None
reess_retained bool | None

True if the REESS stayed attached by at least one anchorage, bracket or structure (5.2.8.3).

None
reess_entered_cabin bool | None

True if a REESS located outside the passenger compartment, or a part of it, entered the compartment.

None
fire_or_explosion bool | None

True if there was any evidence of fire or explosion from the REESS within 60 minutes (5.2.8.4).

None
limits ElectricalLimits | None

ElectricalLimits; default: R94 05 series and R137 02 series.

None
regulation str

Name used in the report.

'UN R94/R137 5.2.8'