PyAMS  (the software under revision)

PyAMS.Analog.SPICE.Inductor


Model SPICE-compatible inductor

Information

The linear inductor connects the branch voltage Vl with the branch current Il by Vl = L*ddt(Il) for "ddt" prestented the derivative by time. The Inductance L is allowed to be positive, zero, or negative.

Temperature dependence

The block adjusts the specified or calculated resistance value for temperature "T" using the following equation:

L(T)=L*(1+TC1*(T-Tnom)+TC2*(T-Tnom)^2)

for Tnom is the nominal temperature. TNOM defaults to 27 °C

Parameters

NameDefaultDescription
L1mHInductance [H]
TC10.0Linear temperature coefficient [°C^-1]
TC20.0Quadratic temperature coefficient [°C^-1]

PyAMS definition

from PyAMS import Signal
from PyAMS import Qtemp
from PyAMS import ddt

#The SPICE Inductor 
class SCInductor:
     def __init__(self, a, b):
         self.Vl = Signal('out','potential',a,b)
         self.Il = Signal('in','flow',a,b)
         self.L=1.0e-3    # L  Inductor Value
         self.IL1=0.0     # Linear current coefficient
         self.IL2=0.0     # Quadratic current coefficient
         self.TC1=0.0     # Linear temperature coefficient
         self.TC2=0.0     # Quadratic temperature coefficient
     def start(self):
         self.L=self.L*Qtemp(self.TC1,self.TC2)                          
     def analog(self):
         self.Vl+=self.L*ddt(self.Il)

Documentation generated by PyAMS