nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#927 Silent failure in inverter, #2653

Open nikhilgupta10 opened 7 years ago

nikhilgupta10 commented 7 years ago

Odd issue. Inverter is mapped as phases \AS. It is attached to a meter (not triplex meter) with phases \AS. Powerflow sees this and just masks out the phase S, while the inverter tries to map to the voltage and current variable. Wham - pointer goes off the rails.

Question (to discuss with JF or FT): Should this be fixed in power flow (i.e., throw an error when someone tries to assign phase S to objects that can't support it) or in the inverter itself, by catching the errant pointer? My gut says both places.,

nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: "jcfuller":Adding sample file.,

"andyfisher":Well I have a question. Should inverter be setting it's own phases. I would argue that is uses it's parent's phases to determine the variables it maps to. Of course this won't fix this issue if you assign AS to a the parent meter. ,

"jcfuller":Yes (well sorta). What if you have a three-phase meter, but only want a single-phase inverter attached to it? (Or eventually, three independent single-phase inverters)?

Note, that right now, the inverter assumes the phases of the parent -- the phases information in the GLM is only used when the inverter is stand-alone.,