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 a parallel ohmic resistance R. If useTemperatureDependency is set to true, the diode formula is:
where vt_t depends on the temperature of the heat port:v/N/vt_t i = Ids (e - 1)
vt_t = k*temp/q
If useTemperatureDependency is set to false, the diode formula utilizes the voltage equivalent of the temperature, i.e.,
v/Vt i = Ids (e - 1).
If the exponent v/N/vt_t or v/Vt,
respectively, reaches the limit Maxexp, the diode
characteristic is linearly continued to avoid overflow.
The thermal power is calculated by i*v.