def __init__(self, n1, n2):
     self.current = util.gensym('i_'+n1+'->'+n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
示例#2
0
 def __init__(self, n1, n2):
     self.current = util.gensym('i_' + n1 + '->' + n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
 def __init__(self, nPlus, nMinus, nOut, K=10000):
     """
     @param nPlus: name of positive input node (string)
     @param nMinus: name of negative input node (string)
     @param nOut: name of positive output node (string)
     @param K: constant in op-amp model (number)
     """
     self.K = K
     self.nPlus = nPlus
     self.nMinus = nMinus
     self.nOut = nOut
     self.current = util.gensym('i->'+nOut)
     """
 def __init__(self, r, n1, n2):
     """
     @param r: resistance in Ohms (number)
     @param n1: name of node at one end of the resistor (string)
     @param n2: name of node at the other end of the resistor (string)
     """
     self.current = util.gensym('i_'+n1+'->'+n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
     self.r = r
 def __init__(self, i, n1, n2):
     """
     @param i: current, in Amperes (number), flowing from C{n1} to C{n2}
     @param n1: name of node at one end of the current source (string)
     @param n2: name of node at the other end of the current source (string)
     """
     self.current = util.gensym('i_'+n1+'->'+n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
     self.i = i
 def __init__(self, v, n1, n2):
     """
     @param v: voltage in Volts (number);  equal to voltage at C{n1} minus voltage at C{n2} 
     @param n1: name of node at one end of the voltage source (string)
     @param n2: name of node at the other end of the voltage source (string)
     """
     self.current = util.gensym('i_'+n1+'->'+n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
     self.v = v
示例#7
0
 def __init__(self, nPlus, nMinus, nOut, K=10000):
     """
     @param nPlus: name of positive input node (string)
     @param nMinus: name of negative input node (string)
     @param nOut: name of positive output node (string)
     @param K: constant in op-amp model (number)
     """
     self.K = K
     self.nPlus = nPlus
     self.nMinus = nMinus
     self.nOut = nOut
     self.current = util.gensym('i->' + nOut)
     """
示例#8
0
 def __init__(self, r, n1, n2):
     """
     @param r: resistance in Ohms (number)
     @param n1: name of node at one end of the resistor (string)
     @param n2: name of node at the other end of the resistor (string)
     """
     self.current = util.gensym('i_' + n1 + '->' + n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
     self.r = r
示例#9
0
 def __init__(self, i, n1, n2):
     """
     @param i: current, in Amperes (number), flowing from C{n1} to C{n2}
     @param n1: name of node at one end of the current source (string)
     @param n2: name of node at the other end of the current source (string)
     """
     self.current = util.gensym('i_' + n1 + '->' + n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
     self.i = i
示例#10
0
 def __init__(self, v, n1, n2):
     """
     @param v: voltage in Volts (number);  equal to voltage at C{n1} minus voltage at C{n2} 
     @param n1: name of node at one end of the voltage source (string)
     @param n2: name of node at the other end of the voltage source (string)
     """
     self.current = util.gensym('i_' + n1 + '->' + n2)
     """
     Name of the current variable for this component
     """
     self.n1 = n1
     self.n2 = n2
     self.v = v