Solverz Utilities
This lib provides the simulation routines for integrated energy systems, including electric power, natural gas and heat.
A simple usage of this library can be
from SolUtil import GasFlow
gf = GasFlow('belgium.xlsx')
gf.run()
print(gf.Pi) # get the node Pressure results
print(gf.f) # get the pipe mass-flow results
The required .xlsx data format can be found in SolUtil/energyflow/test directory for reference.
Installation
pip install SolUtil
Requirements
This package requires the ipopt optimization solver.
On windows, download the latest release here. Then add the bin
directory to the system path. Make sure that you can call ipopt in your terminal.
On macos, use brew install ipopt to perform the installation.
MATPOWER case files
The power flow also reads a MATPOWER case file directly:
from SolUtil import PowerFlow
pf = PowerFlow('case118.m')
pf.run()
print(pf.Vm, pf.Va) # get the bus voltage magnitudes and angles
A .m file is parsed with matpowercaseframes and prepared as MATPOWER runpf prepares it: generators out of service are dropped, the generators in service at one bus are summed, a PV or reference bus without a generator in service becomes a PQ bus, and every generator bus starts at its voltage setpoint. For large cases it is much faster to read than the .xlsx format.
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 solutil-0.1.0.tar.gz.
File metadata
- Download URL: solutil-0.1.0.tar.gz
- Upload date:
- Size: 141.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2c3be0b03d93dea760d0a359ae244d9c714d8364f7db46b77091a3f99437019
|
|
| MD5 |
df63ba6f97154f129edd0405a4e081a7
|
|
| BLAKE2b-256 |
d6fb1c9ada87b4906c784c77fb0a0db4276fbe371918aba6a2b86520d0327556
|
Provenance
The following attestation bundles were made for solutil-0.1.0.tar.gz:
Publisher:
ci-cd.yml on rzyu45/SolUtil
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
solutil-0.1.0.tar.gz -
Subject digest:
f2c3be0b03d93dea760d0a359ae244d9c714d8364f7db46b77091a3f99437019 - Sigstore transparency entry: 2802148710
- Sigstore integration time:
-
Permalink:
rzyu45/SolUtil@cfe3f09a8ae9fa366d819de8ba713afac4389472 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/rzyu45
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@cfe3f09a8ae9fa366d819de8ba713afac4389472 -
Trigger Event:
push
-
Statement type:
File details
Details for the file solutil-0.1.0-py3-none-any.whl.
File metadata
- Download URL: solutil-0.1.0-py3-none-any.whl
- Upload date:
- Size: 155.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e0f33a8b969c4c9f93ba19aa583673f83f70437208318fa81f313b9b7f59540
|
|
| MD5 |
e3a2e69b6b8668f9ca649bb7cc33556d
|
|
| BLAKE2b-256 |
3ed984fa09630fa7e26afa290f16c790d9920c75b6d0c4be96d7aadeece7dd5e
|
Provenance
The following attestation bundles were made for solutil-0.1.0-py3-none-any.whl:
Publisher:
ci-cd.yml on rzyu45/SolUtil
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
solutil-0.1.0-py3-none-any.whl -
Subject digest:
1e0f33a8b969c4c9f93ba19aa583673f83f70437208318fa81f313b9b7f59540 - Sigstore transparency entry: 2802148770
- Sigstore integration time:
-
Permalink:
rzyu45/SolUtil@cfe3f09a8ae9fa366d819de8ba713afac4389472 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/rzyu45
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@cfe3f09a8ae9fa366d819de8ba713afac4389472 -
Trigger Event:
push
-
Statement type: