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

Class Thevenin

Component --+
            |
           Thevenin

An abstract component consisting of a resistor and a voltage source in series.

Instance Methods
 
__init__(self, v, r, n1, n2)
 
getEquation(self)
 
__str__(self)

Inherited from Component: getCurrents

Instance Variables
  current
Name of the current variable for this component
Method Details

__init__(self, v, r, n1, n2)
(Constructor)

 
Parameters:
  • v - voltage in Volts (number)
  • r - resistance in Ohms (number)
  • n1 - name of node at one end of the resistor (string)
  • n2 - name of node at the other end of the resistor (string) Makes a component that is, effectively, a resistor and a voltage source in series.