Skip to content

Commit

Permalink
Added skin-effect resistor
Browse files Browse the repository at this point in the history
  • Loading branch information
PetePupalaikis committed Mar 5, 2021
1 parent 46f3690 commit c290b17
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion SignalIntegrity/App/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,22 @@ def __init__(self,propertiesList,partPicture):
class DeviceResistor(Device):
def __init__(self,propertiesList,partPicture):
netlist=DeviceNetListLine(partname='R',values=[('r',False)])
Device.__init__(self,netlist,[PartPropertyCategory('Resistors'),PartPropertyPartName('Resistor'),PartPropertyHelp('device:Resistor'),PartPropertyDefaultReferenceDesignator('R?'),PartPropertyResistance()]+propertiesList,partPicture)
Device.__init__(self,netlist,[
PartPropertyCategory('Resistors'),
PartPropertyPartName('Resistor'),
PartPropertyHelp('device:Resistor'),
PartPropertyDefaultReferenceDesignator('R?'),
PartPropertyResistance()]+propertiesList,partPicture)

class DeviceSkinEffectResistor(Device):
def __init__(self,propertiesList,partPicture):
netlist=DeviceNetListLine(partname='R',values=[('rse',False)])
Device.__init__(self,netlist,[
PartPropertyCategory('Resistors'),
PartPropertyPartName('Skin-effect Resistor'),
PartPropertyHelp('device:Skin-Effect-Resistor'),
PartPropertyDefaultReferenceDesignator('R?'),
PartPropertyResistanceSkinEffect()]+propertiesList,partPicture)

class DeviceCapacitor(Device):
def __init__(self,propertiesList,partPicture):
Expand Down Expand Up @@ -898,6 +913,7 @@ def Enable(self,DeviceName,enable):
DeviceFile([PartPropertyDescription('Variable Port File'),PartPropertyPorts(4,False)],PartPictureVariableSpecifiedPorts()),
DeviceResistor([PartPropertyDescription('One Port Resistor to Ground'),PartPropertyPorts(1)],PartPictureVariableResistorOnePort()),
DeviceResistor([PartPropertyDescription('Two Port Resistor'),PartPropertyPorts(2)],PartPictureVariableResistorTwoPort()),
DeviceSkinEffectResistor([PartPropertyDescription('Two Port Skin-Effect Resistor'),PartPropertyPorts(2)],PartPictureVariableResistorTwoPort()),
DeviceCapacitor([PartPropertyDescription('One Port Capacitor to Ground'),PartPropertyPorts(1)],PartPictureVariableCapacitorOnePort()),
DeviceCapacitor([PartPropertyDescription('Two Port Capacitor'),PartPropertyPorts(2)],PartPictureVariableCapacitorTwoPort()),
DeviceInductor([PartPropertyDescription('Two Port Inductor'),PartPropertyPorts(2)],PartPictureVariableInductorTwoPort()),
Expand Down

0 comments on commit c290b17

Please sign in to comment.