1
\$\begingroup\$

I am trying to use Transistor model as in the NGSpice manual 8.2 BJT Models (NPN/PNP):

.model QMOD1 BJT level=2

however, I got this error:

  q1 n15 n16 n17 qmod1
could not find a valid modelname
Warning: Model issue on line 61 :
  .model qmod1 bjt level=2.end ...
Unknown model type bjt - ignored

So, why I got Unknown model type bjt ?

\$\endgroup\$
2
  • \$\begingroup\$ Are the files which contain the model (model files), included in the netlist? \$\endgroup\$ – Bimpelrekkie Sep 26 '19 at 6:20
  • \$\begingroup\$ Yes, its, kindly see answer below \$\endgroup\$ – simo Sep 26 '19 at 17:53
2
\$\begingroup\$

You cannot tell what type it is (NPN or PNP) if it is defined like .model QMOD1 BJT level=2.

You need to substitue BJT by NPN or PNP. So, .model QMOD1 PNP level=2

Check also SPICE BJT Declaration

\$\endgroup\$
1
  • \$\begingroup\$ Thanks Huisman for enlightening me \$\endgroup\$ – simo Sep 26 '19 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.