Current-controlled switch
- Instance line
Wname …- Model line
.model mname csw- Terminals
- W+, W-
- Described in
- Elementary devices
- Source
src/lib/dev/csw/csw.c
Instance parameters (7)
Input and output (1)
| name | type | description | notes |
|---|---|---|---|
control | instance | Name of controlling source |
Input only (2)
| name | type | description | notes |
|---|---|---|---|
on | flag | Initially closed | |
off | flag | Initially open |
Output only (4)
| name | type | description | notes |
|---|---|---|---|
pos_node | integer | Positive node of switch | listed by show only when all parameters are asked for |
neg_node | integer | Negative node of switch | listed by show only when all parameters are asked for |
i | real | Switch current | |
p | real | Instantaneous power |
Model parameters (7)
Input and output (5)
| name | type | description | notes |
|---|---|---|---|
csw | flag | Current controlled switch model | listed by show only when all parameters are asked for |
it | real | Threshold current | listed by show only when all parameters are asked for |
ih | real | Hysterisis current | listed by show only when all parameters are asked for |
ron | real | Closed resistance | listed by show only when all parameters are asked for |
roff | real | Open resistance | listed by show only when all parameters are asked for |
Output only (2)
| name | type | description | notes |
|---|---|---|---|
gon | real | Closed conductance | listed by show only when all parameters are asked for |
goff | real | Open conductance | listed 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.