U042 — Specific-heat-capacity unit `J/(kg·K)` built from a derived-unit chain (`m^2 / (s^2 * K)`)

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

P1 — silent data loss

units

Sources

Sender

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

Description

Specific heat capacity J/(kg·K) is dimensionally `m^2·s^(-2)·K^(-1)` (the kg cancels in the underlying SI derivation J = kg·m^2·s^(-2), so J/(kg·K) reduces to m^2·s^(-2)·K^(-1)). A producer that emits the unit as a four-element DERIVED_UNIT (length^+2, time^-2, temperature^-1, optionally mass^0) confuses receivers that pattern-match on the kg-cancelled form vs the explicit J/kg/K form. Bug-reporter language: "STEP specific heat capacity not recognised", "thermal property unit garbled".

Reproducer recipe

DERIVED_UNIT with three DERIVED_UNIT_ELEMENT entries: metre^+2, second^-2, kelvin^-1; the underlying THERMODYNAMIC_TEMPERATURE_UNIT context for kelvin must be present.

Expected kernel behavior

Heal and accept: detect / normalize the dimensional signature of specific heat capacity and bind to a J/(kg·K) context; coerce / tolerate both the kg-cancelled and kg-explicit forms; warn on dimensional mismatch.

Notes

First entry exercising THERMODYNAMIC_TEMPERATURE_UNIT in a derived-unit chain. **See also**: U040, U041. Synonyms: "STEP specific heat unit garbled", "J/(kg.K) derived chain unrecognised", "thermal property unit garbled", "specific heat capacity unit dropped", "STEP material thermal unit not bound".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

U040, 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/* U042: Specific heat capacity J/(kg*K) as DERIVED_UNIT m^2*s^-2*K^-1 (kg-cancelled form) */
3/* DEFECT: receivers that miss THERMODYNAMIC_TEMPERATURE_UNIT drop K^-1 factor */
4/* DEFECT: receivers pattern-matching named J/kg/K unit miss the kg-cancelled form */
5/* Kernel must detect m^2*s^-2*K^-1 dimensional signature and bind to J/(kg.K) */
6HEADER;
7FILE_DESCRIPTION(('U042: J/(kg*K) DERIVED_UNIT chain m^2*s^-2*K^-1 with THERMODYNAMIC_TEMPERATURE_UNIT'),'2;1');
8FILE_NAME('U042.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
10ENDSEC;
11DATA;
12/* Geometry: part with mm coordinates */
13#1=CARTESIAN_POINT('origin',(0.,0.,0.));
14#2=CARTESIAN_POINT('corner-x',(50.0,0.,0.));
15#3=CARTESIAN_POINT('corner-y',(0.,50.0,0.));
16#4=CARTESIAN_POINT('corner-z',(0.,0.,25.0));
17#5=CARTESIAN_POINT('corner-xyz',(50.0,50.0,25.0));
18/* Standard mm geometry context */
19#10=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
20#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
21#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
22#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
23  'distance_accuracy_value','maximum model space distance between geometric entities');
24#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
25  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('ctx','3D'));
26/* Base SI units for specific heat capacity DERIVED_UNIT chain */
27#20=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT($,.METRE.));
28#21=(NAMED_UNIT(*) SI_UNIT($,.SECOND.) TIME_UNIT());
29/* THERMODYNAMIC_TEMPERATURE_UNIT for kelvin — required by specific heat chain */
30/* DEFECT target: receivers that do not handle THERMODYNAMIC_TEMPERATURE_UNIT in */
31/*   a DERIVED_UNIT chain silently drop the K^-1 factor */
32#22=(NAMED_UNIT(*) SI_UNIT($,.KELVIN.) THERMODYNAMIC_TEMPERATURE_UNIT());
33/* DERIVED_UNIT for specific heat J/(kg*K) in kg-cancelled form: m^2*s^-2*K^-1 */
34#30=DERIVED_UNIT_ELEMENT(#20,2.);
35#31=DERIVED_UNIT_ELEMENT(#21,-2.);
36#32=DERIVED_UNIT_ELEMENT(#22,-1.);
37#33=DERIVED_UNIT((#30,#31,#32));
38/* Specific heat measure: 4182 J/(kg*K) (water) */
39/* Receiver that drops temperature factor reads m^2*s^-2 = J/kg — wrong unit */
40#40=MEASURE_REPRESENTATION_ITEM('specific_heat_capacity',LENGTH_MEASURE(4182.),#33);
41/* Model entity is GEOMETRIC_CURVE_SET — OCC returns empty shape */
42#50=GEOMETRIC_CURVE_SET('specific-heat-unit-derived-chain',(#1,#2,#3,#4,#5));
43ENDSEC;
44END-ISO-10303-21;