BetterSPICE 1.0.0 is out, and the source is open. Read the code on GitHub
BetterSPICE 1.0.0 GitHub Download

Tutorial

Use a vendor SPICE model in your circuit

Give a placed part the manufacturer's own SPICE model: open the part's model dialog, search for the part number, assign the row you want and run Simulate. BetterSPICE then runs the vendor file in ngspice. This tutorial gives the op-amp of a series regulator a Texas Instruments LM358 model. It needs the desktop app.

28 Nov 2026 · Arwid Vasilev

Steps

  1. Press E, type op-amp series and open Op-amp series regulator (LM317 principle). A 12 V supply with 1 V of 100 Hz ripple feeds the regulator.
  2. Double-click the op-amp U1, or select it and press Ctrl+M. The model dialog opens on the Library tab.
  3. Type lm358 in the search box. Rows from several libraries appear. The chips filter by maker and by format.
  4. Click the row LM358, Subcircuit, 5 pins, Texas Instruments. The preview shows the maker, the pins and a Live view line that says how the live engine treats it.
  5. Click Assign LM358. A message confirms it, and one Ctrl+Z takes it back.
  6. Press F5. The progress line says it runs in ngspice with vendor models. V out sits at 5.00 V, with a ripple of about 0.26 mV peak to peak against 2 V at the input.
  7. To watch the start-up, press F6, set Start from initial conditions to Yes and run again. The output then rises from 0 V instead of starting at 5 V.
  8. To get the model of a part from datasheet numbers when the library has none, see chapter 12. This walk-through is tutorial 3 of the manual.
The Assign model dialog listing N-channel MOSFET models, with the maker, format, status and key figures of the selected one
The model dialog (here for a MOSFET): the search box, the maker and format chips, the list, and on the right the maker, format, status and key figures.

Questions people ask

Why does the live view differ from Simulate?

The live view runs a stand-in fitted to the vendor model. In this regulator it shows a ripple of about a microvolt, because the fit does not carry the finite supply rejection of TI's file. Simulate runs the vendor file itself, so trust it for that.

What if the model says it is encrypted?

Simulate cannot run an encrypted model. Choose another model of the part, or install PSpice for TI if it is a TI model.

Where does Simulate look for model files?

In the folders named by BSPICE_MODELS first, then the repository, %APPDATA%\BetterSPICE\models and the working folder. See chapter 74.

Try it yourself

The viewer and the full app run in your browser. The desktop app adds the vendor model library and ngspice.