PyAMS  (the software under revision)

Gyrator


PyAMS.Analog.Basic.Gyrator

Ideal linear electrical Gyrator

Information

A gyrator is a two-port element defined by the following equations:

    In =  Gp * Vp
    Ip = -Gn * Vn

where the constants G1G2 are called the gyration conductance.

Parameters

NameDefaultDescription
Gn1Gyration conductance [S]
Gp1Gyration conductance [S]

PyAMS definition

from PyAMS import Signal


class Gyrator:
     def __init__(self,n1,n2,p1,p2):
         self.Vn = Signal('in','potential',n1,n2)
         self.Vp = Signal('in','potential',p1,p2)
         self.In = Signal('out','flow',n1,n2)
         self.Ip = Signal('out','flow',p1,p2)
         self.Gn=1.0
         self.Gp=1.0
         
     def analog(self): 
         self.In+=self.Gp*self.Vp
         self.Ip+=-self.Gn*self.Vn 
         


Documentation generated by PyAMS