Skip to content

crashmetrics.thorax

thorax

Chest and abdomen criteria for frontal impact dummies.

Functions:

  • chest_deflection: Hybrid III chest deflection (Euro NCAP CP 005, Section 3.4.1).
  • viscous_criterion: Viscous criterion VC (CP 005, Section 3.4.6).
  • thor_rib_displacement, thor_chest_deflection: THOR 3D rib displacement from IR-TRACC length and angles, and Rmax over the four chest locations (CP 005, Section 3.4.2).
  • thor_abdomen_deflection: THOR abdominal rib displacement (CP 005, Section 3.5.2).
  • cti, cti_from_signals: Combined Thoracic Index (NHTSA research; not a Euro NCAP criterion).

Units: time in s, deflection and displacement in mm, IR-TRACC angles in degrees (or radians with degrees=False), VC in m/s, acceleration in g. Filter deflections and IR-TRACC channels with CFC 180.

Deflection sign: Euro NCAP evaluates the Hybrid III chest deflection as max(Dchest(t)), i.e. with compression positive. If your channel is negative in compression, pass compression_negative=True.

VC_CONSTANTS module-attribute

VC_CONSTANTS: dict[str, tuple[float, float]] = {
    "hybrid3_50": (1.3, 0.229),
    "hybrid3_05": (1.3, 0.187),
    "hybrid3_95": (1.3, 0.254),
    "worldsid_50": (1.0, 0.17),
    "es2": (1.0, 0.14),
}

Viscous criterion (scale factor sf, Dconstant in m) from Euro NCAP CP 005, Section 3.4.6; ES-2 rib VC from AIS-197 Annexure IV, 4.1.2.

THOR_IR_TRACC_OFFSET module-attribute

THOR_IR_TRACC_OFFSET = 15.65

Offset delta of the THOR chest IR-TRACCs, mm: +15.65 for the upper and -15.65 for the lower ribs (Euro NCAP CP 005, Section 3.4.2).

CTI_INTERCEPTS module-attribute

CTI_INTERCEPTS: dict[str, tuple[float, float]] = {
    "hybrid3_50": (90.0, 103.0),
    "hybrid3_05": (90.0, 84.0),
}

CTI intercepts (A_int in g, D_int in mm) from Eppinger et al. (1999), Supplement: Development of Improved Injury Criteria for the Assessment of Advanced Automotive Restraint Systems II, NHTSA, Table ES.3.

VCResult dataclass

VCResult(
    value: float,
    time: float,
    history: FloatArray,
    velocity: FloatArray,
)

Result of a viscous criterion calculation.

value instance-attribute

value: float

Largest VC, m/s.

history instance-attribute

history: FloatArray

VC at each sample, m/s (NaN at the first and last two samples, where the five-point velocity is not defined).

velocity instance-attribute

velocity: FloatArray

Deflection velocity V(t), m/s.

RibDisplacement dataclass

RibDisplacement(
    dx: FloatArray,
    dy: FloatArray,
    dz: FloatArray,
    resultant: FloatArray,
    peak: float,
    time: float,
)

3D displacement of one THOR IR-TRACC location, mm.

peak instance-attribute

peak: float

Largest resultant displacement, mm.

ThorChestResult dataclass

ThorChestResult(
    rmax: float,
    location: str,
    time: float,
    ribs: dict[str, RibDisplacement],
)

THOR chest deflection over the four IR-TRACC locations.

rmax instance-attribute

rmax: float

Largest resultant rib displacement of the four locations, mm.

location instance-attribute

location: str

Location of Rmax: "upper_left", "upper_right", "lower_left" or "lower_right".

AbdomenResult dataclass

AbdomenResult(
    value: float,
    side: str,
    time: float,
    max_dx: float,
    dx: dict[str, FloatArray],
)

THOR abdominal rib displacement (left and right).

value instance-attribute

value: float

Largest abdominal compression, max(-Dx(t)) over both sides, mm (R decreasing under compression).

side instance-attribute

side: str

"left" or "right".

max_dx instance-attribute

max_dx: float

max(Dx(t)) over both sides as printed in Euro NCAP CP 005; equal to the compression only if your R channel increases under compression.

dx instance-attribute

dx: dict[str, FloatArray]

Dx(t) for each side, mm.

CtiResult dataclass

CtiResult(
    value: float, acceleration: float, deflection: float
)

Result of cti_from_signals.

acceleration instance-attribute

acceleration: float

Acceleration used, g.

deflection instance-attribute

deflection: float

Deflection used, mm.

chest_deflection

chest_deflection(
    time: ArrayLike,
    deflection: ArrayLike,
    compression_negative: bool = False,
    t_start: float | None = None,
    t_end: float | None = None,
) -> PeakResult

Hybrid III chest deflection, Dchest = max(Dchest(t)), in mm.

Parameters:

Name Type Description Default
time ArrayLike

1D time array in s.

required
deflection ArrayLike

Chest deflection in mm (CFC 180).

required
compression_negative bool

True if compression is negative in deflection.

False
t_start float | None

Optional evaluation window, s.

None
t_end float | None

Optional evaluation window, s.

None

viscous_criterion

viscous_criterion(
    time: ArrayLike,
    deflection: ArrayLike,
    dummy: str = "hybrid3_50",
    scale_factor: float | None = None,
    d_constant: float | None = None,
    compression_negative: bool = False,
    t_start: float | None = None,
    t_end: float | None = None,
) -> VCResult

