Module circ :: Class OpAmp
[frames] | no frames]

Class OpAmp

Component --+
            |
           OpAmp

Asserts that nOut = K(nPlus - nMinus).

Instance Methods
 
__init__(self, nPlus, nMinus, nOut, K=10000)
 
getCurrents(self)
Default method that works for components with two leads, assuming they define attributes current, n1, and n2.
 
getEquation(self)
 
__str__(self)
Instance Variables
  current
Name of the current variable for this component
Method Details

__init__(self, nPlus, nMinus, nOut, K=10000)
(Constructor)

 
Parameters:
  • nPlus - name of positive input node (string)
  • nMinus - name of negative input node (string)
  • nOut - name of positive output node (string)
  • K - constant in op-amp model (number)

getCurrents(self)

 

Default method that works for components with two leads, assuming they define attributes current, n1, and n2.

Overrides: Component.getCurrents
(inherited documentation)