Skip to main content

Package for simulation and design of control systems

Project description

PyControl

Python library for simulating and designing 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:
Step response

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:
Pulse response

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:
phase portrait

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

pyControlToolbox-0.2.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyControlToolbox-0.2.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file pyControlToolbox-0.2.1.tar.gz.

File metadata

  • Download URL: pyControlToolbox-0.2.1.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

Hashes for pyControlToolbox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 04d893182d20c26b739b7436701402d8987d658c6e4639149fe0a2bf829d6fd0
MD5 3462c342f975b73b2468c05f69c0f993
BLAKE2b-256 25dfd4589d9e67d22ebdf4a20d1c1a9a4d357fc285dab8241f6385cb160992a5

See more details on using hashes here.

File details

Details for the file pyControlToolbox-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pyControlToolbox-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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

Hashes for pyControlToolbox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f50327d5727e305263c3fdce1182dd5e6c0faf4a7b50b650927d31111011c03
MD5 74a3cf904c83cd4d3b6a5623d4e0abca
BLAKE2b-256 4c5f1b6b6102d876aa3c9917d7296bb61f48bc7e9a300505e3016096e93b2e7b

See more details on using hashes here.

Supported by

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