
//
//  file:  wurth_74435561100_10uh_9amp_geom
//
//  date:  18-Jan-2023   original for the Disco-Kraken Board
//
//
//
//
//  This is the geometry for the  Wurth 74435561100
//  size 1890 inductor  that is about
//  18.3 mm in X   by   18.2 mm in Y.
//
//  This SMD inductor is about  8.9 mm  tall.
//  The 2 pads are along the horizontal X axis.
//
//  This geometry includes it own SMD pads that are
//  6.0 mm wide in X   by   6.0 mm high in Y.
//  The centers of the pads are  13.3 mm  apart
//  along the X axis.
//
//  This is a  10 uH choke   6.9 mOhm   15.0 Amp
//  and a self resonant at about 14 MHz.
//
//
//  This geometry includes copper to the bottom
//  side of the pads to make a baby "fill" to the
//  associated Power Via Arrays.   Note this bottom
//  side metal is on layer  Sheet_Dielectric_1
//  to fit my standard for adding this type of copper.
//  This added bottom side copper is instanced in the
//  main body of this geometry - not in its pin/pad stack.
//  ---> Currently this is commented out for the DK Brd.
//



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



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

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

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

$$point_mode(@vertex);

$$polygon( "PAD", ,                [ -3.00, -3.00,    3.00, -3.00,     3.00, 3.00,    -3.00, 3.00 ] );

$$polygon( "SOLDER_MASK", ,        [ -3.05, -3.05,    3.05, -3.05,     3.05, 3.05,    -3.05, 3.05 ] );

$$polygon( "PASTE_MASK", ,         [ -3.00, -3.00,    3.00, -3.00,     3.00, 3.00,    -3.00, 3.00 ] );

$$attribute( "TERMINAL_SURFACE_DEFINITION", "");

//
//   NOTE that Sheet_Dielectric_2 is being used to add metal to the
//   backside of the pads to make a "fill" with the associated Power
//   Via Arrays.

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


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

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

$$point_mode(@vertex); 

$$attribute( "COMPONENT_LAYOUT_TYPE", "surface");

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

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




//
//   Reduced size placement outline
//   outline just around device pins
//   for tighter placement fit
//

$$template_line_style( @Solid );

$$initial([    9.15,   9.10  ], , @nosnap );
$$terminal([  -9.15,   9.10  ] );
$$terminal([  -9.15,  -9.10  ] );
$$terminal([   9.15,  -9.10  ] );
$$terminal([   9.15,   9.10  ] );

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




//
//   Bottom Side Copper under the SMD Pads on the Top  Currently Wrong Size
//

// //$$polygon( "SHEET_DIELECTRIC_1", , [  6.40,  2.70,    3.50,  2.70,     3.50, -2.70,    6.40, -2.70 ] );

// //$$polygon( "SHEET_DIELECTRIC_1", , [ -3.50,  2.70,   -6.40,  2.70,    -6.40, -2.70,   -3.50, -2.70 ] );




//  Silkscreen Outline

$$template_line_style( @Solid );

$$path( "SILKSCREEN", 0.20, , [ -9.15,  9.10,     9.15,  9.10 ]);
$$path( "SILKSCREEN", 0.20, , [ -9.15,  9.10,    -9.15,  3.50 ]);
$$path( "SILKSCREEN", 0.20, , [  9.15,  9.10,     9.15,  3.50 ]);

$$path( "SILKSCREEN", 0.20, , [ -9.15, -9.10,     9.15, -9.10 ]);
$$path( "SILKSCREEN", 0.20, , [ -9.15, -9.10,    -9.15, -3.50 ]);
$$path( "SILKSCREEN", 0.20, , [  9.15, -9.10,     9.15, -3.50 ]);



// Reference Designator is on SILKSCREEN Layer.

$$text( "SILKSCREEN", "^$ref", 0.0,  10.0,  2.0, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );



//
//  Define the 2 pins on the  Wurth 74435561100 inductor
//
//  pin #1 is to the left and pin #2 is on the right both on the X axis.
//

$$attribute( "COMPONENT_PIN_DEFINITION",    "1", , @scale , , [ -6.65,  0.00 ]);

$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, wurth_1890_pad");


$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [  6.65,  0.00 ]);

$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, wurth_1890_pad");



