首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么ngspice没有给出相关的输出?

为什么ngspice没有给出相关的输出?
EN

Ask Ubuntu用户
提问于 2019-06-05 18:55:27
回答 1查看 73关注 0票数 0

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

代码语言:javascript
复制
circuit
V 0 1  DC 10
R 0 1 5
.end

它的产出如下:

代码语言:javascript
复制
Circuit: circuit


ngspice 1 ->

“打印所有”导致了这一点:

代码语言:javascript
复制
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

为什么没有电路专用输出?

提前感谢

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-06-05 22:35:24

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

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

代码语言:javascript
复制
$ 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 -> 
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1148894

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档