NREL / disco

DISCO
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Sum the real power components of the OpenDSS returned value during the simulation #65

Closed daniel-thom closed 2 years ago

daniel-thom commented 2 years ago

This fixes an issue in the CBA simulations. Summing the power values for multiple loads failed because individual loads had different numbers of phases. This resulted in different dimensions of data that cannot be summed. This fix tells PyDSS to extract only what we need from each return.

load_p1ulv2030 residential [(1.9833929288698884+1.0942720137955757j), (1.9833565251249223+1.0942652292782005j), (1.9833729224979422+1.0942273756092222j), 0j]
load_p1ulv2031_1 residential [(1.6879241782065109+0.36966431681390854j), 0j]