Skip to main content

pySEP

PyPI PyPI - Python Version PyPI - License PyPI - Status PyPI - Downloads GitHub followers


A ideia principal deste pacote é fornecer, em livre licença, uma série de ferramentas capazes de modelar e simular Sistemas Elétricos de Potência.

Para isso, a presente versão possibilita a seguinte operação:

  • Cálculo do Fluxo de Potência pelo método de Newton-Raphson de um sistema com n barras.

Uma série de novas ferramentas serão disponibilizadas em novas versões, tais como:

  • Cálculo de curto-circuitos entre barras.
  • Cálculo de curto-circuito em linhas.
  • Cálculos relacionados a Sistemas de Transmissão.
  • Cálculos relacionados a Sistemas de Distribuição.

Entre outras ferramentas.

This package, pySEP, is a package created to assist in the Electric Power Systems learning, modelling and simulating.

The application of the Newton-Raphson method for the calculation of power flow in electrical power systems is an example of how it works.


Youtube

Uma playlist foi criada no YouTube para mostrar a ideia básica de modelagem do código do fluxo de potência pelo método de Newton-Raphson. Está disponível no link a seguir.

A playlist was created to show how the code of the Power Flow by Newton-Raphson method was created. It is available in:

enter image description here

FLUXO DE POTÊNCIA POR NEWTON-RAPHSON EM PYTHON


Getting Started

Para a correta execução deste pacote, recomenda-se que seja utilizada uma versão 3.x do Python.

For the correct working of this library, it is only required that, on the machine where this package is installed, the Python interpreter is also installed, with versions 3.x onwards being recommended.

Installing

A step-by-step guide on how to install this package is described below.

First, using the python pip, just type the following command.

pip install pySEP  

After that, the package is installed where you configured the installation of it. Therefore, to use the circuit modeling tool to perform the calculations, write this command in the program in which the calculation will be created.

import pySEP 

For example

import pySEP as psp  
  
c = psp.circuit_cmd(sBase=100e6)  
  
c.addBarra(1, 1, 1.05, 0, 0 + 0 * 1j, 0 + 0 * 1j)  
c.addBarra(2, 2, 1.00, 0, 256.6e6 + 110.2e6 * 1j, 0 + 0 * 1j)  
c.addBarra(3, 2, 1.00, 0, 138.6e6 + 45.2e6 * 1j, 0 + 0 * 1j)  
  
c.addLinha(1, 2, z_ij=0.02 + 0.04j)  
c.addLinha(1, 3, z_ij=0.01 + 0.03j)  
c.addLinha(2, 3, z_ij=0.0125 + 0.025j)  
  
c.calcular_fluxo_pot_nr(erro=0.01, show=False)  
  
c.relatorio(show_tensoes=True, show_correntes=True, show_fluxo=True)  
  
c.perdas()  
  
c.plot_conv(tensao=True, ang=True)  

The above example is enough to create a circuit with 3 buses and 4 lines, to calculate the load flow (power flow by newton-raphson method) in it and to show the results with a graphical description.

Interface Gráfica do pySEP -- GUI of the pySEP

import pySEP 

pySEP.run_gui()  

enter image description here

The same before example can be executed with the GUI of the pySEP. This GUI was developed with theoretical graph.

enter image description here

Built With

All the code in this package uses only three external packages. These are:

  • NumPy - NumPy is the fundamental package for scientific computing with Python.
  • MatPlotLib - Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
  • NetworkX - NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

All others libraries used in this code are Python builtins.

Versioning

All versions of this package are "committed" and are available on my GitHub

Author

License

This project is licensed under the Apache License - see the LICENSE.txt file for details

Release files for pySEP 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pySEP 1.0.11
File Size Uploaded Provenance Actions
pySEP-1.0.11.tar.gz 21.0 kB Without provenance Details for pySEP-1.0.11.tar.gz

Release files / pySEP-1.0.11.tar.gz

Download URL pySEP-1.0.11.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b0723b2fa5eb0d4381b185d66e2723f46711a1df073c3aab6d56257c4dbd92d3
BLAKE2b-256 checksum
How to use checksums
643529a44b1e42412bf847d7228c6e92d7e07647f7b489194948c45e806bd622
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.5

Security for pySEP 1.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page