modelDiode2

Improved diode model

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).

Information

This diode model is an improved version of the simple diode model. It includes a series resistance, parallel conductance, and also models reverse breakdown. The model is divided into three parts:

  • lower half of reversed bias region including breakdown: -Ids·(exp(-(vd+Bv)/(N·Vt)) + 1 - 2·exp(-Bv/(2·N·Vt)))
  • upper half of reverse biased region and forward biased region before conduction: Ids·(exp(vd/(N·Vt)) - 1)
  • forward biased region after conduction: iVdMax + (vd - VdMax)·diVdMax

Temperature dependent behaviour is modelled when useHeatPort=true. In that case, the Vt parameter is ignored, and Vt is computed as k·T/q, where

  • k is Boltzmann's constant
  • T is the heat port temperature.
  • q is the electron charge.

Parameters

TypeNameDefaultDescription
BooleanuseHeatPort (from ConditionalHeatPort)false= true, if heatPort is enabled
SI.TemperatureT (from ConditionalHeatPort)293.15Fixed device temperature if useHeatPort = false
SI.VoltageVf0.7Forward voltage
SI.CurrentIds1e-13Reverse saturation current
SI.ResistanceRs16Ohmic resistance
SI.VoltageVtModelica.Constants.R*T/Modelica.Constants.FThermal voltage (kT/q), 0.026 at normal conditions (around 20 degC)
RealN1Emission coefficient
SI.VoltageBv100Reverse breakdown voltage
SI.ConductanceGp1e-6Parallel conductance for numerical stability

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from ConditionalHeatPort)Conditional heat port

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currenti (from OnePort)Current flowing from pin p to pin n
SI.PowerLossPower (from ConditionalHeatPort)Loss power leaving component via heatPort
SI.TemperatureT_heatPort (from ConditionalHeatPort)Temperature of heatPort
SI.VoltagevdVoltage across pure diode part
SI.CurrentidDiode current

Revisions

  • November 2015 by Stefan Vorkoetter
    implemented dynamic temperature dependency
  • November 2015 by Kristin Majetta
    defined parameter Vt based on fixed temperature
  • June 2014 by Stefan Vorkoetter, Kristin Majetta, and Christoph Clauss
    implemented
  • October 2011 Stefan Vorkoetter - new model proposed.