SPICELib.parts.source

SPICELib.parts.source.V SPICELib.parts.source.VEXP SPICELib.parts.source.VPULSE SPICELib.parts.source.VPWL SPICELib.parts.source.VSIN SPICELib.parts.source.VCONST SPICELib.parts.source.I SPICELib.parts.source.IEXP SPICELib.parts.source.IPULSE SPICELib.parts.source.IPWL SPICELib.parts.source.ISIN SPICELib.parts.source.ICONST SPICELib.parts.source.E SPICELib.parts.source.F SPICELib.parts.source.G SPICELib.parts.source.H

Information


source package



The following summary table lists all the device types of source package. Each device type is described in detail in the model documentation.


Table 1. source package devices.
Model Device type
V Independent voltage source (DC and AC characteristics).
VEXP Independent voltage source & EXP stimulus.
VPULSE Independent voltage source & PULSE stimulus.
VPWL Independent voltage source & PWL stimulus.
VSIN Independent voltage source & SIN stimulus.
VCONST Independent voltage source & CONST stimulus.
I Independent current source (DC and AC characteristics).
IEXP Independent current source & EXP stimulus.
IPULSE Independent current source & PULSE stimulus.
IPWL Independent current source & PWL stimulus
ISIN Independent current source & SIN stimulus
ICONST Independent current source & CONST stimulus
E Voltage controlled voltage source
F Current controlled current source
G Voltage controlled current source
H Current controlled voltage source


NameDescription
V  
VEXP  
VPULSE  
VPWL  
VSIN  
VCONST  
I  
IEXP  
IPULSE  
IPWL  
ISIN  
ICONST  
E  
F  
G  
H  


SPICELib.parts.source.V SPICELib.parts.source.V

SPICELib.parts.source.V

Information


V - Independent voltage source


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - Transient specification


None.

Parameters

NameDefaultDescription
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]
HIDDEN_COMPONENTfalseEnable or disable log

Modelica definition

model V 
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.VSource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.NULL);
  
  
end V;

SPICELib.parts.source.VEXP SPICELib.parts.source.VEXP

SPICELib.parts.source.VEXP

Information


VEXP - Independent voltage source & EXP stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - EXP waveform


The EXP form causes the voltage to be S1 for the first TD1 seconds. Then the voltage decays exponentially from S1 to S2 using a time constant of TC1. The decay lasts TD2-TD1 seconds. Then, the voltage decays from S2 back to S1 using a time constant of TC2. See Tables 8 and 9.

Table 8. EXP waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Voltage
S2 Peak voltage. SI.Voltage
TD1 Rise (fall) delay. SI.Time
TC1 Rise (fall) time constant. SI.Time
TD2 Fall (rise) delay. SI.Time
TC2 Fall (rise) time constant. SI.Time


Table 9. Exponential waveform formulas.
Time period Value
0 to TD1 S1
TD1 to TD2 S1+(S2-S1)*(1-e-(TIME-TD1)/TC1)
TD2 to TSTOP S1+(S2-S1)*((1-e-(TIME-TD1)/TC1)-(1-e-(TIME-TD2)/TC2))



Parameters

NameDefaultDescription
S1 Initial signal [V]
S2 Peak signal [V]
TD1 Rise (fall) delay [s]
TC1 Rise (fall) time constant [s]
TD2 Fall (rise) delay [s]
TC2 Fall (rise) time constant [s]
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]
HIDDEN_COMPONENTfalseEnable or disable log

Modelica definition

model VEXP 
  parameter SI.Voltage S1 "Initial signal";
  parameter SI.Voltage S2 "Peak signal";
  parameter SI.Time TD1 "Rise (fall) delay";
  parameter SI.Time TC1 "Rise (fall) time constant";
  parameter SI.Time TD2 "Fall (rise) delay";
  parameter SI.Time TC2 "Fall (rise) time constant";
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.VSource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.EXP (
        S1=S1, 
        S2=S2, 
        TD1=TD1, 
        TC1=TC1, 
        TD2=TD2, 
        TC2=TC2));
  
  
