modelSw2
Leaking switch of the Modelica bond graph library
Extends from Interfaces.PassiveOnePort (Partial model invoking one bondgraphic connector).
Information
The leaking switch element is a passive OnePort element with modulation. It inherits the effort and flow variables from the passive OnePort. If the modulating signal has a value of true, the switch is considered open.The causality of the leaking switch element is free.
Potential variables: e: Bondgraphic effort variable f: Bondgraphic flow variable, normalized positive for flows into the model OpenSwitch: Boolean variable denoting the switch position (modulation signal) s: Curve parameter Parameters: Ron: Leakage resistance in on state (default value = 1e-5) Goff: Leakage conductance in off state (default value = 1e-5)
Equations:
f = s*(if OpenSwitch then Goff else 1)
e = s*(if OpenSwitch then 1 else Ron)
References:
- Otter, M., H. Elmqvist, and S.E. Mattsson (1999), "Hybrid Modeling in Modelica Based on the Synchronous Data Flow Principle," Proc. CACSD'99, IEEE Symposium on Computer-Aided Control System Design, Hawaii, August 22-27, 1999, pp. 151-157.
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 |
|---|---|---|---|
| BondLib.Interfaces.BondCon | BondCon1 (from PassiveOnePort) | Bond graph connector | |
| Modelica.Blocks.Interfaces.BooleanInput | BooleanInPort1 | Boolean input signal (true if switch is open) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e (from PassiveOnePort) | Bondgraphic effort | |
| Real | f (from PassiveOnePort) | Bondgraphic flow |