help-gnucap
[Top][All Lists]
Advanced

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

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


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

Hi again,

Many thanks for your fast answer.

al davis escribió:
> On Monday 12 March 2007 16:24, Rubén Gómez Antolí wrote:
>> 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
> 
> -- commented out
> 
>> +               Rc=.1 Cjc=276p Vjc=.75 Mjc=.3333 Fc=.5 Cje=569.1p Vje=.75
> 
> -- this extends the previous line,which is a comment.
> Therefore this is a comment too!

Ok, I understand, but, output circuit is "correct" when I comment these
lines, any ideas?

> 
>> +               Mje=.3333 Tr=971.7n Tf=39.11n Itf=20 Vtf=10 Xtf=2 Rb=.1)
>> *               Texas Inst.     pid=2N3055      case=TO3
>>
> 
> Known bug ..  or .. known difference from the way Spice is actually 
> implemented,
> as opposed to the way it is speced.
>

I'll remember me this.

> Work around:  don't comment out pieces in the middle of a model.
> 

Ok, Let's got to try:

----------------- console output --------------
address@hidden:~/Practicas_2006/Practica_1/Circuitos/Gnucap$ grep -v ^*
Sim-1_practica_transistor.ckt
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
address@hidden:~/Practicas_2006/Practica_1/Circuitos/Gnucap$ grep -v ^*
Sim-1_practica_transistor.ckt > nuevo.ckt
address@hidden:~/Practicas_2006/Practica_1/Circuitos/Gnucap$ gnucap -b
nuevo.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
did not converge
did not converge
did not converge
did not converge
      ----- too many times ---------
did not converge
did not converge
did not converge
address@hidden:~/Practicas_2006/Practica_1/Circuitos/Gnucap$ gwave
salida.cir1.simu1.tran.dat.pru
------------------- end of console output ----------

This way drive us to:

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

the same output in last test.

A new try on other machine and starting in other file for same circuit,
all right?


--------------- console output -------------

address@hidden:~/Practicas/Practica_1$ grep -v ^* Ngspice/Sim-2.ckt
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.tran.dat

.print dc V(3) V(2) I(Rb) I(Rc)
.DC VE 0 8 0.01 > salida.cc.dat


.END
address@hidden:~/Practicas/Practica_1$ grep -v ^* Ngspice/Sim-2.ckt >
nuevo.ckt
address@hidden:~/Practicas/Practica_1$ gnucap -b nuevo.ckt
Gnucap 0.35
The Gnu Circuit Analysis Package
Never trust any version less than 1.0
Copyright 1982-2006, 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
open circuit: internal node 2
address@hidden:~/Practicas/Practica_1$ gwave salida.tran.dat

--------------- end of console output --------

Output:

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

Note two details:

1· Line with only Rc parameter
2· I obtain my "old" error about "open circuit"

There are something that I'm lost, something is wrong but, what?

It's a simple circuit, what's happening? I'm having headache with this,
I'm wait that you can see "ligth" here.

Sorry for the big mail.

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]