BondLib.Switches.Sw4

# .BondLib.Switches.Sw4

Switching between two branches with leakage

## Information

Ideal commuting switch element with leakage. This switch can be used to model a two-way switch. If control = true, the switch is in the p-n2 connection. If control = false, the switch is in the p-n1 connection.

    Bond graph connectors:

     p:           Positive connector

     n1:          First negative connector

     n2:          Second negative connector

    Control variables:

     control:     Boolean variable denoting the switch position (modulation signal)

    Parameters:

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

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

Logic:

contol = true: p-n2 is connected
contol = false: p-n1 is connected

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos