modelSw4
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
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Ron | 1.E-5 | Closed switch resistance |
| Real | Goff | 1.E-5 | Opened switch conductance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | control | true => p--n2 connected, false => p--n1 connected | |
| Interfaces.BondCon | p | Positive bond graph connector | |
| Interfaces.BondCon | n2 | Second negative bond graph connector | |
| Interfaces.BondCon | n1 | First negative bond graph connector |