用python和ngspice/xyce模拟器模拟电子电路
PySpice的Python项目详细描述
- 快速链接到Production Branch
- 快速链接到Devel Branch
概述
文件在哪里?
文档可以在PySpice Home Page上找到。
主要特点是什么?
- 支持ngspice和xyce电路模拟器
- 支持linux、windows和mac os x平台
- 根据gplv3授权
- 使用支持外部源的cffi实现ngspice共享库绑定
- 实现(部分)spice netlist parser
- 实现面向的对象api来定义电路
- 将模拟输出导出到Numpy数组
- 使用Matplotlib
绘制- 处理units
- 使用kicad原理图编辑器
- 实现一个文档生成器
- 提供了许多示例
如何安装?
看看文档中的installation部分。
学分
新闻
v1.3.0(开发版本)
v1.2.0(生产发布)2018-06-07
- Initial support of the Xyce simulator. Xyce is an open source, SPICE-compatible, high-performance analog circuit simulator, capable of solving extremely large circuit problems developed at Sandia National Laboratories. Xyce will make PySpice suitable for industry and research use.
- Fixed OSX support
- Splitted G device
- Implemented partially A XSPICE device
- Implemented missing transmission line devices
- Implemented high level current sources Notice: Some classes were renamed !
- Implemented node kwarg e.g.
circuit.Q(1, base=1, collector=2, emitter=3, model='npn')
- Implemented raw spice pass through (see User FAQ)
- Implemented access to internal parameters (cf.
save @device[parameter]
)- Implemented check for missing ground node
- Implemented a way to disable an element and clone netlist
- Improved SPICE parser
- Improved unit support:
- Implemented unit prefix cast U_μV(U_mV(1)) to easily convert values
- Added U_mV, … shortcuts
- Added Numpy array support to unit, see UnitValuesNotice: this new feature could be buggy !!!
- Rebased WaveForm to UnitValues
- Fixed node order so as to not confuse users Now PySpice matches SPICE order for two ports elements !
- Fixed device shortcuts in Netlist class
- Fixed model kwarg for BJT Notice: it must be passed exclusively as kwarg !
- Fixed subcircuit nesting
- Outsourced documentation generator to Pyterate
- Updated setup.py for wheel
v1.1.0 2017-09-06
- Enhanced shared mode
- Shared mode is now set as default on Linux
v1.0.0 2017-09-06
- Bump version to v1.0.0 since it just works!
- Support Windows platform using Ngspice shared mode
- Fixed shared mode
- Fixed and completed Spice parser : tested on example’s libraries
v0.4.2
- Fixed Spice parser for lower case device prefix.
V0.4.0 2017年7月31日
- Git repository cleanup: filtered generated doc and useless files so as to shrink the repository size.
- Improved documentation generator: Implemented
format
for RST content and Tikz figure.- Improved unit support: It implements now the International System of Units. And we can now use unit helper like
u_mV
or compute the value of1.2@u_kΩ / 2@u_mA
. The relevant documentation is on this page.- Added the Simulation instance to the Analysis class.
- Refactored simulation parameters as classes.
V0.3.2 2017年2月22日
- fixed CCCS and CCVS
V0.3.1 2017年2月22日
- fixed ngspice shared
V0.3.0 2015年12月08日
- Added an example to show how to use the NgSpice Shared Simulation Mode.
- Completed the Spice netlist parser and added examples, we could now use a schematic editor to define the circuit. The program cir2py translates a circuit file to Python.
2014年3月21日
已启动项目