help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnucap] Strange behaviour on .model definition, a bug?


From: Rubén Gómez Antolí
Subject: [Help-gnucap] Strange behaviour on .model definition, a bug?
Date: Mon, 12 Mar 2007 21:24:11 +0100
User-agent: IceDove 1.5.0.10 (X11/20070307)

Hello all,

Well, few days ago I sent a mail about a error on a circuit when in
.model use a =0 variable.

Acording to manual, gnucap may not calculate these variable when =0 and
must be omitted for gnucap calculate it.

Today I was obtaining some output graphics of these same circuit:

--------------- circuit (comments omitted) --------------
TRANSISTOR CIRCUITO TRANSISTOR CON CARGA RESISTIVA

VCC      1      0      10

VE       4      0  PULSE(0  5   0   0   0   0.5M   1M)

Rc       1      2      1K
Rb       4      3      8200

Q1       2      3      0      Q2N3055

.model Q2N3055  NPN (Is=974.4f Xti=3 Eg=1.11 Vaf=50 Bf=99.49 Ne=1.941
+               Ise=902.5p Ikf=4.029 Xtb=1.5 Br=2.949 Nc=2
+               Rc=.1 Cjc=276p Vjc=.75 Mjc=.3333 Fc=.5 Cje=569.1p Vje=.75
+               Mje=.3333 Tr=971.7n Tf=39.11n Itf=20 Vtf=10 Xtf=2 Rb=.1)

.print tran V(3) V(4) V(2) I(Rb) I(Rc)
.tran 1u 3m 0 >salida.cir1.simu1.tran.dat.pru

.print dc V(3) V(4) V(2) I(Rb) I(Rc)
.DC VE 0 5 0.01 >salida.cir1.simu1.cc.dat.pru


.END
------------------- end of circuit ---------------

Note:Vje in other line due to limit on characters on txt mail.

Simulate as usual form:

-------------- console cut -------------
address@hidden:~/Practicas_2006/Practica_1/Circuitos/Gnucap$ gnucap -b
Sim-1_practica_transistor.ckt
Gnucap 2007.02.21 RCS 26.16
The Gnu Circuit Analysis Package
Never trust any version less than 1.0
Copyright 1982-2002, Albert Davis
Gnucap comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome
to redistribute it under certain conditions
according to the GNU General Public License.
See the file "COPYING" for details.
TRANSISTOR CIRCUITO TRANSISTOR CON CARGA RESISTIVA
----------------- end of console cut ------------

No errors, good.

Let's go to see graphic output of collector voltage on transistor:

http://www.mucharuina.com/Gnucap/Simu_0.png

This is not the output waited.

Well, Let's go to modify .model:

.model Q2N3055  NPN (Is=974.4f Xti=3 Eg=1.11 Vaf=50 Bf=99.49 Ne=1.941
+               Ise=902.5p Ikf=4.029 Xtb=1.5 Br=2.949 Nc=2
+ Isc=0 Ikr=0
+               Rc=.1 Cjc=276p Vjc=.75 Mjc=.3333 Fc=.5 Cje=569.1p Vje=.75
+               Mje=.3333 Tr=971.7n Tf=39.11n Itf=20 Vtf=10 Xtf=2 Rb=.1)
*               Texas Inst.     pid=2N3055      case=TO3

Simulate it with no errors again, and let's go to see output:

http://www.mucharuina.com/Gnucap/Simu_1.png


Again, Let's go to modify .model:
.model Q2N3055  NPN (Is=974.4f Xti=3 Eg=1.11 Vaf=50 Bf=99.49 Ne=1.941
+               Ise=902.5p Ikf=4.029 Xtb=1.5 Br=2.949 Nc=2
*+ Isc=0 Ikr=0
+               Rc=.1 Cjc=276p Vjc=.75 Mjc=.3333 Fc=.5 Cje=569.1p Vje=.75
+               Mje=.3333 Tr=971.7n Tf=39.11n Itf=20 Vtf=10 Xtf=2 Rb=.1)
*               Texas Inst.     pid=2N3055      case=TO3

Note that *only* modify with a "*" in these parameters =0.

Simulating these with no errors and viewing the output:

http://www.mucharuina.com/Gnucap/Simu_2.png

¡¡ Hey !! What's happening here?

Where are it different?

Look at t_on too, not to seem possible at least for me:

http://www.mucharuina.com/Gnucap/Simu_3.png

I obtained differents output according I was changing these comment,
adding other line, etc.

I test it on two machine, both with Debian Sid:

Powerpc -> Gnucap 2007.02.21 RCS 26.16

AMD64 -> Gnucap 0.35

What's wrong on me or on gnucap?

Thanks so much for your patientia with me.

Regards.

Salud y Revolución.

Lobo.
-- 
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]