modelDiode
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
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:
v/N/vt_t
i = Ids (e - 1)
where vt_t depends on the temperature of the heat port:
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Current | Ids | 1e-6 | Saturation current |
| Boolean | useTemperatureDependency | false | = true, if the diode current depends on temperature, otherwise utilizes the voltage equivalent of temperature |
| SI.Voltage | Vt | 0.04 | Voltage equivalent of temperature (kT/qn) |
| Real | Maxexp | 15 | Max. exponent for linear continuation |
| SI.Resistance | R | 1e8 | Parallel ohmic resistance |
| Real | EG | 1.11 | Activation energy |
| Real | N | 1 | Emission coefficient |
| SI.Temperature | TNOM | 300.15 | Parameter measurement temperature |
| Real | XTI | 3 | Temperature exponent of saturation current |
| Boolean | useHeatPort (from ConditionalHeatPort) | false | = true, if heatPort is enabled |
| SI.Temperature | T (from ConditionalHeatPort) | 293.15 | Fixed device temperature if useHeatPort = false |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from ConditionalHeatPort) | Conditional heat port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n | |
| SI.Power | LossPower (from ConditionalHeatPort) | Loss power leaving component via heatPort | |
| SI.Temperature | T_heatPort (from ConditionalHeatPort) | Temperature of heatPort | |
| SI.Voltage | vt_t | Temperature voltage | |
| SI.Current | id | Diode current |
Revisions
- March 11, 2009
by Christoph Clauss
conditional heat port added
- April 5, 2004
by Christoph Clauss
implemented