modelT2
Extends from Interfaces.PassiveOnePort (Partial model invoking one bondgraphic connector).
Information
The ideal leaking tunnel diode element is a passive OnePort element. It inherits the effort and flow variables from the passive OnePort. The ideal leaking tunnel diode is a switch element with internal modulation. The modulating signal, mode, is a sextary signal with the values blocking, c1, b1, c2, b2, and blocking.Diodes are switching elements that are primarily being used in electrical circuits, although nothing prevents them from being used also in other energy domains. Leaking diodes are a special class of non-linear resistors.
The causality of the ideal leaking diode element is free.
Potential variables: e: Bondgraphic effort variable f: Bondgraphic flow variable, normalized positive for flows into the model mode: Sextary variable denoting the switch position (internal modulation signal) s1: Curve parameter s2: Curve parameter s3: Curve parameter s4: Curve parameter s5: Curve parameter Parameters: G0: Leakage conductance in blocking state (default value = 1e-5 Mho) R1: Leakage resistance in conducting state (default value = 1e-5 Ohm) R2: Leakage resistance in conducting state (default value = 1e-5 Ohm) R3: Leakage resistance in conducting state (default value = 1e-5 Ohm) em1: First knee voltage (default value = 1 Volt) em2: Second knee voltage (default value = 2 Volt) em3: Third knee voltage (default value = 3 Volt) e0: Fourth knee voltage (default value = 4 Volt) fm: Bottom intermediate current (default value = 1 Amp) f0: Top intermediate current (default value = 2 Amp)
Equations:
s2 = s1 - f0
s3 = s3 = s2 - (em2-em1)
s4 = s3 - (f0-fm)
s5 = s4 - (e0-em3)
mode = if s1 < 0 then blockinging else
if s2 < 0 then c1 else
if s3 < 0 then b1 else
if s4 < 0 then c2 else
if s5 < 0 then b2 else conducting
e = if mode == blocking then s1 else
if mode == c1 then R1*s1 else
if mode == b1 then (em1 + s2) else
if mode == c2 then (em2 + R2*s3) else
if mode == b2 then (em3 + s4) else (e0 + R3*s5)
f = if mode == blocking then G0*s1 else
if mode == c1 then s1 else
if mode == b1 then f0 else
if mode == c2 then (f0 - s3) else
if mode == b2 then fm else (fm + s5)
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 |
|---|---|---|---|
| Integer | blocking | 1 | |
| Integer | c1 | 2 | |
| Integer | b1 | 3 | |
| Integer | c2 | 4 | |
| Integer | b2 | 5 | |
| Integer | conducting | 6 | |
| Real | G0 | 1E-5 | Leakage Conductance |
| Real | R1 | 1E-5 | Leakage Resistance |
| Real | R2 | 1E-5 | Leakage Resistance |
| Real | R3 | 1E-5 | Leakage Resistance |
| Real | em1 | 1 | Intermediate forward voltage |
| Real | em2 | 2 | Intermediate forward voltage |
| Real | em3 | 3 | Intermediate forward voltage |
| Real | e0 | 4 | Maximum forward voltage |
| Real | fm | 1 | Intermediate bottom current |
| Real | f0 | 2 | Intermediate top current |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BondLib.Interfaces.BondCon | BondCon1 (from PassiveOnePort) | Bond graph connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e (from PassiveOnePort) | Bondgraphic effort | |
| Real | f (from PassiveOnePort) | Bondgraphic flow | |
| Real | s1 | Curve parameter | |
| Real | s2 | Curve parameter | |
| Real | s3 | Curve parameter | |
| Real | s4 | Curve parameter | |
| Real | s5 | Curve parameter | |
| Integer | mode | Operating mode |