为什么 ngspice 没有提供相关输出?

为什么 ngspice 没有提供相关输出?

当我通过 ngspice(Lubuntu 18.04)运行以下电路时,

circuit
V 0 1  DC 10
R 0 1 5
.end

它输出的是:

Circuit: circuit


ngspice 1 ->

“打印全部”导致这种情况:

Circuit: circuit


ngspice 1 -> print all
false = 0.000000e+00
true = 1.000000e+00
boltz = 1.380620e-23
c = 2.997925e+08
e = 2.718282e+00
echarge = 1.602190e-19
i = 0.000000e+00,1.000000e+00
kelvin = -2.73150e+02
no = 0.000000e+00
pi = 3.141593e+00
planck = 6.626200e-34
yes = 1.000000e+00

为什么没有特定电路的输出?

提前致谢

答案1

没有特定于电路的输出,因为您尚未模拟任何东西。

您可以进行的最基本的模拟是op,它执行直流工作点分析:

$ ngspice test.cir
******
** ngspice-27 : Circuit level simulation program
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Please get your ngspice manual from http://ngspice.sourceforge.net/docs.html
** Please file your bug-reports at http://ngspice.sourceforge.net/bugrep.html
** Creation Date: Tue Dec 26 17:10:20 UTC 2017
******

Circuit: circuit

ngspice 1 -> op
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000



No. of Data Rows : 1
ngspice 1 -> print all
v(1) = -1.00000e+01
v#branch = -2.00000e+00
ngspice 1 -> 

相关内容