def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(devicename='unknown') Device.__init__(self, netlist, [ PartPropertyCategory('Unknowns'), PartPropertyPartName('Unknown'), PartPropertyDefaultReferenceDesignator('U?') ] + propertiesList, partPicture)
def __init__(self): netlist=DeviceNetListLine(devicename='output',showReference=False,showports=False) Device.__init__(self,netlist,[PartPropertyCategory('Special'),PartPropertyPartName('Output'),PartPropertyDefaultReferenceDesignator('VO?'),PartPropertyDescription('Output'), PartPropertyVoltageGain(1.0),PartPropertyVoltageOffset(0.0),PartPropertyDelay(0.0)],PartPictureVariableProbe()) self['gain']['Visible']=False self['offset']['Visible']=False self['td']['Visible']=False
def __init__(self,propertiesList,partPicture): netlist=DeviceNetListLine(partname='telegrapher', values=[('rp',True),('rsep',True),('lp',True),('gp',True),('cp',True),('dfp',True), ('rn',True),('rsen',True),('ln',True),('gn',True),('cn',True),('dfn',True), ('lm',True),('gm',True),('cm',True),('dfm',True),('sect',True)]) Device.__init__(self,netlist,[PartPropertyCategory('TransmissionLines'), PartPropertyPartName('Telegrapher'), PartPropertyDefaultReferenceDesignator('T?'), PartPropertyResistance(keyword='rp',descriptionPrefix='positive ',resistance=0.0), PartPropertyResistanceSkinEffect(keyword='rsep',descriptionPrefix='positive '), PartPropertyInductance(keyword='lp',descriptionPrefix='positive '), PartPropertyConductance(keyword='gp',descriptionPrefix='positive '), PartPropertyCapacitance(keyword='cp',descriptionPrefix='positive '), PartPropertyDissipationFactor(keyword='dfp',descriptionPrefix='positive '), PartPropertyResistance(keyword='rn',descriptionPrefix='negative ',resistance=0.0), PartPropertyResistanceSkinEffect(keyword='rsen',descriptionPrefix='negative '), PartPropertyInductance(keyword='ln',descriptionPrefix='negative '), PartPropertyConductance(keyword='gn',descriptionPrefix='negative '), PartPropertyCapacitance(keyword='cn',descriptionPrefix='negative '), PartPropertyDissipationFactor(keyword='dfn',descriptionPrefix='negative '), PartPropertyConductance(keyword='gm',descriptionPrefix='mutual '), PartPropertyInductance(keyword='lm',descriptionPrefix='mutual '), PartPropertyCapacitance(keyword='cm',descriptionPrefix='mutual '), PartPropertyDissipationFactor(keyword='dfm',descriptionPrefix='mutual '), PartPropertySections(sections=0)]+propertiesList,partPicture)
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(partname='directionalcoupler') Device.__init__(self, netlist, [ PartPropertyCategory('Miscellaneous'), PartPropertyPartName('Directional Coupler'), PartPropertyDefaultReferenceDesignator('D?') ] + propertiesList, partPicture)
def __init__(self): netlist=DeviceNetListLine(devicename='currentoutput') Device.__init__(self,netlist,[PartPropertyCategory('Special'),PartPropertyPartName('CurrentOutput'),PartPropertyDefaultReferenceDesignator('VO?'),PartPropertyDescription('Current Probe'),PartPropertyPorts(2), PartPropertyTransresistance(1.0),PartPropertyVoltageOffset(0.0),PartPropertyDelay(0.0)],PartPictureVariableCurrentProbe()) self['gain']['Visible']=False self['offset']['Visible']=False self['td']['Visible']=False
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(partname='L', values=[('l', False)]) Device.__init__(self, netlist, [ PartPropertyCategory('Inductors'), PartPropertyPartName('Inductor'), PartPropertyDefaultReferenceDesignator('L?'), PartPropertyInductance() ] + propertiesList, partPicture)
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(values=[('file', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Files'), PartPropertyPartName('File'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyFileName() ] + propertiesList, partPicture)
def __init__(self): netlist = DeviceNetListLine(partname='mixedmode voltage') Device.__init__(self, netlist, [ PartPropertyCategory('Miscellaneous'), PartPropertyPartName('Voltage Mixed Mode Converter'), PartPropertyDefaultReferenceDesignator('MM?'), PartPropertyDescription('Voltage Mixed Mode Converter'), PartPropertyPorts(4) ], PartPictureVariableVoltageMixedModeConverter())
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(devicename='currentsource') Device.__init__(self, netlist, [ PartPropertyCategory('Sources'), PartPropertyPartName('Current Source'), PartPropertyDefaultReferenceDesignator('CS?'), PartPropertyWaveformFileName(), PartPropertyWaveformType('file'), PartPropertyWaveformProjectName() ] + propertiesList, partPicture)
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(partname='tline', values=[('zc', True), ('td', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('TransmissionLines'), PartPropertyPartName('TransmissionLine'), PartPropertyDefaultReferenceDesignator('T?'), PartPropertyDelay(), PartPropertyCharacteristicImpedance() ] + propertiesList, partPicture)
def __init__(self, propertiesList): netlist = DeviceNetListLine(partname='currentcontrolledvoltagesource', values=[('gain', False)]) Device.__init__( self, netlist, [ PartPropertyCategory('Dependent Sources'), PartPropertyPartName('CurrentControlledVoltageSource'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyTransresistance(1.0) ] + propertiesList, PartPictureVariableCurrentControlledVoltageSourceFourPort())
def __init__(self): netlist = DeviceNetListLine(devicename='stim', showReference=False, showports=False) Device.__init__(self, netlist, [ PartPropertyCategory('Special'), PartPropertyPartName('Stim'), PartPropertyDefaultReferenceDesignator('M?'), PartPropertyWeight(1.), PartPropertyDescription('Stim') ], PartPictureVariableStim())
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(devicename='system', showReference=False, showports=False, values=[('file', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Systems'), PartPropertyPartName('System'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyFileName() ] + propertiesList, partPicture)
def __init__(self): netlist = DeviceNetListLine(partname='open') Device.__init__(self, netlist, [ PartPropertyCategory('Miscellaneous'), PartPropertyPartName('Open'), PartPropertyDefaultReferenceDesignator('O?'), PartPropertyDescription('Open'), PartPropertyPorts(1) ], partPicture=PartPictureVariableOpen())
def __init__(self,propertiesList,partPicture): netlist=DeviceNetListLine(partname='telegrapher',values=[('r',True),('rse',True),('l',True),('g',True),('c',True),('df',True),('sect',True)]) Device.__init__(self,netlist,[PartPropertyCategory('TransmissionLines'), PartPropertyPartName('Telegrapher'), PartPropertyDefaultReferenceDesignator('T?'), PartPropertyResistance(resistance=0.0), PartPropertyResistanceSkinEffect(), PartPropertyInductance(), PartPropertyConductance(), PartPropertyCapacitance(), PartPropertyDissipationFactor(), PartPropertySections(sections=0)]+propertiesList,partPicture)
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(partname='C', values=[('c', False), ('esr', True), ('df', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Capacitors'), PartPropertyPartName('Capacitor'), PartPropertyDefaultReferenceDesignator('C?'), PartPropertyCapacitance(), PartPropertyDissipationFactor(), PartPropertyESR() ] + propertiesList, partPicture)
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(devicename='voltagesource') Device.__init__(self, netlist, [ PartPropertyCategory('Generators'), PartPropertyPartName('Voltage Noise Source'), PartPropertyDefaultReferenceDesignator('VG?'), PartPropertyHorizontalOffset(), PartPropertyDuration(), PartPropertySampleRate(), PartPropertyVoltageRms(), PartPropertyWaveformType('noise') ] + propertiesList, partPicture)
def __init__(self, propertiesList): netlist = DeviceNetListLine(partname='currentamplifier', values=[('gain', True), ('zi', True), ('zo', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Amplifiers'), PartPropertyPartName('CurrentAmplifier'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyCurrentGain(1.0), PartPropertyInputImpedance(0.), PartPropertyOutputImpedance(1e8) ] + propertiesList, PartPictureVariableCurrentAmplifierFourPort())
def __init__(self, propertiesList): netlist = DeviceNetListLine(partname='opamp', values=[('gain', True), ('zi', True), ('zo', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Amplifiers'), PartPropertyPartName('OperationalAmplifier'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyVoltageGain(100e3), PartPropertyInputImpedance(1e8), PartPropertyOutputImpedance(0.) ] + propertiesList, PartPictureVariableOperationalAmplifier())
def __init__(self, propertiesList): netlist = DeviceNetListLine(partname='npntransistor', values=[('gm', True), ('rpi', True), ('ro', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Amplifiers'), PartPropertyPartName('NPN Transistor'), PartPropertyDefaultReferenceDesignator('Q?'), PartPropertyGm(200.0), PartPropertyRpi(200e3), PartPropertyOutputResistance(200e3), PartPropertyPorts(3) ] + propertiesList, PartPictureVariableNPNTransister())
def __init__(self, propertiesList): netlist = DeviceNetListLine(partname='transresistanceamplifier', values=[('gain', True), ('zi', True), ('zo', True)]) Device.__init__(self, netlist, [ PartPropertyCategory('Amplifiers'), PartPropertyPartName('TransresistanceAmplifier'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyTransresistance(1.0), PartPropertyInputImpedance(0.), PartPropertyOutputImpedance(0.) ] + propertiesList, PartPictureVariableTransresistanceAmplifierTwoPort())
def __init__(self, propertiesList, partPicture): netlist = DeviceNetListLine(devicename='currentsource') Device.__init__(self, netlist, [ PartPropertyCategory('Generators'), PartPropertyPartName('Current Step Generator'), PartPropertyDefaultReferenceDesignator('CG?'), PartPropertyHorizontalOffset(), PartPropertyDuration(), PartPropertyStartTime(), PartPropertySampleRate(), PartPropertyCurrentAmplitude(), PartPropertyWaveformType('step') ] + propertiesList, partPicture)
def __init__(self): netlist = DeviceNetListLine(partname='M', values=[('l', False)]) Device.__init__( self, netlist, [ PartPropertyCategory('Inductors'), PartPropertyPartName('Mutual'), PartPropertyDefaultReferenceDesignator('M?'), PartPropertyPorts(4), PartPropertyInductance(), PartPropertyDescription('Four Port Mutual Inductance') ], partPicture=PartPictureVariableMutual())
def __init__(self): netlist = DeviceNetListLine(devicename='meas', showReference=False, showports=False) Device.__init__(self, netlist, [ PartPropertyCategory('Special'), PartPropertyPartName('Measure'), PartPropertyDefaultReferenceDesignator('VM?'), PartPropertyDescription('Measure'), PartPropertyWaveformFileName(), PartPropertyWaveformType('file'), PartPropertyWaveformProjectName() ], PartPictureVariableMeasureProbe())
def __init__(self, portNumber=1): netlist = DeviceNetListLine(devicename='port', showReference=False, showports=False, values=[('pn', False)]) Device.__init__(self, netlist, [ PartPropertyCategory('Special'), PartPropertyPartName('Port'), PartPropertyDescription('Port'), PartPropertyPorts(1), PartPropertyPortNumber(portNumber) ], partPicture=PartPictureVariablePort())
def __init__(self): netlist = DeviceNetListLine(partname='idealtransformer', values=[('tr', False)]) Device.__init__( self, netlist, [ PartPropertyCategory('Inductors'), PartPropertyPartName('IdealTransformer'), PartPropertyDefaultReferenceDesignator('D?'), PartPropertyPorts(4), PartPropertyTurnsRatio(), PartPropertyDescription('Four Port IdealTransformer') ], partPicture=PartPictureVariableIdealTransformer())
def __init__(self,propertiesList,partPicture): netlist=DeviceNetListLine(devicename='voltagesource') Device.__init__(self,netlist,[PartPropertyCategory('Generators'),PartPropertyPartName('Voltage Clock Generator'),PartPropertyDefaultReferenceDesignator('VG?'), PartPropertyHorizontalOffset(),PartPropertyDuration(),PartPropertyStartTime(),PartPropertyFrequency(),PartPropertyRisetime(),PartPropertySampleRate(),PartPropertyVoltageAmplitude(),PartPropertyWaveformType('clock')]+propertiesList,partPicture)