PyAMS  (the software under revision)

AC Voltage



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

Information

The AC Voltage 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 Voltage 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 SourceVac:
     
     def __init__(self, a, b):
         self.V= Signal('out','voltage',a,b)
         self.Mag=1.0         #Magnitude of wave form
         self.Phase=0.0       #phase  of wave form
     def analog(self):
         self.V+=ACSim(self.Mag, self.Phase)