Spice Models - How to Add Models and Where to Find Them

Status
Not open for further replies.
This article has been replaced by "Models and Modeling Aids" and has become an orphan. It can be deleted.



[wiki=Main Page]back to diyAudio Wiki Main Page[/wiki]
[wiki=LTSpice and What the New User Should Know]back up[/wiki]

[h=How to Add Models to LTSpice]%2[/h]
(by unclejed613)

[h=Subcircuits]%3[/h]
To add 3rd party models of subcircuit components (like op amps, etc., that start with .subckt)

1) open notepad or other text editor
2) copy and paste the text of the model
3) save the text file as "c:\Program files\LTC\SWCadIII\lib\sub\whatever.sub
(or whatever directory the subcircuit files are kept)

[h=Device models]%3[/h]
Models for most devices such as transistors, diodes, etc. start with the .model statement. For BJT transistor models, you copy/paste the text into c:\Program Files\LTC\SWCadIII\lib\cmp\standard.bjt. For MOSFET models, copy into standard.mos. It's best if you put it in as a single line and remove all of the + symbols. You can open the standard.xxx files from within LTspice which has the advantage of context aware color coding, as text files with notepad or wordpad, or another text editor. After adding the lines to the model files, the part number will show up in the device selection list (if you have LTSpice open when you do this, you must exit and restart the program).

[h=Model Sources]%2[/h]
Many vendors have spice models available on their websites. Find the page for the device of interest, and look for "Design Support" or "Technical Information." Often there will be multiple model types available - P Spice, Spice2, Spice3, and Saber. You want the P Spice model.

Some people are confused when LTSpice isn't mentioned in the model types - Never fear, LTSPice is compatible with PSpice models.

[h=OnSemi]%3[/h]
OnSemi has models for most devices, though there is debate on their accuracy.

[h=Fairchild]%3[/h]
Models for most devices, they seem to be pretty accurate. Some MOSFET models are .subckt models that contain individual .model statements for the FET, body diode, and parasitic R, L, and C.

[h=Yahoo LTspice group]%3[/h]
You can find models for just about anything here. A great resource.
 
Last edited:
Status
Not open for further replies.