modelIdealCommutingSwitch
Ideal leaking two-way switch of analog electrical library
Information
Ideal commuting electrical 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.
Control variables: control: Boolean variable denoting the switch position (modulation signal) Parameters: Ron: Leakage resistance in on state (default value = 1e-5 Ohm) Goff: Leakage conductance in off state (default value = 1e-5 Mho)
Logic:
contol = true: p-n2 is connected
contol = false: p-n1 is connected
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Resistance | Ron | 1.E-5 | Closed switch resistance |
| Modelica.SIunits.Conductance | Goff | 1.E-5 | Opened switch conductance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | p | Positive electrical connector | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n2 | Second negative electrical connector | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n1 | First negative electrical connector | |
| Modelica.Blocks.Interfaces.BooleanInput | control | true => p--n2 connected, false => p--n1 connected |