Lcapy: symbolic linear circuit analysis with Python

Lcapy is an open-source Python package for solving linear circuits symbolically. It uses a superposition of DC analysis, AC (phasor) analysis, transient (Laplace) analysis, and noise analysis. Expressions are evaluated using the computer algebra system SymPy. Lcapy can model circuits comprised of co...

Full description

Bibliographic Details
Main Author: Michael Hayes
Format: Article
Language:English
Published: PeerJ Inc. 2022-02-01
Series:PeerJ Computer Science
Subjects:
Online Access:https://peerj.com/articles/cs-875.pdf
_version_ 1818298116721344512
author Michael Hayes
author_facet Michael Hayes
author_sort Michael Hayes
collection DOAJ
description Lcapy is an open-source Python package for solving linear circuits symbolically. It uses a superposition of DC analysis, AC (phasor) analysis, transient (Laplace) analysis, and noise analysis. Expressions are evaluated using the computer algebra system SymPy. Lcapy can model circuits comprised of combinations of one-port and two-port networks or circuits specified using a netlist with a Spice-like notation. Lcapy can present the system of equations produced from nodal analysis, modified nodal analysis, loop analysis, and state-space analysis. Expressions can be formatted into many representations, parameterized, and transformed to other domains. Dimensional analysis is performed to reduce user errors and to present results with units. Both continuous and discrete signals are supported. Lcapy produces high-quality output. Textbook quality schematics in a number of different formats can be generated from netlists and customized for different conventions. Expressions can be formatted into LaTeX format for inclusion into a document or numerically evaluated and plotted. An overview of the features and capabilities of Lcapy is presented, along with implementation details and performance considerations.
first_indexed 2024-12-13T04:30:13Z
format Article
id doaj.art-1935188eafe24a0eb432dd00e11b4f7d
institution Directory Open Access Journal
issn 2376-5992
language English
last_indexed 2024-12-13T04:30:13Z
publishDate 2022-02-01
publisher PeerJ Inc.
record_format Article
series PeerJ Computer Science
spelling doaj.art-1935188eafe24a0eb432dd00e11b4f7d2022-12-21T23:59:33ZengPeerJ Inc.PeerJ Computer Science2376-59922022-02-018e87510.7717/peerj-cs.875Lcapy: symbolic linear circuit analysis with PythonMichael HayesLcapy is an open-source Python package for solving linear circuits symbolically. It uses a superposition of DC analysis, AC (phasor) analysis, transient (Laplace) analysis, and noise analysis. Expressions are evaluated using the computer algebra system SymPy. Lcapy can model circuits comprised of combinations of one-port and two-port networks or circuits specified using a netlist with a Spice-like notation. Lcapy can present the system of equations produced from nodal analysis, modified nodal analysis, loop analysis, and state-space analysis. Expressions can be formatted into many representations, parameterized, and transformed to other domains. Dimensional analysis is performed to reduce user errors and to present results with units. Both continuous and discrete signals are supported. Lcapy produces high-quality output. Textbook quality schematics in a number of different formats can be generated from netlists and customized for different conventions. Expressions can be formatted into LaTeX format for inclusion into a document or numerically evaluated and plotted. An overview of the features and capabilities of Lcapy is presented, along with implementation details and performance considerations.https://peerj.com/articles/cs-875.pdfLinear circuit analysisSymbolic computationPython
spellingShingle Michael Hayes
Lcapy: symbolic linear circuit analysis with Python
PeerJ Computer Science
Linear circuit analysis
Symbolic computation
Python
title Lcapy: symbolic linear circuit analysis with Python
title_full Lcapy: symbolic linear circuit analysis with Python
title_fullStr Lcapy: symbolic linear circuit analysis with Python
title_full_unstemmed Lcapy: symbolic linear circuit analysis with Python
title_short Lcapy: symbolic linear circuit analysis with Python
title_sort lcapy symbolic linear circuit analysis with python
topic Linear circuit analysis
Symbolic computation
Python
url https://peerj.com/articles/cs-875.pdf
work_keys_str_mv AT michaelhayes lcapysymboliclinearcircuitanalysiswithpython