Changeover switch

Connects p to n2 while control is true, otherwise to n1.

  • Boolean
  • electrical
  • Modelica Standard Library
  • 4 ports
  • 2 parameters
BlockChangeover switchKindtwoWaySwitchLibrarySemiconductors

Description

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.

10 V Ai ALoad AIdeal switchGate 5 HzGround A10 V Bi BClosing switchClose at 0.1 sLoad BGround B10 V Ci COpening switchOpen at 0.1 sLoad CGround CL 10 mH10 V Di DBreakerTrip at 0.1 sLoad DGround D10 V Ei ETwo-way switchChange over at 0.1 sLoad 10 ΩLoad 20 ΩGround E
In Gradara, select a Changeover switch block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:DC voltageIdeal switchCurrent sensorGroundPulseResistorInductorSwitch (Boolean)Opening switchBreaker (with arc)Boolean step

Ports

Inputs 1

  • selcontrol

    Boolean selector: false selects n1, true selects n2.

Conserving terminals 3

  • +p

    Common terminal.

  • n1

    Terminal selected while control is false.

  • n2

    Terminal selected while control is true.

Parameters

  • On resistanceRon0.00001 Ω

    ≥ 0

    On resistance of the selected path, in ohms. 0 or more.

  • Off conductanceGoff0.00001 S

    ≥ 0

    Off conductance of the unselected path, in siemens. 0 or more.

Equations

Modelica
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 Standard Library 4.1.0Modelica.Electrical.Analog.Ideal.IdealTwoWaySwitch
MSL documentation

Assumptions 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.