Viscous criterion (Euro NCAP CP 005, Section 3.4.6).

VC(t) = sf * V(t) * C(t) with C(t) = D(t) / Dconstant and::

V(t) = [8 (D(t+1) - D(t-1)) - (D(t+2) - D(t-2))] / (12 dt)

Parameters:

Name Type Description Default
time ArrayLike

Uniformly sampled 1D time array in s.

required
deflection ArrayLike

Chest (or rib) deflection in mm, CFC 180; compression positive unless compression_negative is True.

required
dummy str

Key of VC_CONSTANTS; used unless both scale_factor and d_constant (m) are given.

'hybrid3_50'
t_start float | None

Optional window for the maximum, s (the velocity is computed on the whole record).

None
t_end float | None

Optional window for the maximum, s (the velocity is computed on the whole record).

None

thor_rib_displacement

thor_rib_displacement(
    time: ArrayLike,
    length: ArrayLike,
    phi_y: ArrayLike,
    phi_z: ArrayLike,
    location: Literal["upper", "lower"] | None = None,
    delta: float | None = None,
    degrees: bool = True,
    reference_time: float | None = None,
    t_start: float | None = None,
    t_end: float | None = None,
) -> RibDisplacement

THOR chest rib 3D displacement (Euro NCAP CP 005, Section 3.4.2).

::

Dx(t) = delta sin(phi_y) + R cos(phi_z) cos(phi_y) - Dx(0)
Dy(t) = R sin(phi_z) - Dy(0)
Dz(t) = delta cos(phi_y) - R cos(phi_z) sin(phi_y) - Dz(0)

Parameters:

Name Type Description Default
time ArrayLike

1D time array in s.

required
length ArrayLike

IR-TRACC length R(t), mm (CFC 180).

required
phi_y ArrayLike

IR-TRACC rotations (CFC 180), degrees unless degrees=False.

required
phi_z ArrayLike

IR-TRACC rotations (CFC 180), degrees unless degrees=False.

required
location Literal['upper', 'lower'] | None

"upper" (delta = +15.65 mm) or "lower" (-15.65 mm); or give delta in mm.

None
reference_time float | None

Time of the initial position (the displacement "prior to activation"); the first sample by default.

None
t_start float | None

Optional window for the peak, s.

None
t_end float | None

Optional window for the peak, s.

None

thor_chest_deflection

thor_chest_deflection(
    time: ArrayLike,
    upper_left: tuple[ArrayLike, ArrayLike, ArrayLike],
    upper_right: tuple[ArrayLike, ArrayLike, ArrayLike],
    lower_left: tuple[ArrayLike, ArrayLike, ArrayLike],
    lower_right: tuple[ArrayLike, ArrayLike, ArrayLike],
    degrees: bool = True,
    reference_time: float | None = None,
    t_start: float | None = None,
    t_end: float | None = None,
) -> ThorChestResult

THOR Rmax: the largest resultant displacement of the four chest IR-TRACCs (Euro NCAP CP 005, Section 3.4.2).

Each location is (R, phi_y, phi_z): length in mm and angles in degrees (radians with degrees=False).

thor_abdomen_deflection

thor_abdomen_deflection(
    time: ArrayLike,
    left: tuple[ArrayLike, ArrayLike, ArrayLike],
    right: tuple[ArrayLike, ArrayLike, ArrayLike],
    degrees: bool = True,
    reference_time: float | None = None,
    t_start: float | None = None,
    t_end: float | None = None,
) -> AbdomenResult

THOR abdominal rib displacement (Euro NCAP CP 005, Section 3.5.2).

Dx(t) = R(t) cos(phi_z(t)) cos(phi_y(t)) - Dx(0) for each side (R, phi_y, phi_z).

CP 005 writes Drib = max(Dx(t)). With R as the IR-TRACC length, which shortens under compression, Dx is negative in compression, so value reports the compression max(-Dx(t)); max_dx keeps the protocol's literal max(Dx(t)). Check which matches your channel polarity.

cti

cti(
    acceleration: float,
    deflection: float,
    dummy: str = "hybrid3_50",
    intercepts: tuple[float, float] | None = None,
) -> float

Combined Thoracic Index CTI = A/A_int + D/D_int.

Parameters:

Name Type Description Default
acceleration float

Chest acceleration in g (normally the 3 ms clip of the resultant spine acceleration).

required
deflection float

Chest deflection in mm.

required
dummy str

Key of CTI_INTERCEPTS, unless intercepts (A_int g, D_int mm) is given.

'hybrid3_50'

cti_from_signals

cti_from_signals(
    time: ArrayLike,
    chest_acceleration: ArrayLike,
    deflection: ArrayLike,
    dummy: str = "hybrid3_50",
    intercepts: tuple[float, float] | None = None,
    acceleration_measure: Literal[
        "clip_3ms", "peak"
    ] = "clip_3ms",
    compression_negative: bool = False,
) -> CtiResult

CTI from the resultant chest acceleration (g) and deflection (mm).

The acceleration is the cumulative 3 ms clip by default (the NHTSA report defines the acceleration intercept for the 3 ms clip of the spine acceleration), or the peak with acceleration_measure="peak". The deflection is the peak compression.