用python和ngspice/xyce模拟器模拟电子电路

PySpice的Python项目详细描述


PySpice licensePySpice python version

PySpice last version

概述

什么是调味品?

pyspice是一个python模块,它将Python接口到NgspiceXyce电路 模拟器。

文件在哪里?

文档可以在PySpice Home Page上找到。

主要特点是什么?

  • 支持ngspice和xyce电路模拟器
  • 支持linuxwindows和mac os x平台
  • 根据gplv3授权
  • 使用支持外部源的cffi实现ngspice共享库绑定
  • 实现(部分)spice netlist parser
  • 实现面向的对象api来定义电路
  • 将模拟输出导出到Numpy数组
  • 使用Matplotlib
  • 绘制
  • 处理units
  • 使用kicad原理图编辑器
  • 实现一个文档生成器
  • 提供了许多示例

如何安装?

看看文档中的installation部分。

学分

作者:Fabrice Salvaire

新闻

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 of 1.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日

已启动项目

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在Android中维护应用程序状态   javajavacc:如何指定在特定上下文中需要哪些令牌?   java为什么改型会在重新加载数据时设置以前的响应?   java如何将键转换为字符串,反之亦然   java JDOM解析器插入#固定手动属性   java按元素对XML数据排序?   java Android中有哪些哈希算法?   java为什么使用可选返回类型进行单元测试失败?   Gson和argonauts使用Gson将javascript数组转换为json字符串并转换为javapojo时遇到的问题。试图让我的结构正确   java中的空格   java SQLite高分,草率IndexOutofBounds Android   使用Spring OAUTH2的java Make客户端   netbeans如何在java中创建一个JPopupMenu,其中包含一个要复制文本的项