end VEXP;

SPICELib.parts.source.VPULSE SPICELib.parts.source.VPULSE

SPICELib.parts.source.VPULSE

Information


VPULSE - Independent voltage source & PULSE stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - PULSE waveform


The PULSE form causes the voltage to start at S1, and stay there for TD seconds. Then, the voltage goes linearly from S1 to S2 during the next TR seconds, and the the voltage stays at S2 for PW seconds. Then it goes linearly from S2 back to S1 during the next TF seconds. It stays at S1 for PER-(TR+PW+TF) seconds, and then the cycle is repeated except for the initial delay of TD seconds.

Table 10. PULSE waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Voltage
S2 Pulsed voltage. SI.Voltage
TD Delay. SI.Time
TF Fall time. SI.Time
TR Rise time. SI.Time
PW Pulse width. SI.Time
PER Period. SI.Time


Table 11. Pulse waveform formulas.
Time period Value
0 S1
TD S1
TD+TR S2
TD+TR+PW S2
TD+TR+PW+TF S1
TD+PER S1
TD+PER+TR S2
... ...



Parameters

NameDefaultDescription
S1 Initial signal [V]
S2 Pulse signal [V]
TD Delay [s]
TF Fall time [s]
TR Rise time [s]
PW Pulse width [s]
PER Period [s]
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]
HIDDEN_COMPONENTfalseEnable or disable log

Modelica definition

model VPULSE 
  parameter SI.Voltage S1 "Initial signal";
  parameter SI.Voltage S2 "Pulse signal";
  parameter SI.Time TD(min=0) "Delay";
  parameter SI.Time TF(min=0) "Fall time";
  parameter SI.Time TR(min=0) "Rise time";
  parameter SI.Time PW(min=0) "Pulse width";
  parameter SI.Time PER(min=TR + PW + TF) "Period";
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.VSource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.PULSE (
        S1=S1, 
        S2=S2, 
        TD=TD, 
        TF=TF, 
        TR=TR, 
        PW=PW, 
        PER=PER));
  
  
end VPULSE;

SPICELib.parts.source.VPWL SPICELib.parts.source.VPWL

SPICELib.parts.source.VPWL

Information


VPWL - Independent voltage source & PWL stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - PWL waveform


The PWL form describes a piecewise linear waveform. Each pair of time-voltage values specifies a corner of the waveform. The voltage at times between corners is the linear interpolation of the voltages at the corners.

Table 12. PWL waveform parameters.
Parameter Description Units
timeCorners[:] Time at corners. SI.Time
signalCorners[:] Voltage at corners. SI.Voltage



Parameters

NameDefaultDescription
signalCorners[:] Signal at corners [V]
timeCorners[:] Time at corners [s]
Nsize(signalCorners, 1)Number of corner points
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]
HIDDEN_COMPONENTfalseEnable or disable log

Modelica definition

model VPWL 
  parameter SI.Voltage signalCorners[:] "Signal at corners";
  parameter SI.Time timeCorners[:] "Time at corners";
  parameter Integer N=size(signalCorners, 1) "Number of corner points";
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.VSource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.PWL (
        signalCorners=signalCorners, 
        timeCorners=timeCorners, 
        N=Nm));
  
  
end VPWL;

SPICELib.parts.source.VSIN SPICELib.parts.source.VSIN

SPICELib.parts.source.VSIN

Information


VSIN - Independent voltage source & SIN stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - SIN waveform


The SIN form causes the voltage to follow v = OFF + AMPL*sin(2*pi*FREQ*time). See Table 8.

Table 8. SIN waveform parameters.

Parameters

Parameter Description Units
OFF Constant voltage. SI.Voltage
AMPL Amplitude. SI.Voltage
FREQ Frequency. SI.Frequency
NameDefaultDescription
OFF Constant Voltage [V]
AMPL Amplitude [V]
FREQ Frequency [Hz]
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]
HIDDEN_COMPONENTfalseEnable or disable log

