Changeover switch
Connects p to n2 while control is true, otherwise to n1.
- Boolean
- electrical
- Modelica Standard Library
- 4 ports
- 2 parameters
twoWaySwitchLibrarySemiconductorsDescription
An ideal single-pole double-throw switch: p connects to n1 while control is false and to n2 while it is true. The unselected path is open.
Example
Switches and a breaker An ideal switch, closing and opening switches, a two-way switch, and a breaker that opens an inductive circuit.
Also in this example:DC voltageIdeal switchCurrent sensorGroundPulseResistorInductorSwitch (Boolean)Opening switchBreaker (with arc)Boolean step
Ports
Inputs 1
-
sel
controlBoolean selector: false selects n1, true selects n2.
Conserving terminals 3
-
+
pCommon terminal.
-
n1
Terminal selected while control is false.
-
n2
Terminal selected while control is true.
Parameters
-
On resistance
Ron0.00001 Ω≥ 0
On resistance of the selected path, in ohms. 0 or more.
-
Off conductance
Goff0.00001 S≥ 0
Off conductance of the unselected path, in siemens. 0 or more.
Equations
p.i + n1.i + n2.i = 0 control false: p.v − n1.v = Ron · i1, i2 = Goff · (p.v − n2.v) control true: p.v − n2.v = Ron · i2, i1 = Goff · (p.v − n1.v) i1 = −n1.i and i2 = −n2.i are the currents from p to each terminal
Implementation
Modelica.Electrical.Analog.Ideal.IdealTwoWaySwitchAssumptions and limitations
- Break-before-make timing is not modeled: both paths change at the same instant.
See also
Select a block in Gradara and press F1 to open its page offline.