xspice bipolar table model example, add simple temperature model

This commit is contained in:
h_vogt 2016-09-24 20:54:40 +02:00 committed by rlar
parent 97602db86f
commit d4c1d07c26
2 changed files with 4 additions and 2 deletions

View File

@ -170,8 +170,11 @@ R23 36 0 122
.subckt tbqnpn c b e
*** table model of npn bipolar transistor ***
* simple behavioral temperature model
.param fact = 0.05
.param tgain = 1. + (TEMPER / 27. - 1.) * {fact}
abip1 %vd(c e) %id(bint e) %id(c e) biptable1
.model biptable1 table2d (offset=0.0 gain=1 order=2 file="qinn-clc409-2d-1.table")
.model biptable1 table2d (offset=0.0 gain={tgain} order=2 file="qinn-clc409-2d-1.table")
* CJE=1.632E-13
Cje b e 1.632E-13
* CJC=1.720E-13

View File

@ -19,7 +19,6 @@ vee 3 0 0
.control
** output file **
set outfile = "qinn-clc409-2d-1.table"
*set outfile = "D:/Software/Spice/ngspice/src/xspice/examples/table/qinn-clc409-2d-1.table"
dc vce -0.1 6 0.05 ib -0.1u 2u 0.1u
plot i(vee)
plot v(1) ylimit -0.2 0.8