GRIDAPPSD / CIMHub

16 stars 10 forks source link

cyme2dss omitting source objects #40

Closed AAndersn closed 12 months ago

AAndersn commented 12 months ago

Energy source objects are not created by Cyme2DSS script

From the Source class in cyme, need to create an opendss vsource object

<DeviceNumber>source_name</DeviceNumber> should map to opendss vsource.source_name

<SourceNodeID> maps to Bus1

<KVLL>13.200000</KVLL> maps to basekv=13.2

<DesiredVoltage>13.600000</DesiredVoltage> maps to pu = 1.030

If <ImpedanceUnit>Ohms</ImpedanceUnit> is not ohms, need to convert to ohms for opendss

<PositiveSequenceResistance> maps to r1

<PositiveSequenceReactance> maps to x1

<ZeroSequenceResistance> maps to r0

<ZeroSequenceReactance> maps to x0

<NegativeSequenceResistance> has no dss equivalent

<NegativeSequenceReactance> has no equilivalent

<OperatingAngle1> maps to angle

JennyAppiah commented 12 months ago

This has now been fixed. The issue was that the substation file was being written before DSS feeders had been created. I only re-arranged the code to ensure that we write the substation file after all feeders had been processed.