NGSPICE(1)
β¨ NGSPICE β¨
okay bestie, gather round, because this is the ngspice man page π β a circuit simulator derived from SPICE3f5, and yes she is that girl. π
πΈ NAME πΈ
ngspice β a circuit simulator derived from SPICE3f5. no cap, that's literally what she is. π¦
π«Ά SYNOPSIS π«Ά
ngspice [options] [file ...]
π DESCRIPTION π
okay so real talk: this man page is just a lil overview, she's the appetizer not the meal π. The primary documentation of ngspice lives in the ngspice User's Manual, which you can get as a pdf or an html file. so if you need the deep lore, that's where it's at. β¨
π OPTIONS π
-n,--no-spiceinitβ don't even try to source the file.spiceinitat startup. Normally ngspice goes looking for that file in the current directory first, and if she can't find it there, she checks the user's home directory. this flag says "girl, don't bother". π-tterm,--term=term β the program is being run on a terminal whose mfb name is term. π-b,--batchβ run in batch mode. ngspice will read the standard input or the specified input file and do the simulation. β οΈ heads up bestie: if the standard input is not a terminal, ngspice will default to batch mode, unless you gave the-iflag. iykyk.-s,--serverβ run in server mode. this is like batch mode, except a temporary rawfile is used and then written to the standard output, preceded by a line with a single"@", after the simulation is done. this mode is used by the ngspice daemon. serving, literally. π₯-i,--interactiveβ run in interactive mode. super useful if the standard input is not a terminal but you still want interactive mode. however π: command completion is not available unless the standard input is a terminal. tragic, i know. π-rrawfile,--rawfile=file β use rawfile as the default file into which the results of the simulation get saved. π-ccircuitfile,--circuitfile=circuitfile β use circuitfile as the default input deck. π-h,--helpβ display a verbose help on the arguments available to the program. bestie behavior, honestly. π«Ά-v,--versionβ display a version number and copyright information of the program. π-a,--autorunβFIXME. that's it. that's the whole description. not me leaving it exactly as she is π.-ooutfile,--output=outfile β all logs generated during a batch run (-b) will be saved in outfile. πΈ-p,--pipeβ allow a program (e.g.,xcircuit) to act as a GUI frontend for ngspice through a pipe. so ngspice will assume that the pipe is a tty and allows one to run in interactive mode. iconic pipeline energy. π¦
any further arguments are taken to be SPICE input decks, which are read and saved. and if batch mode is requested, then they are run immediately. β
π ENVIRONMENT π
SPICE_LIB_DIRSPICE_EXEC_DIRSPICE_HOSTSPICE_BUGADDRSPICE_EDITORSPICE_ASCIIRAWFILEβ default0. the format of the rawfile.0for binary, and1for ascii. pick your fighter πSPICE_NEWSβ default$SPICE_LIB_DIR/news. a file which is copied verbatim to stdout when ngspice starts in interactive mode. it's giving morning newsletter ββ¨SPICE_MFBCAPβ default$SPICE_LIB_DIR/mfbcapSPICE_HELP_DIRβ default$SPICE_LIB_DIR/helpdirSPICE_SCRIPTSβ default$SPICE_LIB_DIR/scripts. in this directory thespinitfile will be searched. πSPICE_PATHβ default$SPICE_EXEC_DIR/ngspice
π« various undocumented ngspice centric environment variables π«
NGSPICE_MEAS_PRECISIONSPICE_NO_DATASEG_CHECK
(undocumented. mysterious. main character energy. we simply do not know. π§)
π Common environment variables π
TERM LINES COLS DISPLAY HOME PATH EDITOR SHELLPOSIXLY_CORRECT
π FILES π
$SPICE_LIB_DIR/scripts/spinitβ the System's Initialisation File. π.spiceinitor$HOME/.spiceinitβ the User's Initialisation File. π«Ά
β SEE ALSO β
sconvert(1), ngnutmeg(1), mfb(3), writedata(3), and the ngspice User's Manual at http://ngspice.sourceforge.net/docs.html
π BUGS π
please report bugs to the ngspice project via http://ngspice.sourceforge.net/bugrep.html β she wants to hear from you fr fr π
π AUTHORS π
- spice3: Tom Quarles (
quarles@cad.berkeley.edu) - nutmeg: User interface: Wayne Christopher (
faustus@cad.berkeley.edu) - ngspice: various authors (see
https://sourceforge.net/projects/ngspice/)
and that's the whole page bestie!! π¦ this overview comes from the General Commands Manual, dated 2014-10-28, and it's page NGSPICE(1) of the manual set. slay, go simulate something. π β¨π
π¦ where this page comes from
- alpine 3.24: ngspice-doc 46-r0 Β· BSD-3-Clause
- arch rolling: ngspice 47-1 Β· BSD-3-Clause
- fedora 43: ngspice 45.2-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: ngspice 47-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ngspice 45.2-3.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: ngspice 47-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: ngspice 45
- nixpkgs unstable: ngspice 45
- ubuntu resolute: ngspice 45.2+ds-1 Β· BSD-3-Clause
- ubuntu stonking: ngspice 47+ds-1 Β· BSD-3-Clause
- Copyright (c) 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms