.BondLib.Switches.Sw

Information

The generic switch element is a passive OnePort element. It inherits the effort and flow variables from the passive OnePort. The switch has an additional modulating Boolean input signal modeling the switch position. If the modulating input signal has a value of true, the switch is considered open.

The causality of the switch element must be free, i.e., the switch element must be placed inside an algebraic loop.


Potential variables:

 e:     Bondgraphic effort variable

 f:     Bondgraphic flow variable, normalized positive for flows into the model

 open:  Boolean variable denoting the switch position (modulation input signal)


Equations:

0 = if open then f else e


Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos