pyeletrica


Namepyeletrica JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryFundamental tools for electrical engineers.
upload_time2023-07-05 18:36:18
maintainer
docs_urlNone
author
requires_python>=3.6
licenseMIT License Copyright (c) 2023 Hugo Everaldo Salvador Bezerra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords engineer electrical
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 .

```python
>>> 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
```python
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.
```python
In [1]: elt.plot3vectors([[10,0], [9,-110], [10.93,129.3]], ['Ia', 'Ib', 'Ic'])
```
![Plot](https://raw.githubusercontent.com/hugoesb/pyeletrica/main/plot_polar_ex.png)

Calculate base impedance and base current from apparent power and voltage.
```python
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.
```python
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]
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pyeletrica",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "engineer,electrical",
    "author": "",
    "author_email": "Hugo Everaldo Salvador Bezerra <hugoesb@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2d/b6/0c679dbb1494025f1833f6ae683423443ebd0e461856f7ed33ec3cef81c5/pyeletrica-0.0.3.tar.gz",
    "platform": null,
    "description": "# pyeletrica\r\n\r\nFundamental tools for electrical engineers.\r\n\r\n## Tools\r\nThis is the avaliable functions in `pyeletrica`:\r\n\r\n* sind\r\n* cosd\r\n* tand\r\n* polar\r\n* rect\r\n* divI\r\n* ZIbase\r\n* Zparallel\r\n* plot3vectors\r\n* plotmho\r\n* to_linecomp\r\n* to_symcomp\r\n* overcurrent_time\r\n\r\n## Help\r\nYou can use the documentation to understand how the function works .\r\n\r\n```python\r\n>>> import pyeletrica as elt\r\n>>> help(elt.to_symcomp)\r\nHelp on function to_symcomp in module pyeletrica:\r\n\r\nto_symcomp(Va, Vb, Vc, ndigits=3)\r\n    Calculate symmetric component vector from line vector.\r\n\r\n    parameters\r\n    ----------\r\n    Va: array-like\r\n        [module, angle (degrees)]\r\n    Vb: array-like\r\n        [module, angle (degrees)]\r\n    Vc: array-like\r\n        [module, angle (degrees)]\r\n    ndigits: int\r\n            Precision in decimal digits.\r\n\r\n    Returns\r\n    -------\r\n    output : array-like\r\n           (V1, V2, V0), each vector being in array format with\r\n           [module, angle in degrees], where V1 is positive sequence,\r\n           V2 negative sequence and V0 zero sequence.\r\n```\r\n\r\n## Example Usage\r\n--------------------------\r\nCalculate Symmetric Component from line quantities. Considering the currents Ia = 10\u22200\u00b0 amps, Ib = 9\u2220-110\u00b0 amps and Ic = 10.93\u2220129.3\u00b0 amps we get I1 = 9.945\u22206.407\u00b0 amps, I2 = 1.116\u22200\u00b0 amps and I0 = 0\u22200\u00b0 amps\r\n```python\r\nIn [1]:elt.to_symcomp([10,0],[9,-110],[10.93,129.3])\r\nOut[1]: ([9.945, 6.407], [1.116, 0], [0, 0])\r\n```\r\n\r\nPlot vectors.\r\n```python\r\nIn [1]: elt.plot3vectors([[10,0], [9,-110], [10.93,129.3]], ['Ia', 'Ib', 'Ic'])\r\n```\r\n![Plot](https://raw.githubusercontent.com/hugoesb/pyeletrica/main/plot_polar_ex.png)\r\n\r\nCalculate base impedance and base current from apparent power and voltage.\r\n```python\r\nIn [1]: Zbase, Ibase = elt.ZIbase(10e6, 69e3)\r\n\r\nIn [2]: Zbase\r\nOut[2]: 83.67395205646751\r\n\r\nIn [3]: Ibase\r\nOut[3]: 476.1\r\n```\r\n\r\nComplex numbers computation. You must perform complex number operations in Python using the rectangular form.\r\n```python\r\nIn [1]: v_sum = elt.rect([10,120]) + elt.rect([10,-120])\r\n\r\nIn [2]: v_sum\r\nOut[2]: (-10+0j)\r\n\r\nIn [3]: elt.polar(v_sum)\r\nOut[3]: [10.0, 180.0]\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Hugo Everaldo Salvador Bezerra  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Fundamental tools for electrical engineers.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/hugoesb/pyeletrica"
    },
    "split_keywords": [
        "engineer",
        "electrical"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a9cefd94e29b33cb711640c5b57387b2eeafffabcb6ed3ffe796834a855aad2",
                "md5": "1f09e2ba51e3a5afa73001328d768542",
                "sha256": "437c26567469ca5311dcb060b008279f0ea79ff8698bb4ebf07a76cc98027c91"
            },
            "downloads": -1,
            "filename": "pyeletrica-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1f09e2ba51e3a5afa73001328d768542",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6987,
            "upload_time": "2023-07-05T18:36:16",
            "upload_time_iso_8601": "2023-07-05T18:36:16.422969Z",
            "url": "https://files.pythonhosted.org/packages/6a/9c/efd94e29b33cb711640c5b57387b2eeafffabcb6ed3ffe796834a855aad2/pyeletrica-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2db60c679dbb1494025f1833f6ae683423443ebd0e461856f7ed33ec3cef81c5",
                "md5": "bd1a8c59c6b7b3174a2dc9ed93269b0a",
                "sha256": "58f87cf8003ce678190c668916340b5cd0f9e426feb8d85efc671f8791fcd9b1"
            },
            "downloads": -1,
            "filename": "pyeletrica-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "bd1a8c59c6b7b3174a2dc9ed93269b0a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6701,
            "upload_time": "2023-07-05T18:36:18",
            "upload_time_iso_8601": "2023-07-05T18:36:18.419503Z",
            "url": "https://files.pythonhosted.org/packages/2d/b6/0c679dbb1494025f1833f6ae683423443ebd0e461856f7ed33ec3cef81c5/pyeletrica-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-05 18:36:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hugoesb",
    "github_project": "pyeletrica",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyeletrica"
}
        
Elapsed time: 0.09733s