U040 — Pressure unit `Pa` built from a derived-unit chain (`kg / (m * s^2)`)

§12.5 (sub-class: derived-unit composition)

P1 — silent data loss

units

Sources

Sender

deduced — exporters that emit pressure as a fully-decomposed SI derived unit rather than a CONVERSION_BASED_UNIT('Pa',..) shorthand

Description

Pascal (Pa) is dimensionally `kg·m^(-1)·s^(-2)`. A producer that emits pressure as a `DERIVED_UNIT` composed of three `DERIVED_UNIT_ELEMENT` entries (mass at exponent +1, length at exponent -1, time at exponent -2) is spec-conforming but stresses receivers that pattern-match on a single named pressure unit. Defects: an element exponent is wrong (mass at exponent +2 instead of +1); the element ordering differs across files (some receivers' lookup is order-sensitive); the underlying base units mix SI prefixes inconsistently (mass in `kg`, length in `mm`; pressure becomes `kg·mm^(-1)·s^(-2)`, off by 1000× from `kg·m^(-1)·s^(-2)`). Bug-reporter language: "STEP pressure unit not recognised", "Pa from derived units", "validation property pressure 1000x wrong".

Reproducer recipe

`#1=DERIVED_UNIT_ELEMENT(#mass_unit,1.0)`, `#2=DERIVED_UNIT_ELEMENT(#length_unit,-1.0)`, `#3=DERIVED_UNIT_ELEMENT(#time_unit,-2.0)`, `#4=DERIVED_UNIT((#1,#2,#3))`. Variant fixture: length unit is millimetre (`MILLI METRE`), mass unit is kilogram, time unit is second — the composed unit is 1000× off from Pa.

Expected kernel behavior

Heal and accept: detect / normalize the dimensional signature of pressure (mass^1 length^-1 time^-2) and bind to a Pa context regardless of element order; coerce SI prefix mismatches deterministically; warn when the composition does not reduce to a recognised SI unit.

Notes

First entry exercising multi-element DERIVED_UNIT composition. **See also**: U021, U026, U041. Synonyms: "STEP pressure Pa garbled", "Pa unit not recognised from derived chain", "DERIVED_UNIT pressure 1000x wrong", "validation pressure derived unit", "Pa from kg.m^-1.s^-2 not bound".- **Byte assertion**: contains(b'DERIVED_UNIT_ELEMENT') and contains(b'DERIVED_UNIT(')

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

U021, U026, U041

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* U040: Pressure unit Pa as DERIVED_UNIT with mixed prefix: kg*mm^-1*s^-2 = 1000 Pa */
3/* DEFECT: length unit is MILLI METRE, not METRE — composed unit is 1000x off from Pa */
4/* Kernel must resolve dimensional signature and normalise SI prefix mismatch */
5HEADER;
6FILE_DESCRIPTION(('U040: Pa DERIVED_UNIT chain with mm length unit — 1000x SI prefix mismatch'),'2;1');
7FILE_NAME('U040.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11/* Geometry: part with mm coordinates */
12#1=CARTESIAN_POINT('origin',(0.,0.,0.));
13#2=CARTESIAN_POINT('corner-x',(50.0,0.,0.));
14#3=CARTESIAN_POINT('corner-y',(0.,50.0,0.));
15#4=CARTESIAN_POINT('corner-z',(0.,0.,25.0));
16#5=CARTESIAN_POINT('corner-xyz',(50.0,50.0,25.0));
17/* Standard mm geometry context */
18#10=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
19#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
20#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
21#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
22  'distance_accuracy_value','maximum model space distance between geometric entities');
23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
24  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('ctx','3D'));
25/* Base SI units for DERIVED_UNIT pressure chain */
26/* DEFECT: mass in kg (correct), but length is MILLI METRE not METRE */
27#20=(MASS_UNIT() NAMED_UNIT(*) SI_UNIT(.KILO.,.GRAM.));
28/* DEFECT: millimetre used for length in pressure chain — makes unit 1000x off from Pa */
29#21=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
30#22=(NAMED_UNIT(*) SI_UNIT($,.SECOND.) TIME_UNIT());
31/* DERIVED_UNIT for pressure: mass^+1, length^-1, time^-2 */
32/* With mm as length: kg*mm^-1*s^-2 = 1000*kg*m^-1*s^-2 = 1000 Pa */
33#30=DERIVED_UNIT_ELEMENT(#20,1.);
34#31=DERIVED_UNIT_ELEMENT(#21,-1.);
35#32=DERIVED_UNIT_ELEMENT(#22,-2.);
36/* DEFECT: this DERIVED_UNIT composes to 1000 Pa, not 1 Pa */
37#33=DERIVED_UNIT((#30,#31,#32));
38/* Pressure measure using the malformed DERIVED_UNIT */
39/* Author intends 101325 Pa (atmospheric) but the unit is 1000x off */
40#40=MEASURE_REPRESENTATION_ITEM('pressure_value',LENGTH_MEASURE(101325.),#33);
41/* Model entity is GEOMETRIC_CURVE_SET — OCC returns empty shape */
42#50=GEOMETRIC_CURVE_SET('pressure-unit-pa-derived-chain',(#1,#2,#3,#4,#5));
43ENDSEC;
44END-ISO-10303-21;