

| File | Package (SPICELib.src.) |
| analyses.mo | ANALYSES |
| breakout.mo | BREAKOUT |
| functions.mo | |
| init.mo | INIT |
| interface.mo | INTERFACE |
| source.mo | WAVEFORMS SOURCE |
| special.mo | SPECIAL |















| DC and AC specifications | SOURCE.VSource V1( DC_VALUE=3, AC_MAG=10, AC_PHASE=45 ); |
| EXP waveform | SOURCE.VSource V1( DC_VALUE=3, AC_MAG=10, AC_PHASE=45, redeclare model TransientSpecification = WAVEFORMS.EXP( S1=1,S2=2,TD1=1,TC1=1, TD2=3,TC2=1 )); |
| PULSE waveform | SOURCE.VSource V1( DC_VALUE=3, AC_MAG=10, redeclare model TransientSpecification = WAVEFORMS.PULSE( S1=1,S2=2, TD=1,TR=1, PW=3,TF=1, PER=8 )); |
| PWL waveform | SOURCE.VSource V1( DC_VALUE=3, AC_MAG=10,
AC_PHASE=30, redeclare model TransientSpecification = WAVEFORMS.PWL( signalCorners = { 1, 2, 4, 8, 16 }, timeCorners = { 0, 1, 2, 3, 4 } )); |









| SKIP_INITIAL_TRAN_SOLUTION:=false |
When biasPointCalculated becomes true, the circuit static model
contains the transient initial solution. Then (see Fig. 15):
|
| SKIP_INITIAL_TRAN_SOLUTION:=true |
At initial time (see Fig. 16):
|


| Name | Description |
|---|---|
| ANALYSES | |
| BREAKOUT | |
| Rect2Polar | |
| Decibels | |
| Rad2Deg | |
| Deg2Rad | |
| INIT | |
| INTERFACE | |
| SOURCE | |
| SPECIAL | |
| WAVEFORMS |
function Rect2Polar input Real rect[2]; output Real module; output nonSI.Angle_deg angle; protected SI.Angle angFirst; constant Real pi=3.14159265358979; algorithm module := sqrt(rect*rect); angFirst := if not module > 0 then 0 else arcsin(abs(rect[2])/module); angle := if rect[1] < 0 then pi - angFirst else angFirst; angle := if rect[2] < 0 then -angle else angle; angle := 180*angle/pi; end Rect2Polar;
function Decibels input Real x; output Real x_dB; algorithm x_dB := if x > 0 then 20*ln(x)/ln(10) else -1e-100; end Decibels;
function Rad2Deg input SI.Angle angle_rad; output nonSI.Angle_deg angle_deg; protected constant Real pi=3.14159265358979; algorithm angle_deg := 180*angle_rad/pi; end Rad2Deg;
function Deg2Rad input nonSI.Angle_deg angle_deg; output SI.Angle angle_rad; protected constant Real pi=3.14159265358979; algorithm angle_rad := pi*angle_deg/180; end Deg2Rad;