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 resistive source element has free causality on the primary side, and fixed causality on the secondary side. The causality stroke is at the element on the secondary side (a source of entropy, rather than a source of temperature).
Potential variables: e1: Bondgraphic effort variable of inflow f1: Bondgraphic flow variable of inflow, normalized positive for flows into the model e2: Bondgraphic effort variable of outflow f2: Bondgraphic flow variable of outflow, normalized positive for flows out of the model blocking: Boolean variable denoting the switch position (internal modulation signal) s: Curve parameter Parameters: Ron: Leakage resistance in conducting state (default value = 1e-5 Ohm) Goff: Leakage conductance in blocking state (default value = 1e-5 Mho) e0: Forward threshold effort (default value = 0 Volt)
Equations:
blocking = s < 0
f1 = s*(if blocking then Goff else 1) + Goff*e0
e1 = s*(if blocking then 1 else Ron) + e0
f2 = (e1/e2)*f1
References: