BondLib.Switches.D2

# .BondLib.Switches.D2

Electrical leaking diode of the Modelica bond graph library

## Information

The ideal diode element is a passive OnePort element. It inherits the effort and flow variables from the passive OnePort. The leaking diode is a switch element with internal modulation. If the modulating signal has a value of true, the diode is considered 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 leaking diode element is free.

    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

    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
f = s*(if blocking then Goff else 1) + Goff*e0
e = s*(if blocking then 1 else Ron) + e0

References:

1. 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.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos