U041 — Dynamic-viscosity unit `Pa·s` built from a derived-unit chain (`kg / (m * s)`)

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

silent-loss units

Sources

Sender

deduced — fluid-simulation export pipelines that emit material properties via DERIVED_UNIT chains

Description

Dynamic viscosity Pa·s is `kg·m^(-1)·s^(-1)`. A producer emitting viscosity as a multi-element DERIVED_UNIT exposes the same defect classes as U040 — element exponent wrong, element ordering, mixed SI prefixes — but with a four-element span (mass +1, length -1, time -1) that some receivers flatten into a length-time-mass dictionary lookup that drops the redundant time and reads the unit as Pa instead of Pa·s. Bug-reporter language: "STEP viscosity not recognised", "material property pressure read instead of viscosity".

Reproducer recipe

DERIVED_UNIT with three DERIVED_UNIT_ELEMENT entries: kilogram^+1, metre^-1, second^-1.

Expected kernel behavior

detect the dimensional signature of dynamic viscosity (mass^1 length^-1 time^-1) and bind to a Pa·s context; never silently flatten time exponent and produce Pa.

Notes

**See also**: U040. **OCC behavior**: silently accepts (no diagnostic, empty result); catalog disallows silent-accept. Kernel-bug witnessed: receivers enforcing the spec must reject (or surface a diagnostic); silent acceptance defeats the catalog's stated invariant. Synonyms: "STEP viscosity unit not recognised", "Pa.s read as Pa", "dynamic viscosity derived chain unsupported", "STEP material viscosity wrong unit", "viscosity flattened to pressure".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

U040

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* U041: Dynamic viscosity Pa*s as DERIVED_UNIT: kg*m^-1*s^-1 */
3/* DEFECT: receivers may flatten time exponent and read as Pa instead of Pa*s */
4/* Kernel must resolve dimensional signature mass^1 length^-1 time^-1 to Pa.s */
5HEADER;
6FILE_DESCRIPTION(('U041: Pa.s dynamic viscosity DERIVED_UNIT chain kg*m^-1*s^-1'),'2;1');
7FILE_NAME('U041.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 dynamic viscosity DERIVED_UNIT chain */
26#20=(MASS_UNIT() NAMED_UNIT(*) SI_UNIT(.KILO.,.GRAM.));
27#21=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT($,.METRE.));
28#22=(NAMED_UNIT(*) SI_UNIT($,.SECOND.) TIME_UNIT());
29/* DERIVED_UNIT for dynamic viscosity Pa*s: mass^+1, length^-1, time^-1 */
30/* Correct dimensional signature: kg*m^-1*s^-1 = Pa.s */
31/* DEFECT: receivers that flatten time exponent read this as Pa (not Pa.s) */
32#30=DERIVED_UNIT_ELEMENT(#20,1.);
33#31=DERIVED_UNIT_ELEMENT(#21,-1.);
34#32=DERIVED_UNIT_ELEMENT(#22,-1.);
35#33=DERIVED_UNIT((#30,#31,#32));
36/* Viscosity measure: 0.001 Pa*s (water at 20 deg C) */
37/* Receiver that reads Pa instead of Pa*s gets wrong material property */
38#40=MEASURE_REPRESENTATION_ITEM('dynamic_viscosity',LENGTH_MEASURE(0.001),#33);
39/* Model entity is GEOMETRIC_CURVE_SET — OCC returns empty shape */
40#50=GEOMETRIC_CURVE_SET('viscosity-unit-pas-derived-chain',(#1,#2,#3,#4,#5));
41ENDSEC;
42END-ISO-10303-21;