PyAMS  (the software under revision)

AC Current


The AC Current source is assumed to be a cosine waveform at a specified phase angle in AC analysis

Information

The AC Current Source using in during large-signal analyses (such as DC and transient) as well as on all small-signal analyses the source becomes active and models a source with magnitude "Mag" and phase "Phase"

Parameters

NameDefaultDescription
Mag5.0Magnitude of wave form
Phase0.5Phase of wave form

PyAMS definition

from PyAMS import Signal
from PyAMS import ACSim

#The AC Current Source using in during large-signal analyses (such as DC and transient) as well as 
#on all small-signal analyses the source becomes 
#active and models a source with magnitude "Mag" and phase "Phase"
class SourceIac:
     
     def __init__(self, a, b):
         self.I= Signal('out','current',a,b)
         self.Mag=1.0         #Magnitude of wave form
         self.Phase=0.0       #phase  of wave form
     def analog(self):
         self.I+=ACSim(self.Mag, self.Phase)

Documentation generated by PyAMS .