Skip to content
Nick Laws edited this page Nov 9, 2022 · 8 revisions

Summary of changes in this fork

Changes in nlaws-wip branch

CYME Reader

bug fixes

  • handle LoadModelID (was adding up multiple LoadModelIDs when it should only use one)
  • parse TRANSFORMER SETTING taps correctly
  • regulator nominal voltages were not scaled correctly
  • was setting all SOURCE EQUIVALENT nodes to the source bus (in other words was only handling a single feeder)
    • can now handle a substation with feeder(s) [needs validation with multiple feeders]
  • handle sections with single phase regulators correctly
    • for example, for the IEEE13 system the Cyme reader was chaining single phase regulators together that should be in parallel between nodes
  • set single phase transformer nominal voltage to LN (was LL)

improvements

  • improved logging, debug messages, doc strings, comments
  • handle load power factor <= 0
  • add parser for TRANSFORMER BYPHASE SETTING
  • add Winding.base_voltage field to distinguish the basis for per-unit calculations from actual voltage settings on transformers
  • use @staticmethods for static methods

tests

  • add test for load.nominal_voltage

OpenDSS Writer

bug fixes

  • PV kvarlimit -> kvarmax (name change in openDSS)
  • replace all special characters with underscore in object names written to .dss files (openDSS does not allow special characters in object names)
  • add PowerSource nominal voltage to Voltagebases
  • fix the nominal voltage for single phase voltage regulators (was LL, now LN)
  • fix the order of parameter settings for many objects (prevent segmentation faults in openDSS)
  • fix capcontrol definitions (was not accounting for the minimum required values and was using some values incorrectly)

improvements

  • improved logging, debug messages, doc strings, comments
  • add Winding.base_voltage to list of Voltagebases
  • implement unbalanced loads
    • was summing all phase loads and only modeling balanced loads
  • close the Lines.dss file after writing

tests

  • add test for writing unbalanced loads

General

  • system_structure_modifier now uses set_nominal_voltages_recur as recommended in the comments
    • remove broken, unused set_nominal_voltages method
    • add warning when changing node nominal_voltage
  • add pandas to install_requires (fixing bug when trying to run some functions with pip install all)