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

TypeNameDefaultDescription
Modelica.SIunits.TemperatureTnom (from SpiceTwoPort)300.15Reference temperature
Modelica.SIunits.EntropykModelica.Constants.kBoltzmann's constant
Modelica.SIunits.ElectricChargeq1.6021892e-19Electron charge
RealGapC17.02E-4First bandgap correction factor Silicon
Modelica.SIunits.TemperatureGapC21108.0Second bandgap correction factor Silicon
Modelica.SIunits.CurrentIS1e-16Saturation current at reference temperature
Modelica.SIunits.VoltageEG1.11Energy gap for temperature effect on saturation current
RealN1Current emission coefficient
RealXTI3Saturation current temperature exponent
RealArea1Relative area occupied by diode
IntegerLevel2Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2)
RealEMin-100if x < EMin, the exp(x) function is linearized
RealEMax40if x > EMax, the exp(x) function is linearized

Connectors

TypeNameDefaultDescription
BondLib.Interfaces.BondConBondCon1 (from TwoPort)Left bond graph connector
BondLib.Interfaces.BondConBondCon2 (from TwoPort)Right bond graph connector

Components

TypeNameDefaultDescription
Reale1 (from TwoPort)Bondgraphic primary effort
Realf1 (from TwoPort)Bondgraphic primary flow
Reale2 (from TwoPort)Bondgraphic secondary effort
Realf2 (from TwoPort)Bondgraphic secondary flow
Modelica.SIunits.TemperatureDTemp (from SpiceTwoPort)Difference between circuit temperature and reference temperature
RealDTempSq (from SpiceTwoPort)Square of DTemp
Modelica.SIunits.VoltageVtThermal voltage
Modelica.SIunits.CurrentISvalSaturation current at device temperature
Modelica.SIunits.VoltageEGvalActivation energy at device temperature