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: