PyAMS  (the software under revision)

PyAMS.Analog.Basic.Inductor


Ideal linear electrical inductor

Modelica.Electrical.Analog.Basic.Inductor


Information

The linear inductor connects the branch voltage v with the branch current i by v = L*di/dt. The Inductance L is allowed to be positive, zero, or negative.

Parameters

NameDefaultDescription
L1mHInductance [H]

PyAMS definition

from PyAMS import Signal
from PyAMS import ddt

#Ideal linear electrical Inductor
class Inductor:
     def __init__(self, p, n):
         self.Vl = Signal('out','voltage',p,n)
         self.Il = Signal('in','current',p,n)
         self.L=1.0e-3         # L  Inductor Value
     def analog(self):
         self.Vl+=self.L*ddt(self.Il)

Documentation generated by PyAMS