1) If I draw a schematic where the only transistor type is a default NPN bjt, the auto-generated netlist includes the lines
.model NPN NPN
.model PNP PNP
Why does LTS feel the need to add the apparently spurious reference to PNP?
2) I have a model defined in a .sub file. A transient analysis in a sim using the model converges providing I use the global directive '.options gmin=1e-8'. I would like to add this gmin limitation to the model file itself, rather than have to apply it globally, but the .options directive is ignored if within the file. Is there a workaround?
1) If I draw a schematic where the only transistor type is a default NPN bjt, the auto-generated netlist includes the lines
.model NPN NPN
.model PNP PNP
Why does LTS feel the need to add the apparently spurious reference to PNP?
"modelname" can be any name you assign to the component but must be unique, and it is assigned to the "value" attribute of the symbol. It is used to "lookup" the model definition.
"type" is the name of the spice defined component type, such as NPN, PNP, SW or any of the supported component types.
For the example you've shown, the first NPN is the modelname, the second NPN is the model type and is the default definition for an NPN transistor. So any transistor with a "modelname"
of "NPN will be associated with the NPN model definition.
2) I have a model defined in a .sub file. A transient analysis in a sim using the model converges providing I use the global directive '.options gmin=1e-8'. I would like to add this gmin limitation to the model file itself, rather than have to apply it globally, but the .options directive is ignored if within the file. Is there a workaround?
Goto:
Control Panel->Netlist Options->Semiconductor Models
Default Devices[*] <---uncheck this, it will keep it from adding the default models
but if you add a transistor with a model name of NPN or PNP
it will produce error. So you either have to "Pick New Transistor"
from the menu, define an "NPN" or "PNP" .model on the
on the schematic, or use a .subcircuit file.
Default Libraries[*] <---leave this checked so it can use the existing libraries