M122 — AP209 ply orientation expressed in wrong reference frame

§12.8 mixed (sub-class: AP209 material orientation frame)

P1 — silent data loss

topology

Sources

Sender

deduced — composite-modeling tool storing fiber direction in global coordinates while solver expects element-local

Description

A composite ply's fiber-orientation vector is recorded as global-coordinate `(1,0,0)` (i.e. world-X), but the solver convention is that ply orientations are expressed in the element-local material coordinate system. On a curved shell, the global-X reading wraps around the surface and rotates relative to the laminate; some elements end up with fibers running across instead of along the intended path. Bug-reporter language: "AP209 ply orientation frame wrong", "composite fibers not aligned with surface", "local vs global material direction".

Reproducer recipe

A laminate ply orientation referencing a global `AXIS2_PLACEMENT_3D` with axis `(0,0,1)` instead of an element-attached local frame; surface curves in 3D so the global-X interpretation is inappropriate.

Expected kernel behavior

Warn and accept, or heal and accept: validate that the orientation reference frame matches solver convention; either warn or transform (coerce) into the solver frame.

Notes

Synonyms: "AP209 fiber frame mismatch", "ply orientation in wrong CSYS", "ply vector in global vs local frame", "composite orientation reference frame wrong". Synonyms: "AP209 fiber frame mismatch", "ply orientation in wrong CSYS".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(5) 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/* M122: AP209 ply orientation expressed in wrong (global) reference frame */
3/* DEFECT: fiber direction (1,0,0) is world-X global; solver expects element-local */
4/* On a curved shell, global-X wraps around and fibers run off-axis */
5/* Per AP209 §8, ply orientation must use element-local material coordinate system */
6/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */
7/* Byte assertion: contains(b'AXIS2_PLACEMENT_3D') */
8HEADER;
9FILE_DESCRIPTION(('M122: AP209 composite ply orientation in global not element-local frame'),'2;1');
10FILE_NAME('M122.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 (mm) */
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/* Curved shell: nodes form a quadrilateral on a cylinder surface */
29/* The surface normal varies between elements — global-X wraps around */
30#100=CARTESIAN_POINT('cn1',(10.0,0.0,0.0));
31#101=CARTESIAN_POINT('cn2',(7.07,7.07,0.0));
32#102=CARTESIAN_POINT('cn3',(7.07,7.07,10.0));
33#103=CARTESIAN_POINT('cn4',(10.0,0.0,10.0));
34/* Byte assertion: contains(b'AXIS2_PLACEMENT_3D') */
35/* DEFECT: global frame origin at world origin; axis is global Z = (0,0,1) */
36/* Fiber direction (1,0,0) is world-X — NOT element-local tangent direction */
37/* A correct ply orientation would use an element-attached local frame */
38#104=CARTESIAN_POINT('global_origin',(0.0,0.0,0.0));
39#105=DIRECTION('global_z',(0.0,0.0,1.0));
40#106=DIRECTION('global_x_fiber',(1.0,0.0,0.0));
41#107=AXIS2_PLACEMENT_3D('global_ply_frame',#104,#105,#106);
42#110=NODE('ply_n1',(#100),$);
43#111=NODE('ply_n2',(#101),$);
44#112=NODE('ply_n3',(#102),$);
45#113=NODE('ply_n4',(#103),$);
46#200=SURFACE_3D_ELEMENT_DESCRIPTOR('curved_shell_elem',
47  'linear_quadrilateral',(#110,#111,#112,#113),$);
48/* DEFECT: ply orientation references global #107 instead of element-local frame */
49/* PLY_LAMINATE_SEQUENCE with 0-degree ply in (incorrectly) global frame */
50#210=PLY_LAMINATE_SEQUENCE('cf_ply_0deg',#107,0.0,2.0,
51  'carbon_fibre_ud',1);
52#300=NODE_GROUP('shell_nodes',(#110,#111,#112,#113),$);
53#310=FEA_MODEL('curved_composite_shell',$,'',(#300),(),());
54/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
55#500=GEOMETRIC_CURVE_SET('ap209-ply-orientation-wrong-reference-frame',
56  (#100,#101,#102,#103,#104,#105,#106,#107,
57   #110,#111,#112,#113,#200,#210,#310));
58/* Product chain */
59#600=APPLICATION_CONTEXT('mechanical design');
60#601=PRODUCT_CONTEXT('',#600,'mechanical');
61#602=PRODUCT('M122','M122','M122',(#601));
62#603=PRODUCT_DEFINITION_FORMATION('','',#602);
63#604=PRODUCT_DEFINITION_CONTEXT(#600,'design');
64#605=PRODUCT_DEFINITION('','',#603,#604);
65#606=PRODUCT_DEFINITION_SHAPE('','',#605);
66#607=SHAPE_REPRESENTATION('',(#500),#14);
67#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607);
68ENDSEC;
69END-ISO-10303-21;