modelControlledIdealTwoWaySwitch

Controlled ideal two-way switch

Extends from Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).

Information

The two-way switch has a positive pin p and two negative pins n1 and n2. The switching behaviour is controlled by the control pin. If its voltage exceeds the value of the parameter level, the pin p is connected with the negative pin n2. Otherwise, the pin p is connected the negative pin n1.

In order to prevent singularities during switching, the opened switch has a (very low) conductance Goff and the closed switch has a (very low) resistance Ron. The limiting case is also allowed, i.e., the resistance Ron of the closed switch could be exactly zero and the conductance Goff of the open switch could be also exactly zero. Note, there are circuits, where a description with zero Ron or zero Goff is not possible.

Please note: In case of useHeatPort=true the temperature dependence of the electrical behavior is not modelled. The parameters are not temperature dependent.

Parameters

TypeNameDefaultDescription
SI.Voltagelevel0.5Switch level
SI.ResistanceRon1e-5Closed switch resistance
SI.ConductanceGoff1e-5Opened switch conductance
BooleanuseHeatPort (from ConditionalHeatPort)false= true, if heatPort is enabled
SI.TemperatureT (from ConditionalHeatPort)293.15Fixed device temperature if useHeatPort = false

Connectors

TypeNameDefaultDescription
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from ConditionalHeatPort)Conditional heat port
Interfaces.PositivePinp
Interfaces.NegativePinn2
Interfaces.NegativePinn1
Interfaces.PincontrolControl pin: if control.v > level p--n2 connected, otherwise p--n1 connected

Components

TypeNameDefaultDescription
SI.PowerLossPower (from ConditionalHeatPort)Loss power leaving component via heatPort
SI.TemperatureT_heatPort (from ConditionalHeatPort)Temperature of heatPort

Revisions

  • March 11, 2009 by Christoph Clauss
    conditional heat port added
  • 1998 by Christoph Clauss
    initially implemented