Fundamental tools for electrical engineers.
Project description
pyeletrica
Fundamental tools for electrical engineers.
Tools
This is the avaliable functions in pyeletrica:
- sind
- cosd
- tand
- polar
- rect
- divI
- ZIbase
- Zparallel
- plot3vectors
- plotmho
- to_linecomp
- to_symcomp
- overcurrent_time
Help
You can use the documentation to understand how the function works .
>>> import pyeletrica as elt
>>> help(elt.to_symcomp)
Help on function to_symcomp in module pyeletrica:
to_symcomp(Va, Vb, Vc, ndigits=3)
Calculate symmetric component vector from line vector.
parameters
----------
Va: array-like
[module, angle (degrees)]
Vb: array-like
[module, angle (degrees)]
Vc: array-like
[module, angle (degrees)]
ndigits: int
Precision in decimal digits.
Returns
-------
output : array-like
(V1, V2, V0), each vector being in array format with
[module, angle in degrees], where V1 is positive sequence,
V2 negative sequence and V0 zero sequence.
Example Usage
Calculate Symmetric Component from line quantities. Considering the currents Ia = 10∠0° amps, Ib = 9∠-110° amps and Ic = 10.93∠129.3° amps we get I1 = 9.945∠6.407° amps, I2 = 1.116∠0° amps and I0 = 0∠0° amps
In [1]:elt.to_symcomp([10,0],[9,-110],[10.93,129.3])
Out[1]: ([9.945, 6.407], [1.116, 0], [0, 0])
Plot vectors.
In [1]: elt.plot3vectors([[10,0], [9,-110], [10.93,129.3]], ['Ia', 'Ib', 'Ic'])
Calculate base impedance and base current from apparent power and voltage.
In [1]: Zbase, Ibase = elt.ZIbase(10e6, 69e3)
In [2]: Zbase
Out[2]: 83.67395205646751
In [3]: Ibase
Out[3]: 476.1
Complex numbers computation. You must perform complex number operations in Python using the rectangular form.
In [1]: v_sum = elt.rect([10,120]) + elt.rect([10,-120])
In [2]: v_sum
Out[2]: (-10+0j)
In [3]: elt.polar(v_sum)
Out[3]: [10.0, 180.0]
Project details
Release history Release notifications | RSS feed
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 pyeletrica-0.0.3.tar.gz.
File metadata
- Download URL: pyeletrica-0.0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58f87cf8003ce678190c668916340b5cd0f9e426feb8d85efc671f8791fcd9b1
|
|
| MD5 |
bd1a8c59c6b7b3174a2dc9ed93269b0a
|
|
| BLAKE2b-256 |
2db60c679dbb1494025f1833f6ae683423443ebd0e461856f7ed33ec3cef81c5
|
File details
Details for the file pyeletrica-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyeletrica-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
437c26567469ca5311dcb060b008279f0ea79ff8698bb4ebf07a76cc98027c91
|
|
| MD5 |
1f09e2ba51e3a5afa73001328d768542
|
|
| BLAKE2b-256 |
6a9cefd94e29b33cb711640c5b57387b2eeafffabcb6ed3ffe796834a855aad2
|