[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: Having trouble with a zener subckt include



What am I doing wrong? When I run the ngspice command, I get the error message

Error on line 9 : z5 0 4 di_1n5221b
        unable to find definition of model  - default assumed

The command is simply
ngspice -b test.cir -o test.out -r ngspice.raw

and the circuit file (with one of the includes removed for space):
* gnetlist -g spice-sdb -o test.cir test.sch
*********************************************************
* Spice file generated by gnetlist *
* spice-sdb version 10.9.2004 by SDB -- *
* provides advanced spice netlisting capability. *
* Documentation at http://www.brorson.com/gEDA/SPICE/ *
*********************************************************
R2 0 4 1k
D5 0 4 DI_1N5221B
C1 0 2 47u
V1 1 3 0 ac sin 0 24 60
R1 2 4 1k
D4 3 2 D1N4003
D3 0 3 D1N4003
D2 1 2 D1N4003
D1 0 1 D1N4003


*vvvvvvvv Included SPICE model from /usr/src/geda-install/share/gEDA/sym/spice/diodes/diodes.mod vvvvvvvv


<...snip...>


*^^^^^^^^ End of included SPICE model from /usr/src/geda-install/share/gEDA/sym/spice/diodes/diodes.mod ^^^^^^^^
*
*vvvvvvvv Included SPICE model from /home/djlogan/geda/zener_diodes.mod vvvvvvvv
*SRC=1N5221B;DI_1N5221B;Diodes;Zener <=10V; 2.40V 0.500W DIODES INC ZENER
*SYM=HZEN
.SUBCKT DI_1N5221B 1 2
* Terminals A K
D1 1 2 DF
DZ 3 1 DR
VZ 2 3 0
.MODEL DF D ( IS=85.8p RS=2.47m N=1.10
+ CJO=388p VJ=0.750 M=0.330 TT=50.1n )
.MODEL DR D ( IS=17.2f RS=26.1 N=3.00 )
.ENDS
*^^^^^^^^ End of included SPICE model from /home/djlogan/geda/zener_diodes.mod
^^^^^^^^
*
.OP
.TRAN .01ms 200ms
.PLOT tran i(r2)
.END