Switch
A key controlled by an external signal.
Description
The Switch block represents a key controlled by an external signal. If the external signal is greater than the value specified in the Threshold parameter, the key is closed, otherwise the key is open.
Electrical keys add circuit breaks to the model, so the choice of solver may affect the behaviour of the model.
Ports
Parameters
Parameters
Closed resistance - resistance of the closed key
0.01 ohm (by default)
| positive scalar
Resistance of the key in closed state. The parameter value must be greater than zero.
Open conductance - conductance of the open key
1e-8 1/ohm (by default)
| positive scalar
.
The conductance of the key in the open state. The parameter value must be greater than zero.
Threshold - threshold value for opening and closing the key
0.5 (by default)
| dimensional scalar
.
The threshold value for opening and closing the key. If the external signal is greater than this value, the key is closed, otherwise it is open.