modelDjS
Spice-style junction diode model for bipolar transistors
Extends from Interfaces.SpiceTwoPort (Special twoPort element used by Spice models).
Information
The Spice-style junction diode for BJTs is a regular diode without heat generation. A separate model was needed to implement the Level parameter, as the Ebers-Moll model doesn't recognize the Area parameter. A heat port was still needed, as the model makes use of the device temperature that it imports through the heat port. However, the heat flow itself is zero, as the model is used only as a mathematical construct to compute the currents of the non-linear current sources. The heat generation is accounted for in the non-linear sources.
Parameters: IS: Transport saturation current (default value = 1e-16 Amp) EG: Energy gap for temperature effect on saturation current (default value = 1.11 Volt) N: Current emission coefficient (default value = 1) XTI: Saturation current temperature exponent (default value = 3) Area: Relative area occupied by the diode (default value = 1) Level: Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2) (default = 2) EMin: if x < EMin, the exp(x) function is linearized (default value = -100) EMax: if x > EMax, the exp(x) function is linearized (default value = 40)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Temperature | Tnom (from SpiceTwoPort) | 300.15 | Reference temperature |
| Modelica.SIunits.Entropy | k | Modelica.Constants.k | Boltzmann's constant |
| Modelica.SIunits.ElectricCharge | q | 1.6021892e-19 | Electron charge |
| Real | GapC1 | 7.02E-4 | First bandgap correction factor Silicon |
| Modelica.SIunits.Temperature | GapC2 | 1108.0 | Second bandgap correction factor Silicon |
| Modelica.SIunits.Current | IS | 1e-16 | Saturation current at reference temperature |
| Modelica.SIunits.Voltage | EG | 1.11 | Energy gap for temperature effect on saturation current |
| Real | N | 1 | Current emission coefficient |
| Real | XTI | 3 | Saturation current temperature exponent |
| Real | Area | 1 | Relative area occupied by diode |
| Integer | Level | 2 | Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2) |
| Real | EMin | -100 | if x < EMin, the exp(x) function is linearized |
| Real | EMax | 40 | if x > EMax, the exp(x) function is linearized |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BondLib.Interfaces.BondCon | BondCon1 (from TwoPort) | Left bond graph connector | |
| BondLib.Interfaces.BondCon | BondCon2 (from TwoPort) | Right bond graph connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e1 (from TwoPort) | Bondgraphic primary effort | |
| Real | f1 (from TwoPort) | Bondgraphic primary flow | |
| Real | e2 (from TwoPort) | Bondgraphic secondary effort | |
| Real | f2 (from TwoPort) | Bondgraphic secondary flow | |
| Modelica.SIunits.Temperature | DTemp (from SpiceTwoPort) | Difference between circuit temperature and reference temperature | |
| Real | DTempSq (from SpiceTwoPort) | Square of DTemp | |
| Modelica.SIunits.Voltage | Vt | Thermal voltage | |
| Modelica.SIunits.Current | ISval | Saturation current at device temperature | |
| Modelica.SIunits.Voltage | EGval | Activation energy at device temperature |