From c290b17f7f9ae5d29b0daf8b39eab601ad4fa0a7 Mon Sep 17 00:00:00 2001 From: PetePupalaikis Date: Fri, 5 Mar 2021 11:21:37 -0500 Subject: [PATCH] Added skin-effect resistor --- SignalIntegrity/App/Device.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/SignalIntegrity/App/Device.py b/SignalIntegrity/App/Device.py index 6cfb468c6..f73ef0e61 100644 --- a/SignalIntegrity/App/Device.py +++ b/SignalIntegrity/App/Device.py @@ -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): @@ -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()),