step-examples/12-8-mixed/M112.stp
Sources
- deduced from AP209 §7 multi_point_constraint master/slave acyclic graph requirement
Sender
deduced — FEA preprocessor allowing user-defined MPCs without cycle check
Description
Three `MULTI_POINT_CONSTRAINT` entries form a cycle: node A is a slave of node B (constraint X), node B is a slave of node C (constraint Y), node C is a slave of node A (constraint Z). Solver assembly cannot resolve the master-slave reduction; either the matrix is singular or the system iterates indefinitely. Bug-reporter language: "AP209 MPC cycle", "FEM constraint chain has loop", "master-slave loop in STEP file".
Reproducer recipe
Three `MULTI_POINT_CONSTRAINT` entities forming A→B→C→A.
Expected kernel behavior
detect cycle in MPC graph; reject as malformed; report which nodes participate in the cycle.
Notes
Synonyms: "MPC loop", "AP209 master-slave cycle", "multi_point_constraint dependency cycle", "MPC dependency cycle", "FEM constraint chain loops".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'STRUCTURAL_ANALYSIS_DESIGN')count_entity_def(b'MULTI_POINT_CONSTRAINT') >= 3
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M112: AP209 MULTI_POINT_CONSTRAINT chain forms a dependency cycle */ 3/* DEFECT: AâBâCâA MPC cycle â solver cannot resolve master-slave reduction */ 4/* Stiffness matrix singular; FEA result undefined; must be rejected */ 5/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */ 6/* Byte assertion: count_entity_def(b'MULTI_POINT_CONSTRAINT') >= 3 */ 7HEADER; 8FILE_DESCRIPTION(('M112: AP209 MPC dependency cycle A->B->C->A'),'2;1'); 9FILE_NAME('M112.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 10/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */ 11FILE_SCHEMA(('STRUCTURAL_ANALYSIS_DESIGN { 1 0 10303 209 1 0 0 }')); 12ENDSEC; 13DATA; 14#1=APPLICATION_CONTEXT('structural_analysis_design'); 15#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 16 'structural_analysis_design',2001,#1); 17/* Standard unit 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) 24 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 25 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 26 REPRESENTATION_CONTEXT('fea','3D')); 27/* Three nodes forming the MPC cycle */ 28#100=CARTESIAN_POINT('node_A',(0.0,0.0,0.0)); 29#101=CARTESIAN_POINT('node_B',(100.0,0.0,0.0)); 30#102=CARTESIAN_POINT('node_C',(50.0,100.0,0.0)); 31#110=NODE('node_A',(#100),$); 32#111=NODE('node_B',(#101),$); 33#112=NODE('node_C',(#102),$); 34/* NODE_GROUP: all three nodes in the FEA model */ 35#300=NODE_GROUP('all_nodes',(#110,#111,#112),$); 36#310=FEA_MODEL('triangle_model',$,'',(#300),(),()); 37/* DEFECT: three MPCs forming AâBâCâA directed cycle */ 38/* Byte assertion: count_entity_def(b'MULTI_POINT_CONSTRAINT') >= 3 */ 39/* Constraint X: node_A is slave, node_B is master */ 40#400=MULTI_POINT_CONSTRAINT('mpc_AB',#110,(#111),$); 41/* Constraint Y: node_B is slave, node_C is master */ 42#401=MULTI_POINT_CONSTRAINT('mpc_BC',#111,(#112),$); 43/* Constraint Z: node_C is slave, node_A is master â CYCLE CLOSES HERE */ 44/* ISO 10303-209 §7 requires acyclic DAG; this violates the invariant */ 45#402=MULTI_POINT_CONSTRAINT('mpc_CA',#112,(#110),$); 46/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 47#500=GEOMETRIC_CURVE_SET('ap209-multi-point-constraint-dependency-cycle', 48 (#110,#111,#112,#310,#400,#401,#402)); 49/* Product chain */ 50#600=APPLICATION_CONTEXT('mechanical design'); 51#601=PRODUCT_CONTEXT('',#600,'mechanical'); 52#602=PRODUCT('M112','M112','M112',(#601)); 53#603=PRODUCT_DEFINITION_FORMATION('','',#602); 54#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 55#605=PRODUCT_DEFINITION('','',#603,#604); 56#606=PRODUCT_DEFINITION_SHAPE('','',#605); 57#607=SHAPE_REPRESENTATION('',(#500),#14); 58#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 59ENDSEC; 60END-ISO-10303-21;