The simple diode is an electrical one port, where a heat port is added, which is defined in the Modelica.Thermal library. It consists of the diode itself and an parallel ohmic resistance R. The diode formula is:
v/vt_t i = ids ( e - 1).where vt_t depends on the temperature of the heat port:
vt_t = k*temp/q
If the exponent v/vt_t reaches the limit
maxex, the diode characteristic is linearly continued to
avoid overflow.
The thermal power is calculated by i*v.