Modelica definition

model VSIN 
  parameter SI.Voltage OFF "Constant Voltage";
  parameter SI.Voltage AMPL "Amplitude";
  parameter SI.Frequency FREQ "Frequency";
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.VSource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.SIN (
        OFF=OFF, 
        AMPL=AMPL, 
        FREQ=FREQ));
  
end VSIN;

SPICELib.parts.source.VCONST SPICELib.parts.source.VCONST

SPICELib.parts.source.VCONST

Information


VCONST - Independent voltage source & CONST stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - CONST waveform


The CONST form causes the voltage to follow v = OFF. See Table 8.

Table 8. CONST waveform parameters.

Parameters

Parameter Description Units
OFF Constant voltage. SI.Voltage
NameDefaultDescription
OFF Constant Voltage [V]
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]
HIDDEN_COMPONENTfalseEnable or disable log

Modelica definition

model VCONST 
  parameter SI.Voltage OFF "Constant Voltage";
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.VSource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.CONST (OFF=OFF));
  
end VCONST;

SPICELib.parts.source.I SPICELib.parts.source.I

SPICELib.parts.source.I

Information


I - Independent current source


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - Transient specification


None.

Parameters

NameDefaultDescription
DC_VALUE [A]
AC_MAG [A]
AC_PHASE0AC phase value [deg]

Modelica definition

model I 
  parameter SI.Current DC_VALUE;
  parameter SI.Current AC_MAG;
  extends src.SOURCE.ISource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.NULL);
  
  
end I;

SPICELib.parts.source.IEXP SPICELib.parts.source.IEXP

SPICELib.parts.source.IEXP

Information


IEXP - Independent current source & EXP stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - EXP waveform


The EXP form causes the current to be S1 for the first TD1 seconds. Then the current decays exponentially from S1 to S2 using a time constant of TC1. The decay lasts TD2-TD1 seconds. Then, the current decays from S2 back to S1 using a time constant of TC2. See Tables 8 and 9.

Table 8. EXP waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Current
S2 Peak voltage. SI.Current
TD1 Rise (fall) delay. SI.Time
TC1 Rise (fall) time constant. SI.Time
TD2 Fall (rise) delay. SI.Time
TC2 Fall (rise) time constant. SI.Time


Table 9. Exponential waveform formulas.
Time period Value
0 to TD1 S1
TD1 to TD2 S1+(S2-S1)*(1-e-(TIME-TD1)/TC1)
TD2 to TSTOP S1+(S2-S1)*((1-e-(TIME-TD1)/TC1)-(1-e-(TIME-TD2)/TC2))



Parameters

NameDefaultDescription
S1 Initial signal [A]
S2 Peak signal [A]
TD1 Rise (fall) delay [s]
TC1 Rise (fall) time constant [s]
TD2 Fall (rise) delay [s]
TC2 Fall (rise) time constant [s]
DC_VALUE [A]
AC_MAG [A]
AC_PHASE0AC phase value [deg]

Modelica definition

model IEXP 
  parameter SI.Current S1 "Initial signal";
  parameter SI.Current S2 "Peak signal";
  parameter SI.Time TD1 "Rise (fall) delay";
  parameter SI.Time TC1 "Rise (fall) time constant";
  parameter SI.Time TD2 "Fall (rise) delay";
  parameter SI.Time TC2 "Fall (rise) time constant";
  parameter SI.Current DC_VALUE;
  parameter SI.Current AC_MAG;
  extends src.SOURCE.ISource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.EXP (
        S1=S1, 
        S2=S2, 
        TD1=TD1, 
        TC1=TC1, 
        TD2=TD2, 
        TC2=TC2));
  
  
end IEXP;

SPICELib.parts.source.IPULSE SPICELib.parts.source.IPULSE

SPICELib.parts.source.IPULSE

Information


IPULSE - Independent current source & PULSE stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - PULSE waveform


