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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Voltage | V | 1 | Amplitude of trapezoidal function |
| Modelica.SIunits.Time | rising | 0 | Rising duration of trapezoid |
| Modelica.SIunits.Time | width | 0.5 | Width duration of trapezoid |
| Modelica.SIunits.Time | falling | 0 | Falling duration of trapezoid |
| Modelica.SIunits.Time | period | 1 | Time for one period |
| Integer | nperiod | -1 | Number of periods (< 0 means infinite number of periods) |
| Modelica.SIunits.Voltage | offset | 0 | Voltage offset |
| Modelica.SIunits.Time | rampTime | 0 | Ramping period |
| Modelica.SIunits.Time | settleTime | 0 | Settling period |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | p (from OnePort) | Left electrical connector | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n (from OnePort) | Right electrical connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Voltage | v (from OnePort) | Voltage drop between the two pins | |
| Modelica.SIunits.Current | i (from OnePort) | Current flowing from pin p to pin n |