M080 — AP209 material property unit mismatch by 6 orders of magnitude

§12.8 mixed (sub-class: AP209 material units)

P1 — silent data loss

units

Sources

Sender

deduced — FEA exporter mixing engineering and SI conventions

Description

An elastic-property `MEASURE_WITH_UNIT` for Young's modulus carries the numeric value `200000.0` (the canonical mm-MPa value for steel) in a context whose unit is Pascals (SI). Imported as Pa, the modulus is 200 kPa instead of 200 GPa; six orders of magnitude too soft. Bug-reporter language: "FEM material 1e6× wrong", "modulus imported as Pa not MPa", "AP209 material units off by million".

Reproducer recipe

`MEASURE_WITH_UNIT(POSITIVE_RATIO_MEASURE(200000.0), derived_unit_in_pascals)` paired with a context whose `LENGTH_UNIT` is metre.

Expected kernel behavior

Warn and accept: range-check material property values against expected order of magnitude for the named property; warn loudly on out-of-range values.

Notes

Synonyms: "mm-MPa vs SI confusion", "modulus too small", "Young's modulus imported wrong".

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M080: AP209 material property unit mismatch by 6 orders of magnitude */
3/* DEFECT: Young's modulus 200000.0 is mm-MPa value, but context uses Pa (SI) */
4/* Imported as 200 kPa instead of 200 GPa — structure is 1e6x too soft */
5/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */
6/* Byte assertion: contains(b'DERIVED_UNIT') */
7/* Byte assertion: contains(b'200000.0') */
8HEADER;
9FILE_DESCRIPTION(('M080: AP209 material property unit mismatch 6 orders'),'2;1');
10FILE_NAME('M080.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','','');
11/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */
12FILE_SCHEMA(('STRUCTURAL_ANALYSIS_DESIGN { 1 0 10303 209 1 0 0 }'));
13ENDSEC;
14DATA;
15#1=APPLICATION_CONTEXT('structural_analysis_design');
16#2=APPLICATION_PROTOCOL_DEFINITION('international standard',
17  'structural_analysis_design',2001,#1);
18/* SI base units: metre, kilogram, second */
19#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT($,.METRE.));
20#11=(MASS_UNIT()NAMED_UNIT(*)SI_UNIT(.KILO.,.GRAM.));
21#12=(NAMED_UNIT(*)SI_UNIT($,.SECOND.)TIME_UNIT());
22/* DIMENSIONAL_EXPONENTS for pressure/stress: Pa = kg m^-1 s^-2 */
23#13=DIMENSIONAL_EXPONENTS(-1.0,1.0,-2.0,0.0,0.0,0.0,0.0);
24/* Byte assertion: contains(b'DERIVED_UNIT') */
25/* DERIVED_UNIT_ELEMENTs composing Pa = m^-1 kg^1 s^-2 */
26#14=DERIVED_UNIT_ELEMENT(#10,-1.0);
27#15=DERIVED_UNIT_ELEMENT(#11,1.0);
28#16=DERIVED_UNIT_ELEMENT(#12,-2.0);
29#17=DERIVED_UNIT((#14,#15,#16));
30/* Geometric context in SI metre — important: not mm */
31#20=(GEOMETRIC_REPRESENTATION_CONTEXT(3)
32  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12))
33  REPRESENTATION_CONTEXT('analysis','3D'));
34/* Byte assertion: contains(b'200000.0') */
35/* DEFECT: 200000.0 is the steel modulus in mm-MPa convention (200 GPa = 200000 MPa) */
36/* In this file's Pa unit context: 200000.0 Pa = 200 kPa — 1e6x too small */
37/* Correct SI value for steel: 2.0e11 Pa = 200 GPa */
38#100=MEASURE_WITH_UNIT(POSITIVE_RATIO_MEASURE(200000.0),#17);
39#110=GENERAL_PROPERTY('Youngs_Modulus','Youngs_Modulus','steel');
40#120=PROPERTY_DEFINITION('Youngs_Modulus_def','',#110);
41/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
42#300=GEOMETRIC_CURVE_SET('ap209-material-unit-mismatch-mpa-vs-pa-6-orders',
43  (#100,#110,#120));
44/* Product chain */
45#400=APPLICATION_CONTEXT('mechanical design');
46#401=PRODUCT_CONTEXT('',#400,'mechanical');
47#402=PRODUCT('M080','M080','M080',(#401));
48#403=PRODUCT_DEFINITION_FORMATION('','',#402);
49#404=PRODUCT_DEFINITION_CONTEXT(#400,'design');
50#405=PRODUCT_DEFINITION('','',#403,#404);
51#406=PRODUCT_DEFINITION_SHAPE('','',#405);
52#407=SHAPE_REPRESENTATION('',(#300),#20);
53#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407);
54ENDSEC;
55END-ISO-10303-21;