modelControlledIdealCommutingSwitch

Controlled ideal two-way switch

Information

The ideal leaking controlled electrical commuting switch is built as a macro element from an ideal controlled opening switch and an ideal controlled closing switch.

The logic is such that the top switch is considered open and the bottom switch is considered closed, when the real-valued control signal assumes a value larger than a threshold value, called level.


Parameters:

 Ron:    Leakage resistance in on state (default value = 1e-5 Ohm)

 Goff:   Leakage conductance in off state (default value = 1e-5 Mho)

Parameters

TypeNameDefaultDescription
Modelica.SIunits.Voltagelevel0.5Switch level
Modelica.SIunits.ResistanceRon1.E-5Closed switch resistance
Modelica.SIunits.ConductanceGoff1.E-5Opened switch conductance

Connectors

TypeNameDefaultDescription
Modelica.Electrical.Analog.Interfaces.PositivePinpPositive electrical connector
Modelica.Electrical.Analog.Interfaces.NegativePinn2Second negative electrical connector
Modelica.Electrical.Analog.Interfaces.NegativePinn1First negative electrical connector
Modelica.Electrical.Analog.Interfaces.PincontrolControl pin: if control.v > level p--n2 connected, otherwise p--n1 connected

Components

TypeNameDefaultDescription
ControlledIdealOpeningSwitchSw1
ControlledIdealClosingSwitchSw2