Modules
Lcapy is a Python library for symbolic linear circuit and signal analysis.
Lcapy can analyse circuits described with netlists using modified nodal analysis. See lcapy.netlist
Alternatively, Lcapy can analyse networks and circuits formed by combining one, two, and three port networks. See lcapy.oneport
For detailed documentation see http://lcapy.readthedocs.io/en/latest
Copyright 2014–2022 Michael Hayes, UCECE
- lcapy.show_version()
Show versions of Lcapy, SymPy, NumPy, MatplotLib, SciPy, and Python.
Circuit analysis
This module provides circuit analysis using modified nodal analysis (MNA). |
|
This module provides the Netlist class. |
|
This module provides the NetfileMixin class. |
|
This module implements modified nodal analysis (MNA). |
|
This module defines the StateSpace class for representing a linear continuous time-invariant system as a state-space model. |
|
This module performs loop analysis. |
|
This module performs nodal analysis. |
|
This module supports simple linear one-port networks based on the following ideal components: |
|
|
Create Lcapy expression from arg. |
|
Create LaplaceDomainExpression object. |
|
Create Lcapy ConstantDomainExpression object. |
|
Create TimeDomainExpression object. |
|
Create FourierDomainExpression object. |
|
Create DiscreteTimeDomainExpression object. |
|
Create DiscreteFourierDomainExpression object. |
|
Create ZDomainExpression object. |
This module handles sequences. |
|
|
Create AngularFourierDomainExpression object. |
This module provides the NoiseExpression class to represent noise expressions. |
|
|
Create phasor. |
|
Create Lcapy Matrix from a SymPy Matrix. |
This module implements the LaplaceDomainMatrix class for a matrix of Laplace-domain expressions. |
|
This module implements the TimeDomainMatrix class for a matrix of time-domain expressions. |
|
This module provides the Network sub class for OnePort and TwoPort classes. |
|
|
Create a voltage object from the specified arg. |
|
Create a current object from the specified arg. |
This module provides the SuperpositionDomainExpression class. |
|
|
Create an admittance object from the specified arg. |
|
Create an impedance object from the specified arg. |
This module wraps SymPy functions and provides a few others. |
|
|
Create Lcapy symbols from whitespace or comma delimited string of symbol names. |
This module defines the components for modified nodal analysis. |
|
This module provides support for Laplace transforms. |
|
This module provides support for Fourier transforms. |
|
This module provides support for z transforms. |
|
This module performs transformations between domains. |
|
This module performs plotting using matplotlib. |
|
This module provides the CausalChecker, ACChecker, and DCChecker classes as used by the is_causal, is_ac, and is_dc functions. |
|
This module provides support for rational functions. |
Schematics
This module performs schematic drawing using circuitikz from a netlist. |
|
This module defines and draws the schematic components using circuitikz. |
|
This module provides classes for schematic layout. |
|
This module provides miscellaneous support for schematic drawing. |
General
This module contains configuration information. |
|
This module defines a grammar for SPICE-like netlists. |
|
This module performs parsing of SPICE-like netlists. |
|
This module provides printing support. |
|
This module provides the Context class that maintains the context for a Circuit. |
|
This maintains Lcapy's state, such as the defined symbols, and behaviour. |
|
This module wraps system dependent programs for pdf generation, etc. |
|
This module provides the Units class for simplification of units. |
|
This module provides common utility functions. |