giaccone / SpicePy

Circuit simulator written in python
MIT License
88 stars 20 forks source link

Interest in modeling transistors #2

Open VallesMarinerisExplorer opened 2 years ago

VallesMarinerisExplorer commented 2 years ago

Hi all,

This is a cool library and I hope to use it more in the future. I noticed that the library Skidl is able to quickly generate netlists. https://github.com/devbisme/skidl.

What would it take to add things like transistors and op amps to this library? Would be interested in helping out.

Thanks! Good work.

giaccone commented 2 years ago

Hi @VallesMarinerisExplorer , sorry for the delay.

Before addressing your question I would like to summarize what is capable to handle SpicePy at the moment:

This project was born with a main aim, help students during the path necessary to learn basic circuit theory. For this reason the capabilities of SpicePy are limited.

In order to include transistors, that are non-linear components, a model of the transistor should be included (bjt, mosfet, etc...) and also a non-linear solver should be implemented. In order to include operational amplifiers, in the case we are speaking of ideal operational amplifiers, the model should be included and maybe this could be enough. However, at the moment I have no time to include new components. Currently, the development is limited to bug fix and/or small improvements when the are strictly necessary.

The current version of the code is very stable and reliable. It is widely tested by my students. They use it through a Telegram bot (see here https://giaccone.github.io/SpicePyBotStat/).