modeltrapV

Trapezoidal voltage ramping source for Spice

Extends from BondLib.Electrical.Analog.Interfaces.OnePort (OnePort partial model of analog electrical library).

Information

The trapezoidal voltage ramping source for Spice is built from two superposed sources, a trapezoidal source and a ramping source placed in series.


Parameters:

 V:           Amplitude of source voltage trapezoid (default value = 1 Volt)

 rising:      Length of rising time of trapezoid to be generated (default value = 0 sec)

 width :      Length of on state of trapezoid to be generated (default value = 0.5 sec)

 falling:     Length of falling time of trapezoid to be generated (default value = 0 sec)

 period:      Length of period of trapezoid to be generated (default value = 1 sec)

 nperiod:     Number of periods of trapezoid to be generated
              an infinite number of periods is being generated if nperiod < 0 (default value = -1)

 offset:      Offset of trapezoid to be generated (default value = 0 Volt)

 rampTime:    Initial ramping period (default value = 0 sec)

 settleTime:  Initial settling period (default value = 0 sec)

Parameters

TypeNameDefaultDescription
Modelica.SIunits.VoltageV1Amplitude of trapezoidal function
Modelica.SIunits.Timerising0Rising duration of trapezoid
Modelica.SIunits.Timewidth0.5Width duration of trapezoid
Modelica.SIunits.Timefalling0Falling duration of trapezoid
Modelica.SIunits.Timeperiod1Time for one period
Integernperiod-1Number of periods (< 0 means infinite number of periods)
Modelica.SIunits.Voltageoffset0Voltage offset
Modelica.SIunits.TimerampTime0Ramping period
Modelica.SIunits.TimesettleTime0Settling period

Connectors

TypeNameDefaultDescription
Modelica.Electrical.Analog.Interfaces.PositivePinp (from OnePort)Left electrical connector
Modelica.Electrical.Analog.Interfaces.NegativePinn (from OnePort)Right electrical connector

Components

TypeNameDefaultDescription
Modelica.SIunits.Voltagev (from OnePort)Voltage drop between the two pins
Modelica.SIunits.Currenti (from OnePort)Current flowing from pin p to pin n