Diodes are switching elements that are primarily being used in electrical circuits, although nothing prevents them from being used also in other energy domains.
The causality of the ideal diode element must be free, i.e., the ideal diode element must be placed inside an algebraic loop. If the causality of the diode is not free, use the leaking diode model, D2, instead.
Potential variables: e: Bondgraphic effort variable f: Bondgraphic flow variable, normalized positive for flows into the model blocking: Boolean variable denoting the switch position (internal modulation signal) s: Curve parameter
Equations:
blocking = s < 0
f = if blocking then 0 else s
e = if blocking then s else 0
References: