In this topic:
The .LIB netlist control allows the local specification of model library for a particular circuit.
.LIB pathname
pathname | File system path name specifying a single file or, by using a wildcard (* or ?), a group of files. If the path name contains spaces, it must be enclosed in quotation marks ("). |
This control specifies a pathname to be searched for model and subcircuit libraries. Any number of .LIB controls may be specified and wild-cards (i.e. * and ? ) may be used.
If a model or subcircuit is called up by a device line but that definition was not present in the netlist, SIMetrix will search for it in files specified using the .LIB control.
SIMetrix also supports another form of .LIB used by model files designed for Hspice ®. See the Simulator Reference Manual/Command Reference/.LIB/Hspice Form for details.
You can install a model file to a schematic by picking it up in windows explorer and dropping it onto the schematic window. This will insert a .LIB control (see above) with a path to the file you dropped. This installs the model file to be local to that schematic.
When enabled, library diagnostics display messages showing the progress of the location of device models. To enable/disable select Model Library tab.
thenYou can also enter a model or subcircuit definition in the schematic's F11 window. However if you enter a model in this manner it will only be available to that schematic.
This is a technique used to speed the search for models and subcircuits. It is completely transparent and requires no action from the user. SIMetrix creates an index file for each library specification it encounters either installed globally or referenced using .LIB. This index files contain details of the file locations of models and subcircuit definitions referenced by the library specification. These index files can then be used for later simulation runs to speed the search for models and subcircuits. Index files are automatically rebuilt if any of the library files referenced are modified. (Modifications are detected by comparing file dates). All index files are stored in
app_data_dir/INDEXES
where app_data_dir is the location of the application data directory. See Application Data Directory for the location of this directory. The files are named SXn.sxidx, where n is some number.
Note that if you add a new model file to a directory while SIMetrix is running, SIMetrix won't know of the new file and any relevant indexes won't be updated. In this situation, select the menu
to update the indexes.Models of some common parts are available from different sources. Sometimes these have different names, e.g LF356 and LF356/NS - the latter available from the National Semiconductor library. In some cases the model names from different sources are identical. This poses a problem as models have to be uniquely identified by their name.
SIMetrix has a built-in utility that can automatically rename models with duplicate names. The devices are renamed by adding a user specified suffix to the model name. The rename utility is not accessible via the menus but must be invoked by typing a command at the command line. Proceed as follows:
rename_libs
*** RENAME COMPLETE. See ???/RENAME.LOG for detailswill be displayed in the command shell. The RENAME.LOG file will contain full details of the rename process. This includes details of all models that were renamed.
rename_libs_checkNote that messages output to the log file and to the command shell will report the renaming of models but no renaming will actually take place.
SIMetrix can use some models developed for LTspice®. This is especially useful for simulating some Op-amp models that are only available with LTspice®. Note that only unencrypted text format models may be used with SIMetrix.
A script is available which will build a SIMetrix symbol library from the LTspice® symbol/model library. Models can then be placed on a schematic from the menu
using the LTspice category.To run the script, type at the command line
ltspice_build_symbol_library
then follow the instructions.
Many models will run without modification and without any special settings. A few models use features that need to be explicitly enabled. For those models add the following setting:
.OPTIONS LTspiceCompatibility=1
Some models need some minor modifications before they will run successfully. A few need more major modifications. If you have current maintenance, contact technical support for assistance.
◄ Parts Management - Advanced Topics | Analysis Modes ▶ |