PyAMS  (the software under revision)

PyAMS.Analog.Basic.Conductor


Ideal linear electrical conductor

Information

The linear conductor connects the branch voltage v with the branch current i by i = v*G. The Conductance G is allowed to be positive, zero, or negative.

Parameters

NameDefaultDescription
G1Conductance [S]

PyAMS definition

from PyAMS import Signal

#Ideal linear electrical conductor
class Conductor:
     def __init__(self, a, b):  
         self.Vg = Signal('in','potential',a,b)
         self.Ig = Signal('out','flow',a,b)
         self.G=1.0     # G Conductance Value

     def analog(self):
         self.Ir+=self.Vr*self.G

Documentation generated by PyAMS