IdealCommutingSwitch

Ideal commuting switch

    IdealCommutingSwitch

Library

Modelica/Electrical/Analog/Ideal

Description

The commuting switch has a positive pin p and two negative pins n1 and n2.The switching behaviour is controlledby the input signal control. If control is true, the pin p is connectedwith the negative pin n2. Otherwise, the pin p is connected to the negative pin n1.

In order to prevent singularities during switching, the openedswitch has a (very low) conductance Goffand the closed switch has a (very low) resistance Ron.The limiting case is also allowed, i.e., the resistance Ron of theclosed switch could be exactly zero and the conductance Goff of theopen 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 electricalbehavior is not modelled. The parameters are not temperature dependent.

Parameters

IdealCommutingSwitch_0

NameLabelDescriptionData TypeValid Values

mo_Ron

Ron

Closed switch resistance

Scalar

mo_Goff

Goff

Opened switch conductance

Scalar

mo_useHeatPort

useHeatPort

=true, if heatPort is enabled

Number

0
1

mo_T

T

Fixed device temperature if useHeatPort = false

Scalar

mo_T_heatPort

T_heatPort

T_heatPort

Structure

mo_T_heatPort/fixed

fixed

Cell of scalars

true
false

mo_T_heatPort/start

start

Cell of scalars

IdealCommutingSwitch_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'LossPower'
's1'
's2'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

p

implicit

input

1

n2

implicit

output

1

n1

implicit

output

2

control

implicit

true => p--n2 connected, false => p--n1 connected

input

2

Port 5

implicit

Conditional heat port

input

mo_useHeatPort