Skip to main content

CIMHub DistOPF Library

Project description

cimhub_distopf

Converter between DistOPF (Distributed Optimal Power Flow) and CIM (IEC 61968/61970).

DistOPF is a distribution-level OPF solver that uses a linearized power flow formulation. This package imports DistOPF case data into CIM and exports CIM models to the DistOPF format.

Usage

DistOPF to CIM (Import)

import os
os.environ['CIMG_USE_UNITS'] = 'TRUE'
os.environ['CIMG_CIM_PROFILE'] = 'cimhub_2026'

from cimhub_distopf.importer.distopf_to_cim import distopf_to_cim

network = distopf_to_cim("/path/to/case/")

CIM to DistOPF (Export)

from cimhub_distopf.exporter.cim_to_distopf import cim_to_distopf

cim_to_distopf(network, "/path/to/output/")

Architecture

LinkML YAML  →  distopf_schema.py  →  GraphModel  →  DistopfReader / DistopfWriter
                                            ↕
                                  DistopfImporter / DistopfExporter

Running Tests

uv run pytest cimhub_distopf/tests/ -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cimhub_distopf-2.0.0a0.tar.gz (53.9 kB view details)

Uploaded Source

Built Distribution

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

cimhub_distopf-2.0.0a0-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

Details for the file cimhub_distopf-2.0.0a0.tar.gz.

File metadata

  • Download URL: cimhub_distopf-2.0.0a0.tar.gz
  • Upload date:
  • Size: 53.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cimhub_distopf-2.0.0a0.tar.gz
Algorithm Hash digest
SHA256 3d4ad36fe48293950762a5c49fac265998fd1630797bfef1b11dd1e34e4b77b0
MD5 dad3c2f27638713c5d9a67dcdaccc9a9
BLAKE2b-256 a627cbc08bf7a1e53941a58bd4668328019d2404117cbf309723fd77a8fe257d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cimhub_distopf-2.0.0a0.tar.gz:

Publisher: publish-cimhub-distopf.yml on PNNL-CIM-Tools/CIMHub

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

File details

Details for the file cimhub_distopf-2.0.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for cimhub_distopf-2.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ebfbfae863f20c81adeb763cb217273c913dc495747ff62036d9b4943487e66
MD5 58277e04ddcf2eea35be060a9df5b211
BLAKE2b-256 e6cde85c0470824c454f645d64c702b3f23fefba6861516be9df9a18197d5404

See more details on using hashes here.

Provenance

The following attestation bundles were made for cimhub_distopf-2.0.0a0-py3-none-any.whl:

Publisher: publish-cimhub-distopf.yml on PNNL-CIM-Tools/CIMHub

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page