

// file : /home2/designs/boards/Ext_PS/Work/Geometries/wurth_size_s_cmc_nc_geom
//
//
//    Tuesday   3 Jan 2026   Initial version of  Wurth  Nano-Crystalline
//                           Common Mode Choke  Size  S
//
//
//
//
//           Wurth  Common Mode Choke  Size "S"
//         --------------------------------------
//
//  This is the geometry for the Wurth Common Mode Choke
//  Size "S".  Example part number:  7448027001
//
//
//  The dimensions of this choke are:
//
//     height above the pcb = 22.0 mm
//              body length = 19.0 mm
//               body width = 14.0 mm
//             lead spacing =  7.7 mm
//             lead spacing =  5.0 mm
//            lead diameter =  1.0 mm
//              lead length =  3.5 mm
//
//
//  The long axis of this part is layed out horizontally.
//
//  This chokes pins are described below near the end of
//  this geometry.
//


$abort_enable = @false;
$$lock_windows(@on) ;
$$snap_diagonal(@off) ;
$$snap_orthogonal(@off) ;


//----------------------------------------------------------------------------
//
//   Wurth Size "S"  Common Mode Choke  THD  Pin/Pad Stack
//   --------------
//
//     This pin/pad stack is for the relatively high current
//     through hole wire leads of the Wurth Common Mode Choke
//     Size "S"   with its  1.0 mm  diameter leads  and  their
//     recommended  1.5 mm  drill hole diameter.
//
//     1.40 mm  drill
//     4.20 mm  pad land
//     4.30 mm  soldermask opening
//     3.40 mm  plane relief
//
//   Thus:
//
//     Thickness of the Donut Wall around the Pin:   1.40 mm
//     Solder Space on each side of the Lead:        0.20 mm
//     Closest Approach of 2 Adjacent Pads:          0.80 mm
//     Power Fill to Drill Hole Edge Relief:         1.00 mm
//


$$create_pin("Wurth_Size_S_THD", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$Wurth_Size_S_THD']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [ 1.40,  0.0 ]);

$$circle( "PAD",         0.0, 0.0,  4.20,  0.0);

$$circle( "SIGNAL",      0.0, 0.0,  4.20,  0.0);

$$circle( "SOLDER_MASK", 0.0, 0.0,  4.30,  0.0);

$$circle( "POWER",       0.0, 0.0,  3.40, 0.0);

//----------------------------------------------------------------------------



$$create_component("Wurth_CMC_Size_S", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'CO$Wurth_CMC_Size_S']);

$$point_mode(@vertex);

$$attribute( "COMPONENT_LAYOUT_SURFACE", "both");

$$attribute( "COMPONENT_HEIGHT", "", , @scale , , [22.0, 0.0]);

$$attribute( "COMPONENT_OUTLINE_OVERHANG", "no");



//  Setup the Component Placement Outline for this connector.

$$initial([   9.50,   7.00 ], , @nosnap );
$$terminal([ -9.50,   7.00 ] );
$$terminal([ -9.50,  -7.00 ] );
$$terminal([  9.50,  -7.00 ] );
$$terminal([  9.50,   7.00 ] );

$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale );



//  Draw the Skilscreen    4 lines  on the outside of the component

$$path( "SILKSCREEN", 0.20 , , [ -9.7,  7.2,     9.7,  7.2 ]);
$$path( "SILKSCREEN", 0.20 , , [ -9.7, -7.2,     9.7, -7.2 ]);

$$path( "SILKSCREEN", 0.20 , , [ -9.7,  7.2,    -9.7, -7.2 ]);
$$path( "SILKSCREEN", 0.20 , , [  9.7,  7.2,     9.7, -7.2 ]);


$$text( "SILKSCREEN_1", "^$ref", 0.0, 8.1, 2.2, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );
$$text( "SILKSCREEN_2", "^$ref", 0.0, 8.1, 2.2, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );



//
//  The component pins
//
//     Note that pins 1 & 4 are connected by one winding
//     of this choke  and  pins 2 & 3 are connected by
//     this choke's other winding.
//
//     Pins 1 & 2  should be used together for the input or
//     output  and  pins 3 & 4  should be used together for
//     the oposite.
//


$$attribute( "COMPONENT_PIN_DEFINITION",    "1", , @scale , , [ -3.85,  -2.50 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1,  Wurth_Size_S_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [  3.85,  -2.50 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2,  Wurth_Size_S_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",    "3", , @scale , , [  3.85,   2.50 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "3,  Wurth_Size_S_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",    "4", , @scale , , [ -3.85,   2.50 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "4,  Wurth_Size_S_THD");



