Simulate Electronic Circuit using Python and the Ngspice / Xyce Simulators¶
(*) PySpice is licensed under GPLv3 therms.
PySpice implements a Ngspice binding and provides an oriented object API on top of SPICE, the simulation output is converted to Numpy arrays for convenience.
PySpice requires Python 3 and works on Linux, Windows and OS X.
Many examples to learn how to use PySpice. To learn more on how to run theses examples, read the introduction to the examples.
Table of Contents¶
- 1. Overview
- 1.1. What is PySpice ?
- 1.2. How is PySpice licensed ?
- 1.3. Are there some papers or talks about PySpice ?
- 1.4. Going further with PySpice
- 1.5. How can PySpice be used for learning ?
- 1.6. Which platforms are supported by PySpice ?
- 1.7. How to install PySpice ?
- 1.8. How does PySpice differ from simulator like LTspice ?
- 1.9. How can a non-GUI simulator be helpful ?
- 1.10. What are the benefits of PySpice over Ngspice / Xyce ?
- 1.11. How is PySpice interfaced with Ngspice ?
- 1.12. How is PySpice interfaced with Xyce ?
- 1.13. How is the netlist defined ?
- 1.14. Can I run Ngspice using interpreter commands ?
- 1.15. How are Spice libraries handled ?
- 1.16. How are units handled ?
- 1.17. Which version of Python is required ?
- 1.18. Which version of Ngspice is required ?
- 1.19. Which version of Xyce is required ?
- 1.20. Which flavours of SPICE are supported ?
- 1.21. What else should you be aware of ?
- 2. News
- 3. Roadmap
- 4. Installation
- 5. Simulators
- 6. User FAQ
- 6.1. How to get help or report an issue ?
- 6.2. How to typeset
u_μVin Python code ?
- 6.3. Is unit API well tested ?
- 6.4. Is ground node required ?
- 6.5. How to deal with SPICE parameters that clash with Python keywords ?
- 6.6. How to pass raw SPICE command ?
- 6.7. How to set the Ngspice library path ?
- 6.8. How to set the Ngspice path ?
- 6.9. How to set the simulator ?
- 6.10. Is Xyce 100% compatible with SPICE ?
- 7. Introduction to the Examples
- 8. Examples
- 8.1. Internal Device Parameters
- 8.2. Data Analysis
- 8.3. Diode
- 8.4. Electricity
- 8.5. Filter
- 8.6. Kirchhoff’s circuit laws
- 8.7. Ohm’s Law
- 8.8. Simulation using External Sources
- 8.9. NgSpice Interpreter
- 8.10. Operational Amplifier
- 8.11. Passive
- 8.12. Power Supplies
- 8.13. Relay
- 8.14. Resistor
- 8.15. Spice Netlist Parser Bootstrap Example
- 8.16. Kicad Netlist Parser Example
- 8.17. Switched Power Supplies
- 8.18. Transformer
- 8.19. Transistor
- 8.20. Transmission Lines
- 9. Example Wish List
- 10. Design Notes
- 11. API Documentation
- 12. Development & Community
- 13. How to Refer to PySpice ?
- 14. How to Help Further ?
- 15. PySpice on the Web
- 16. Related Projects
- 17. Bibliography