Models and Modeling Aids - diyAudio
Go Back   Home > Forums > Wiki

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Default

Models and Modeling Aids

return to diyAudio Wiki Main Page
back up

Contents


[top]How to Add Models to LTSpice

(original text by unclejed613, edited, formatted, and expanded by mightydub)

[top]Device models

Models for most devices such as transistors, diodes, etc. start with the .model statement. There are libraries of various devices in
C:\Program Files\LTC\LTSpiceIV\lib\cmp
For example, BJT transistor models are in .\standard.bjt. MOSFET models are in standard.mos.

You can open the standard.xxx files from within LTspice which has the advantage of context aware color coding, or as text files with notepad, wordpad, or another text editor. Add the .model statement to the appropriate file. This can be either as one long line, or split into multiple lines by using the + symbol at the start of each continuation line. Comments can be inserted by starting a line with an asterisk *.

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 add a .model statement, you must exit and restart the program for the new model to show up).

[top]Subcircuits


Subcircuits are a way to create hierarchy in a Spice netlist. A subcircuit is just a Spice netlist that describes the operation of a device. Some vendors' device models are subcircuits (for example some Fairchild MOSFETs.)
To add 3rd party models of subcircuit components (like op amps, etc., that start with .subckt)

1) Use the LTSpice editor, Notepad, or other text editor
2) copy and paste the text of the model
3) save the text file into
a) "C:\Program Files\LTC\LTSpiceIV\lib\sub\whatever.sub
-or-
b) the directory of your choice. (Some users organize their files by keeping the .asc and all extra device models and subciruits used in the schematic in the same directory.)
In either case, you have to tell LTSpice where to find the subcircuit by adding a ".include" statement on the schematic, and by setting the Value parameter of the device symbol. See LTSpice Help for details.

[top]Model Sources

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 - PSpice, Spice2, Spice3, and Saber. You want the PSpice model.

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

[top]OnSemi

OnSemi has models for most devices, though there is debate on their accuracy.

[top]Fairchild

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.

[top]NXP

NXP (formerly Philips) has models for most devices.

[top]Yahoo LTspice group

You can find models for just about anything here. A great resource.

[top]Models Contributed by diyAudio members

[top]Creating Spice Models

Some information and links on creating BJT models is here: Creating_Spice_Models


Created by mightydub, 16th January 2010 at 06:58 PM
Last edited by mightydub, 17th January 2010 at 04:46 PM
0 Comments, 4,207 Views
Page Tools
Search this Page


Posting Rules
You may not create new articles
You may not edit articles
You may not protect articles

You may not post comments
You may not post attachments
You may not edit your comments

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Hide this!Advertise here!

New To Site? Need Help?

All times are GMT. The time now is 10:21 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2