.BondLib.Electrical.Analog.Spice.RampingSources

Information

Complex semiconductor circuits with realistic device parameters cannot be simulated in Spice without first computing a DC OP-point, i.e., an initial nodeset that is close to steady-state conditions. The Spice library of Modelica doesn't currently offer DC analysis. Furthermore, the DC analysis also frequently fails due to numerical non-linearities in the transistor models.

Among circuit analysts, a technique has been developed to circumvent these difficulties, called ramping [1]. One OP-point that can always be computed easily is the one where all sources are set equal to zero. In that case, all node potentials must evidently be zero as well. Thus, rather than working with the regular startTime and offset parameters of Modelica sources, it may make sense to start always from zero, ramp all sources up to their offset during the rampTime, then wait with the actual analysis during a period, called settleTime.

Thus in Spice ramping sources, the startTime parameter of regular Modelica sources is replaced by two parameters: rampTime and settleTime. To prevent numerical problems, the phase parameter of the sinusoidal sources has also been removed. If a sine wave signal is supposed to be off by a certain fraction of a period from another, you need to adjust the settleTime of one of them accordingly.

For example, a ramping trapezoidal voltage source with the parameters:

produces the following voltage characteristic:


References:

  1. Cellier, F.E. (1991), Continuous System Modeling, Springer-Verlag, New York, pp.213-215.

Contents

NameDescription
VConstant voltage ramping source for Spice
sinVSinusoidal voltage ramping source for Spice
expsinVDamped sinusoidal voltage ramping source for Spice
expVStep response voltage ramping source for Spice
trapVTrapezoidal voltage ramping source for Spice
IConstant current ramping source for Spice
sinISinusoidal current ramping source for Spice
expsinIDamped sinusoidal current ramping source for Spice
expIStep response current ramping source for Spice
trapITrapezoidal current ramping source for Spice

Generated at 2024-05-17T18:15:58Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos