Skip to main content

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

solutil-0.1.0.tar.gz (141.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solutil-0.1.0-py3-none-any.whl (155.6 kB view details)

Uploaded Python 3

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

Hashes for solutil-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2c3be0b03d93dea760d0a359ae244d9c714d8364f7db46b77091a3f99437019
MD5 df63ba6f97154f129edd0405a4e081a7
BLAKE2b-256 d6fb1c9ada87b4906c784c77fb0a0db4276fbe371918aba6a2b86520d0327556

See more details on using hashes here.

Provenance

The following attestation bundles were made for solutil-0.1.0.tar.gz:

Publisher: ci-cd.yml on rzyu45/SolUtil

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for solutil-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0f33a8b969c4c9f93ba19aa583673f83f70437208318fa81f313b9b7f59540
MD5 e3a2e69b6b8668f9ca649bb7cc33556d
BLAKE2b-256 3ed984fa09630fa7e26afa290f16c790d9920c75b6d0c4be96d7aadeece7dd5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for solutil-0.1.0-py3-none-any.whl:

Publisher: ci-cd.yml on rzyu45/SolUtil

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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