Skip to main content

A small example package

Project description

circuitsim

A simple CLI electronic circuit simulator for AC and DC linear circuits.

Installation

pip install circuitsim_janq0

Usage

Run circuitsim using the python -m circuitsim_janq0 command. Read about all the command line options using the -h flag.

The netlist file should contain a newline-separated list of components. Each line should contain a space-separated list of keywords. The first keyword always denotes the type of component and the remaining keywords are the arguments to that component. Below are all the supported components with their arguments. If an argument is enclosed in parenthesis, it means that it's optional.

U voltage pos_node neg_node branch
I current pos_node neg_node (branch)
R resistance pos_node neg_node (branch)
L inductance pos_node neg_node (branch)
C capacitance pos_node neg_node (branch)

For example, here's the netlist of a series RLC circuit ustlc.txt with a voltage source

U 10    A 0 I
R 200   A B
L 100   B C
C 10n   C 0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circuitsim_janq0-0.0.4.tar.gz (8.8 MB view hashes)

Uploaded Source

Built Distribution

circuitsim_janq0-0.0.4-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page