The PULSE form causes the current to start at S1, and stay there for TD seconds. Then, the current goes linearly from S1 to S2 during the next TR seconds, and the the current stays at S2 for PW seconds. Then it goes linearly from S2 back to S1 during the next TF seconds. It stays at S1 for PER-(TR+PW+TF) seconds, and then the cycle is repeated except for the initial delay of TD seconds.

Table 10. PULSE waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Current
S2 Pulsed voltage. SI.Current
TD Delay. SI.Time
TF Fall time. SI.Time
TR Rise time. SI.Time
PW Pulse width. SI.Time
PER Period. SI.Time


Table 11. Pulse waveform formulas.
Time period Value
0 S1
TD S1
TD+TR S2
TD+TR+PW S2
TD+TR+PW+TF S1
TD+PER S1
TD+PER+TR S2
... ...



Parameters

NameDefaultDescription
S1 Initial signal [A]
S2 Pulse signal [A]
TD Delay [s]
TF Fall time [s]
TR Rise time [s]
PW Pulse width [s]
PER Period [s]
DC_VALUE [A]
AC_MAG [A]
AC_PHASE0AC phase value [deg]

Modelica definition

model IPULSE 
  parameter SI.Current S1 "Initial signal";
  parameter SI.Current S2 "Pulse signal";
  parameter SI.Time TD(min=0) "Delay";
  parameter SI.Time TF(min=0) "Fall time";
  parameter SI.Time TR(min=0) "Rise time";
  parameter SI.Time PW(min=0) "Pulse width";
  parameter SI.Time PER(min=TR + PW + TF) "Period";
  parameter SI.Current DC_VALUE;
  parameter SI.Current AC_MAG;
  extends src.SOURCE.ISource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.PULSE (
        S1=S1, 
        S2=S2, 
        TD=TD, 
        TF=TF, 
        TR=TR, 
        PW=PW, 
        PER=PER));
  
  
end IPULSE;

SPICELib.parts.source.IPWL SPICELib.parts.source.IPWL

SPICELib.parts.source.IPWL

Information


IPWL - Independent current source & PWL stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - PWL waveform


The PWL form describes a piecewise linear waveform. Each pair of time-current values specifies a corner of the waveform. The current at times between corners is the linear interpolation of the currents at the corners.

Table 12. PWL waveform parameters.
Parameter Description Units
timeCorners[:] Time at corners. SI.Time
signalCorners[:] Voltage at corners. SI.Current



Parameters

NameDefaultDescription
signalCornersm[:] Signal at corners
timeCornersm[:] Time at corners [s]
Nmsize(signalCorners, 1)Number of corner points
DC_VALUE [V]
AC_MAG [V]
AC_PHASE0AC phase value [deg]

Modelica definition

model IPWL 
  parameter SI.Currrent signalCornersm[:] "Signal at corners";
  parameter SI.Time timeCornersm[:] "Time at corners";
  parameter Integer Nm=size(signalCorners, 1) "Number of corner points";
  parameter SI.Voltage DC_VALUE;
  parameter SI.Voltage AC_MAG;
  extends src.SOURCE.ISource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.PWL (
        signalCorners=signalCorners, 
        timeCorners=timeCorners, 
        N=N));
  
  
end IPWL;

SPICELib.parts.source.ISIN SPICELib.parts.source.ISIN

SPICELib.parts.source.ISIN

Information


ISIN - Independent current source & SIN stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - SIN waveform


The SIN form causes the voltage to follow v = OFF + AMPL*sin(2*pi*FREQ*time). See Table 8.

Table 8. SIN waveform parameters.

Parameters

Parameter Description Units
OFF DC voltage. SI.Voltage
AMPL Amplitude. SI.Voltage
FREQ Frequency. SI.Frequency
NameDefaultDescription
OFF DC Voltage [A]
AMPL Amplitude [A]
FREQ Frequency [Hz]
DC_VALUE [A]
AC_MAG [A]
AC_PHASE0AC phase value [deg]

Modelica definition

