Hi Everybody.
I'm trying to do a comparison about two different simulations softwares: LTSPice and ngspice, both free.
The main problme is that I was able to make a compatible file that works on both the systems, but I got pretty different results form the simulation. Note that the simulation specifications are inside the file.
Here is the file used:
[code]
*** Component Net List Start ***
*Q_Q1 Net_0 Net_1 Net_6 2N4401 1 IC=0, 0 Temp=25
*Q_Q2 Net_2 Net_3 Net_4 2N4401 1 IC=0, 0 Temp=25
Q_Q1 Net_0 Net_1 Net_6 2N3904 1 IC=0, 0 Temp=25
Q_Q2 Net_2 Net_3 Net_4 2N3904 1 IC=0, 0 Temp=25
R_R1 Net_1 Net_5 47K
R_R2 Net_0 Net_5 47K
R_R3 Net_2 Net_5 1K
R_R4 Net_3 Net_5 47K
C_C1 Net_0 Net_3 22uF IC=0
C_C2 Net_2 Net_1 22uF IC=0
V_B1 Net_5 0 DC=5 AC=0 0
D_LED1 Net_6 0 D1N4148 1 IC=0 Temp=25
D_LED2 Net_4 0 D1N4148 1 IC=0 Temp=25
.model 2N4401 NPN(Is=26.03f Xti=3 Eg=1.11 Vaf=90.7 Bf=4.292K Ne=1.244
+ Ise=26.03f Ikf=.2061 Xtb=1.5 Br=1.01 Nc=2 Isc=0 Ikr=0 Rc=.5
+ Cjc=11.01p Mjc=.3763 Vjc=.75 Fc=.5 Cje=24.07p Mje=.3641
+ Vje=.75 Tr=233.7n Tf=466.5p Itf=0 Vtf=0 Xtf=0 Rb=10)
.model 2N3904 NPN(Is=6.734f Xti=3 Eg=1.11 Vaf=74.03 Bf=416.4 Ne=1.259
+ Ise=6.734f Ikf=66.78m Xtb=1.5 Br=.7371 Nc=2 Isc=0 Ikr=0 Rc=1
+ Cjc=3.638p Mjc=.3085 Vjc=.75 Fc=.5 Cje=4.493p Mje=.2593
+ Vje=.75 Tr=239.5n Tf=301.2p Itf=.4 Vtf=4 Xtf=2 Rb=10)
.MODEL D1N4148 D(IS=0.1P RS=16 CJO=2P TT=12N BV=100 IBV=3.867E-10)
*.TRAN 0s 100s 0.1s
.TRAN 0.1s 50s
[/code]
I attached the two simulated results , both on net_0. I'm pretty new to this kind of simulations, so I'm asking advices here about why this different results, thanks in advance!
I'm trying to do a comparison about two different simulations softwares: LTSPice and ngspice, both free.
The main problme is that I was able to make a compatible file that works on both the systems, but I got pretty different results form the simulation. Note that the simulation specifications are inside the file.
Here is the file used:
[code]
*** Component Net List Start ***
*Q_Q1 Net_0 Net_1 Net_6 2N4401 1 IC=0, 0 Temp=25
*Q_Q2 Net_2 Net_3 Net_4 2N4401 1 IC=0, 0 Temp=25
Q_Q1 Net_0 Net_1 Net_6 2N3904 1 IC=0, 0 Temp=25
Q_Q2 Net_2 Net_3 Net_4 2N3904 1 IC=0, 0 Temp=25
R_R1 Net_1 Net_5 47K
R_R2 Net_0 Net_5 47K
R_R3 Net_2 Net_5 1K
R_R4 Net_3 Net_5 47K
C_C1 Net_0 Net_3 22uF IC=0
C_C2 Net_2 Net_1 22uF IC=0
V_B1 Net_5 0 DC=5 AC=0 0
D_LED1 Net_6 0 D1N4148 1 IC=0 Temp=25
D_LED2 Net_4 0 D1N4148 1 IC=0 Temp=25
.model 2N4401 NPN(Is=26.03f Xti=3 Eg=1.11 Vaf=90.7 Bf=4.292K Ne=1.244
+ Ise=26.03f Ikf=.2061 Xtb=1.5 Br=1.01 Nc=2 Isc=0 Ikr=0 Rc=.5
+ Cjc=11.01p Mjc=.3763 Vjc=.75 Fc=.5 Cje=24.07p Mje=.3641
+ Vje=.75 Tr=233.7n Tf=466.5p Itf=0 Vtf=0 Xtf=0 Rb=10)
.model 2N3904 NPN(Is=6.734f Xti=3 Eg=1.11 Vaf=74.03 Bf=416.4 Ne=1.259
+ Ise=6.734f Ikf=66.78m Xtb=1.5 Br=.7371 Nc=2 Isc=0 Ikr=0 Rc=1
+ Cjc=3.638p Mjc=.3085 Vjc=.75 Fc=.5 Cje=4.493p Mje=.2593
+ Vje=.75 Tr=239.5n Tf=301.2p Itf=.4 Vtf=4 Xtf=2 Rb=10)
.MODEL D1N4148 D(IS=0.1P RS=16 CJO=2P TT=12N BV=100 IBV=3.867E-10)
*.TRAN 0s 100s 0.1s
.TRAN 0.1s 50s
[/code]
I attached the two simulated results , both on net_0. I'm pretty new to this kind of simulations, so I'm asking advices here about why this different results, thanks in advance!