Package for simulation and design of control systems
Project description
PyControl
Python library for simulating control systems. Available on PyPi under the name pyControlToolbox. The backbone of the library is numpy (for matrix operations) and matplotlib (for plots).
unfortunately pyControl was already taken by project not even related to control systems
Functionalities
State space and transfer function model declaration
from PyControl.models import *
numerator = [1, 2, 3]
denominator = [4, 5, 6, 7]
tfSystem = tf(numerator, denominator)
A = [[2, 5.4],
[1.85, 3]]
B = [1.12, 3.14]
C = [1, 0]
D = [0]
ssSystem = ss(A, B, C, D)
print(tfSystem)
print(ssSystem)
Step and impulse response simulation
from PyControl.models import *
A = [[-1, 2],
[0, -1]]
B = [1, 2]
C = [1, 1]
D = [0]
ssSystem = ss(A, B, C, D)
step(ssSystem, plot=True)
Output:
from PyControl.models import *
A = [[-4, 0],
[1.5, -2.1]]
B = [1, 5]
C = [3.2, 1]
D = [0]
ssSystem = ss(A, B, C, D)
pulse(ssSystem, plot=True)
Output:
Phase portrait plotting
from PyControl.models import *
A = [[-1, 2],
[0, -1]]
B = [1, 2]
C = [1, 1]
D = [0]
ssSystem = ss(A, B, C, D)
phasePortrait(ssSystem, t=10)
Output:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyControlToolbox-0.2.tar.gz.
File metadata
- Download URL: pyControlToolbox-0.2.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c5cf0e8f0d3f2f2c4bb7601b9b32521a7ecf65c48edb84a4e90aae62496a25
|
|
| MD5 |
fd106deb369c1f811a55ecdb55ba5da8
|
|
| BLAKE2b-256 |
8f1359f209d1dbabba77cadd7b849faf5ee8916c42804a23562b1625c58855b8
|
File details
Details for the file pyControlToolbox-0.2-py3-none-any.whl.
File metadata
- Download URL: pyControlToolbox-0.2-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4cbca4194e9137f77cc2a65ae96d8620ea4f8cc552398ef955fd8ef5d5c2bef
|
|
| MD5 |
06bd7e109f746f539f40c0ddc4e5d519
|
|
| BLAKE2b-256 |
d070252d5b7a6356b112285e4074c25e35fa3e14cd02e7f3a4e6725b841c64df
|