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
Built Distribution
Hashes for circuitsim_janq0-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee56ab2a839abdd500f3f0087beaaf5c4ca277fdd639f708602f422c07d0d06 |
|
MD5 | d4a45bfec0f8280d4ab407e00d0bca37 |
|
BLAKE2b-256 | 177bf52c2b23bd64a54ed0e39848eddd8a0a3f41e39573e3e0ad870c14751053 |