Skip to main content

FPowerKit - A power distribution network calculation component

This is a package designed for power distribution network description and solving.

This package is affiliated to V2Sim, an open-aource microscopic V2G simulation platform in urban power and transportation network. If you are using the modified DistFlow model in this package, please cite the paper:

@ARTICLE{10970754,
  author={Qian, Tao and Fang, Mingyu and Hu, Qinran and Shao, Chengcheng and Zheng, Junyi},
  journal={IEEE Transactions on Smart Grid}, 
  title={V2Sim: An Open-Source Microscopic V2G Simulation Platform in Urban Power and Transportation Network}, 
  year={2025},
  volume={16},
  number={4},
  pages={3167-3178},
  keywords={Vehicle-to-grid;Partial discharges;Microscopy;Batteries;Planning;Discharges (electric);Optimization;Vehicle dynamics;Transportation;Roads;EV charging load simulation;microscopic EV behavior;vehicle-to-grid;charging station fault sensing},
  doi={10.1109/TSG.2025.3560976}}

Solvers available

There are multiple solvers can be used in FPowerKit.

  • Power flow calculation
    • Newton-Raphson: Classical method for power flow calculation. (GIL-free Compatible)
    • OpenDSS: Call external OpenDSS for distribution network solving.
  • Optimal power flow (OPF)
    • DistFlow: A classical OPF model for radial distribution network, with both quadratic and linear objective of minimal active generation cost.
    • LinDistFlow: A typical simplification of DistFlow.
    • LinDistFlow2: A GIL-free compatible version of LinDistFlow, only supporting linear objective.

There are also some abstract solvers for users to customize:

  • Combined Solver: Combine two solvers to accomplish both OPF and accuracte power flow calculation. For example, use LinDistFlow + OpenDSS to get the optimal generation and the accurate power flow. The only GIL-free compatible combination is LinDistFlow2 + Newton.
  • Manual Solver: Allow user to customize constraints

Installation options

If you want to use different features, install with different command:

Feature Command
Only grid description pip install fpowerkit
Y matrix & Newton pip install fpowerkit[newton]
OpenDSS pip install fpowerkit[dss]
DistFlow pip install fpowerkit[distflow]
LinDistFlow pip install fpowerkit[ldf]
All pip install fpowerkit[full]

Secondary development on this package requires all features.

Introduction

There are 3 modes for this package to work:

  • Optimal power flow (OPF): Use cvxpy to solve the optimal power flow and determine the output of the generators.

  • Power flow calculation: Use OpenDSS/Newton-Raphson method to solve the power flow.

  • Hybrid: Use OPF to determine the initial value, and then use OpenDSS/Newton-Raphson to perform accurate calculation.

Please visit https://gitee.com/fmy_xfk/fpowerkit to read the detailed introduction and the usage.

Metadata

Release files for fpowerkit 0.5.1

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

Source distribution (sdist)

Source distribution for fpowerkit 0.5.1
File Size Uploaded Provenance Actions
fpowerkit-0.5.1.tar.gz 56.1 kB Without provenance Details for fpowerkit-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fpowerkit 0.5.1
File Interpreter ABI Platform Actions
fpowerkit-0.5.1-py3-none-any.whl Python 3 none any Details for fpowerkit-0.5.1-py3-none-any.whl

Total release size: 121.7 kB

Release files / fpowerkit-0.5.1.tar.gz

Download URL fpowerkit-0.5.1.tar.gz
Size 56.1 kB
Tags Source
SHA-256 checksum
How to use checksums
676c9579212f94988c448bd3bb97387c46f91f3af8f36cad3b42dcf438f53dab
BLAKE2b-256 checksum
How to use checksums
e7b34db523136c11740c41bd21941ebd76fa01783427244a9ba609114777cc63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / fpowerkit-0.5.1-py3-none-any.whl

Download URL fpowerkit-0.5.1-py3-none-any.whl
Size 65.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edcf848f401f5a224774a7734b787e3e460e3a202c21a8a35e6f4b3932f1cd88
BLAKE2b-256 checksum
How to use checksums
8c4200306119fb110a1bf19fbae4cc2be6513c85fe558f0443a3c35e0545e8b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for fpowerkit 0.5.1

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.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files No provenance

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