Spice3f5

Voltage-controlled switch

Instance line
Sname …
Model line
.model mname sw
Terminals
S+, S-, SC+, SC-
Described in
Elementary devices
Source
src/lib/dev/sw/sw.c

Instance parameters (8)

Input and output (2)

nametypedescriptionnotes
pos_nodeintegerPositive node of switchlisted by show only when all parameters are asked for
neg_nodeintegerNegative node of switchlisted by show only when all parameters are asked for

Input only (2)

nametypedescriptionnotes
onflagSwitch initially closed
offflagSwitch initially open

Output only (4)

nametypedescriptionnotes
cont_p_nodeintegerPositive contr. node of switchlisted by show only when all parameters are asked for
cont_n_nodeintegerPositive contr. node of switchlisted by show only when all parameters are asked for
irealSwitch current
prealSwitch power

Model parameters (7)

Input and output (5)

nametypedescriptionnotes
swflagSwitch modellisted by show only when all parameters are asked for
vtrealThreshold voltagelisted by show only when all parameters are asked for
vhrealHysteresis voltagelisted by show only when all parameters are asked for
ronrealResistance when closedlisted by show only when all parameters are asked for
roffrealResistance when openlisted by show only when all parameters are asked for

Output only (2)

nametypedescriptionnotes
gonrealConductance when closedlisted by show only when all parameters are asked for
goffrealConductance when openlisted by show only when all parameters are asked for

Parameters are set on the instance or .model line as keyword=value, and read back with @name[keyword] or the show and showmod commands. See the device reference.