Python & Jupyter – Electrical Circuit Diagram Generation – lcapy

Introduction

Lcapy is a Python package for linear circuit analysis. It will only solve linear, time invariant networks. In other words, networks comprised of basic circuit components (R, L, C, etc.) that do not vary with time.

Networks and circuits can be described using netlists or combinations of network elements. These can be drawn semi-automatically.

Lcapy cannot directly analyse non-linear devices such as diodes or transistors although it does support simple opamps without saturation. Nevertheless, it can draw them!

Lcapy uses SymPy (symbolic Python) for its values and expressions and thus the circuit analysis can be performed symbolically. See http://docs.sympy.org/latest/tutorial/index.html for the SymPy tutorial.


[iframe width=»600″ height=»371″ seamless frameborder=»0″ scrolling=»no» src=»https://docs.google.com/spreadsheets/d/1fwnl5hvkkwz-YDZrogyGnx274BqmozGlIeXyjJ2TKmE/pubchart?oid=462316012&format=interactive»]