modelRBS
Spice-style base resistor model of bipolar transistors
Extends from Interfaces.SpiceTwoPort (Special twoPort element used by Spice models).
Information
The base resistor is the most important of the parasitic resistors of a bipolar transistor. For this reason, Spice models this resistor using a more sophisticated model with additional parameters.
Parameters: RB: Reference zero-bias base resistance (default value = 0 Ohm) RBM: Reference minimum base resistance (default value = 0 Ohm) IRB: Current where base resistance falls halfway to minimum value (default value = 0 Amp) Tnom: Reference temperature (default value = 300.15 oK) TRB1: Linear temperature variation coefficient of RB (default value = 0 Ohm/oK) TRB2: Quadratic temperature variation coefficient of RB (default value = 0 Ohm/oK2) TRM1: Linear temperature variation coefficient of RBM (default value = 0 Ohm/oK) TRM2: Quadratic temperature variation coefficient of RBM (default value = 0 Ohm/oK2) Area: Relative area occupied by resistor (default value = 1) Level: Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2) (default value = 2)
Equations:
DTemp = e2 - Tnom
RBval = RB*(1 + TRB1*DTemp + TRB2*DTemp*DTemp)/Area
RBMval = RBM*(1 + TRM1*DTemp + TRM2*DTemp*DTemp)/Area
z = if IRB > 0 then (-1 + sqrt(1 + 144*f1/(pi*pi*IRB*Area)))/(24*sqrt(f1/(IRB*Area))/(pi*pi)) else 0
tz = if IRB > 0 then tan(z) else 0
Rval = if IRB > 0 then (Rbmval + 3*(Rbval - Rbmval)*(tz-z)/(z*tz*tz)) else (Rbmval + (Rbval - Rbmval)/qb)
e1 = Rval*f1
f2 = (e1/e2)*f1
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Temperature | Tnom (from SpiceTwoPort) | 300.15 | Reference temperature |
| Real | pi | Modelica.Constants.pi | |
| Modelica.SIunits.Resistance | RB | 0 | Resistance at reference temperature |
| Modelica.SIunits.Resistance | RBM | 0 | Modified resistance at reference temperature |
| Modelica.SIunits.Current | IRB | 0 | Reference base current at reference temperature |
| Real | TRB1 | 0 | Linear temperature coefficient |
| Real | TRB2 | 0 | Quadratic temperature coefficient |
| Real | TRM1 | 0 | Linear temperature coefficient |
| Real | TRM2 | 0 | Quadratic temperature coefficient |
| Real | Area | 1 | Relative area occupied by resistor |
| Integer | Level | 2 | Transistor modeling level (Ebers-Moll = 1; Gummel-Poon = 2) |
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 | |
| Modelica.Blocks.Interfaces.RealInput | qb | Base charge |
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.Resistance | RBval | Base resistance value at circuit temperature | |
| Modelica.SIunits.Resistance | RBMval | Modified base resistance value at circuit temperature | |
| Modelica.SIunits.Resistance | Rval | Resistance value at circuit temperature |