next up previous contents index
Next: Switch Model Up: Passive Element Lines Previous: Resistor Model   Contents   Index


Switches

General Form:
sname n+ n- nc+ nc- model [on | off]
wname n+ n- vnam model [on | off]
Examples:
s1 1 2 3 4 switch1 on
s2 5 6 3 0 sm2 off
switch1 1 2 10 0 smodel1
w1 1 2 vclock switchmod1
w2 3 0 vramp sm1 on
wreset 5 6 vclck lossyswitch off

Nodes n+ and n- are the nodes between which the switch terminals are connected. The model name is mandatory while the initial conditions are optional. For the voltage controlled switch, nodes nc+ and nc- are the positive and negative controlling nodes respectively. For the current controlled switch, the controlling current is that through the voltage source or inductor vnam. The direction of positive controlling current flow is from the positive node, through the source or inductor, to the negative node.



Stephen R. Whiteley 2017-02-22