Skip to main content

CIMHub OpenDSS Library

Project description

Cimhub OpenDSS

Bidirectional converter between OpenDSS and CIM (IEC 61968/61970) using the cimhub_2026 profile.

Usage

DSS to CIM (Import)

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

from cimhub_opendss.importer.dss_to_cim import dss_to_cim

feeder = dss_to_cim("/path/to/Master.dss")

CIM to DSS (Export)

from cimhub_opendss.exporter.cim_to_dss import cim_to_dss

cim_to_dss(feeder, "/path/to/output_dir")
# Writes Master.dss + per-component .dss files

Roundtrip Validation

A full DSS -> CIM -> DSS roundtrip integration test is provided for the IEEE 13-bus feeder:

uv run python cimhub_opendss/tests/test_ieee13_roundtrip.py
# or via pytest:
uv run pytest cimhub_opendss/tests/test_ieee13_roundtrip.py -vs

The roundtrip parses the IEEE 13-bus DSS model, imports to CIM, exports back to DSS, solves both models with OpenDSS, and compares total power and bus voltages. Current accuracy is within 0.14% on active power (4.4 kW on a 3230 kW system).

Models

Mandatory

  • Power Transformer
  • Transformers
  • Regulator Controls
  • Line Code
  • Line
  • Capacitor
  • Load
  • PV System
  • Storage
  • Switch
  • Fuse
  • Recloser
  • Breaker
  • Generator
  • CNData (importer only)
  • TSData (importer only)
  • Line Geometry (importer only)
  • Line Spacing (importer only)
  • Wire Data
  • XY Curve

As Needed

  • GIC Transformer
  • GIC Line
  • Induction Machine
  • UPFC Device
  • Wind Generator
  • Capacitor Control
  • Inverter Control
  • Storage Control
  • Switch Control
  • UPFC Control

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_opendss-2.0.0a1.tar.gz (317.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_opendss-2.0.0a1-py3-none-any.whl (344.8 kB view details)

Uploaded Python 3

File details

Details for the file cimhub_opendss-2.0.0a1.tar.gz.

File metadata

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

File hashes

Hashes for cimhub_opendss-2.0.0a1.tar.gz
Algorithm Hash digest
SHA256 142a452fae3646a498c769a0e638f7345b10c61798bf24bcc860ebf5035adeb5
MD5 6ea7c39ae5517f30b32275fb4276516f
BLAKE2b-256 f42f7f1511eea479446d7e2d88acefe11990e3157f37538719fbd71e1afe75c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for cimhub_opendss-2.0.0a1.tar.gz:

Publisher: publish-cimhub-opendss.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_opendss-2.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for cimhub_opendss-2.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d75fbd9b7a37e463918e6caa3bbc15f931a3214f5d0ca60809df910532917c7f
MD5 3b5e5d7611e1d493c0ffd0e3f73fd484
BLAKE2b-256 444cd6b109f885b821fe4e02535b1d4ac2a838d284340a6b26f5223c6c0841e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cimhub_opendss-2.0.0a1-py3-none-any.whl:

Publisher: publish-cimhub-opendss.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