step-examples/12-8-mixed/M078.stp
Sources
- deduced from AP209 §6 fea topology rules
- companion to M037
Sender
deduced — FEA exporter confusing linear and quadratic shape functions
Description
A `VOLUME_3D_ELEMENT_DESCRIPTOR` declares `quadratic_hexahedron` topology — which mandates 20 nodes (8 corner + 12 mid-edge) — but the descriptor's node list contains only 12. The resulting element cannot be evaluated as a quadratic hex; consumers either fall back to linear interpolation silently or drop the element. Bug-reporter language: "AP209 hex element has wrong node count", "quadratic hex with too few nodes", "FEM element drops on import".
Reproducer recipe
`VOLUME_3D_ELEMENT_DESCRIPTOR('quad_hex', 'quadratic_hexahedron', (n1.n12))` — 12 nodes for a topology requiring 20.
Expected kernel behavior
validate node-count against the declared topology; drop the element with a warning, or reject the file.
Notes
Synonyms: "AP209 hex node count wrong", "quadratic hex with 12 nodes not 20", "FEA element node count wrong for hex8", "AP209 element under-noded", "hex element missing mid-edge nodes". **See also**: M037, M109, analog, tetrahedral, the.- **Byte assertion**: contains(b'STRUCTURAL_ANALYSIS_DESIGN')
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'quadratic_hexahedron')contains(b'VOLUME_3D_ELEMENT_DESCRIPTOR')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M078: AP209 quadratic_hexahedron with wrong node count (12 instead of 20) */ 3/* DEFECT: quadratic hex (C3D20) requires 20 nodes; only 12 provided */ 4/* Element cannot be evaluated; consumers must drop or reject */ 5/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */ 6/* Byte assertion: contains(b'quadratic_hexahedron') */ 7/* Byte assertion: contains(b'VOLUME_3D_ELEMENT_DESCRIPTOR') */ 8HEADER; 9FILE_DESCRIPTION(('M078: AP209 quadratic_hexahedron with 12 nodes not 20'),'2;1'); 10FILE_NAME('M078.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/* Standard unit 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) 25 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 26 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 27 REPRESENTATION_CONTEXT('fea','3D')); 28/* 8 corner nodes of unit cube */ 29#100=CARTESIAN_POINT('n1',(0.0,0.0,0.0)); 30#101=CARTESIAN_POINT('n2',(1.0,0.0,0.0)); 31#102=CARTESIAN_POINT('n3',(1.0,1.0,0.0)); 32#103=CARTESIAN_POINT('n4',(0.0,1.0,0.0)); 33#104=CARTESIAN_POINT('n5',(0.0,0.0,1.0)); 34#105=CARTESIAN_POINT('n6',(1.0,0.0,1.0)); 35#106=CARTESIAN_POINT('n7',(1.0,1.0,1.0)); 36#107=CARTESIAN_POINT('n8',(0.0,1.0,1.0)); 37/* 4 mid-edge nodes (only 4 of 12 required; should be 12 mid-edge for C3D20) */ 38#108=CARTESIAN_POINT('m1',(0.5,0.0,0.0)); 39#109=CARTESIAN_POINT('m2',(1.0,0.5,0.0)); 40#110=CARTESIAN_POINT('m3',(0.5,1.0,0.0)); 41#111=CARTESIAN_POINT('m4',(0.0,0.5,0.0)); 42/* NODE entities for the 12 geometry points */ 43#120=NODE('n1',(#100),$); 44#121=NODE('n2',(#101),$); 45#122=NODE('n3',(#102),$); 46#123=NODE('n4',(#103),$); 47#124=NODE('n5',(#104),$); 48#125=NODE('n6',(#105),$); 49#126=NODE('n7',(#106),$); 50#127=NODE('n8',(#107),$); 51#128=NODE('m1',(#108),$); 52#129=NODE('m2',(#109),$); 53#130=NODE('m3',(#110),$); 54#131=NODE('m4',(#111),$); 55/* Byte assertion: contains(b'VOLUME_3D_ELEMENT_DESCRIPTOR') */ 56/* Byte assertion: contains(b'quadratic_hexahedron') */ 57/* DEFECT: quadratic_hexahedron requires 20 nodes; only 12 listed */ 58#200=VOLUME_3D_ELEMENT_DESCRIPTOR('quad_hex','quadratic_hexahedron', 59 (#120,#121,#122,#123,#124,#125,#126,#127,#128,#129,#130,#131)); 60/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 61#300=GEOMETRIC_CURVE_SET('ap209-quadratic-hexahedron-12-nodes-not-20', 62 (#120,#121,#122,#123,#124,#125,#126,#127,#128,#129,#130,#131,#200)); 63/* Product chain */ 64#400=APPLICATION_CONTEXT('mechanical design'); 65#401=PRODUCT_CONTEXT('',#400,'mechanical'); 66#402=PRODUCT('M078','M078','M078',(#401)); 67#403=PRODUCT_DEFINITION_FORMATION('','',#402); 68#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 69#405=PRODUCT_DEFINITION('','',#403,#404); 70#406=PRODUCT_DEFINITION_SHAPE('','',#405); 71#407=SHAPE_REPRESENTATION('',(#300),#14); 72#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 73ENDSEC; 74END-ISO-10303-21;