model ISIN 
  parameter SI.Current OFF "DC Voltage";
  parameter SI.Current AMPL "Amplitude";
  parameter SI.Frequency FREQ "Frequency";
  parameter SI.Current DC_VALUE;
  parameter SI.Current AC_MAG;
  extends src.SOURCE.ISource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.SIN (
        OFF=OFF, 
        AMPL=AMPL, 
        FREQ=FREQ));
  
end ISIN;

SPICELib.parts.source.ICONST SPICELib.parts.source.ICONST

SPICELib.parts.source.ICONST

Information


ICONST - Independent current source & CONST stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Current DC value.
AC_MAG SI.Current AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - CONST waveform


The CONST form causes the voltage to follow v = OFF. See Table 8.

Table 8. CONST waveform parameters.

Parameters

Parameter Description Units
OFF Constant current. SI.Current
NameDefaultDescription
OFF Constant Current [A]
DC_VALUE [A]
AC_MAG [A]
AC_PHASE0AC phase value [deg]

Modelica definition

model ICONST 
  parameter SI.Current OFF "Constant Current";
  parameter SI.Current DC_VALUE;
  parameter SI.Current AC_MAG;
  extends src.SOURCE.ISource(
    DC_VALUE=DC_VALUE, 
    AC_MAG=AC_MAG, 
    redeclare model TransientSpecification = src.WAVEFORMS.CONST (OFF=OFF));
  
end ICONST;

SPICELib.parts.source.E SPICELib.parts.source.E

SPICELib.parts.source.E

Information


E - Voltage controlled voltage source


Figure 1. Voltage controlled voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN Real Voltage gain


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static iDC1 = 0
vDC2 = Gain*vDC1
AC small-signal iAC_Re1 = 0, iAC_Im1 = 0
vAC_Re2 = Gain * vAC_Re1, vAC_Im2 = Gain * vAC_Re1
Large signal iTran1 = 0
vTran2 = Gain*vTran1



Parameters

NameDefaultDescription
Gain1 

Modelica definition

model E 
  extends src.SOURCE.E;
end E;

SPICELib.parts.source.F SPICELib.parts.source.F

SPICELib.parts.source.F

Information


F - Current controlled current source


Figure 1. Current controlled current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN Real Current gain


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static vDC1 = 0
iDC2 = Gain*iDC1
AC small-signal vAC_Re1 = 0, vAC_Im1 = 0
iAC_Re2 = Gain*iAC_Re1, iAC_Im2 = Gain*iAC_Im1
Large signal vTran1 = 0
iTran2 = Gain*iTran1



Parameters

NameDefaultDescription
Gain1 

Modelica definition

model F 
  extends src.SOURCE.F;
end F;

SPICELib.parts.source.G SPICELib.parts.source.G

SPICELib.parts.source.G

Information


  

G - Voltage controlled current source


Figure 1. Voltage controlled current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN SI.Conductance Transconductance


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static iDC1 = 0
iDC2 = Gain*vDC1
AC small-signal iAC_Re1 = 0, iAC_Im1 = 0
iAC_Re2 = Gain*vAC_Re1, iAC_Im2 = Gain*vAC_Im1
Large signal iTran1 = 0
iTran2 = Gain*vTran1



Parameters

NameDefaultDescription
Gain1[S]

Modelica definition

model G 
  extends src.SOURCE.G;
end G;

SPICELib.parts.source.H SPICELib.parts.source.H

SPICELib.parts.source.H

Information


   

H - Current controlled voltage source


Figure 1. Current controlled voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN SI.Resistance Transresistance


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static vDC1 = 0
vDC2 = Gain*iDC1
AC small-signal vAC_Re1 = 0, vAC_Im1 = 0
vAC_Re2 = Gain*iAC_Re1, vAC_Im2 = Gain*iAC_Im1;
Large signal vTran1 = 0
vTran2 = Gain*iTran1



Parameters

NameDefaultDescription
Gain1[Ohm]

Modelica definition

model H 
  extends src.SOURCE.H;
end H;

HTML-documentation generated by Dymola Tue Oct 14 18:26:30 2003 .