ttinoco / PFNET

C library for modeling and analyzing electric power networks.
BSD 2-Clause "Simplified" License
12 stars 4 forks source link

improve regulation consistency #150

Open ttinoco opened 6 years ago

ttinoco commented 6 years ago

generators can regulate bus v mag branches can regulate P flow, Q flow and bus v mag shunts can regulate bus v mag and Q flow

right now gens, branches, shunts do not have consistent methods for checking this. Gens have "is_regulator", branches have "is_tap_changer_v", etc, and shunts have "is_switched_v". Gens "is_regulator" and shunt "is_switched_v" both return true if reg_bus != NULL, but branch "is_tap_changer_v" checks the branch type and hence setting/deleting reg_bus has no effect, making it a potential source of issues

propose: gen.is_v_regulator shunt.is_v_regulator, shunt.is_Q_regulator branch.is_v_regulator, branch.is_P_regulator, branch.is_Q_regulator branch types are deduced from is_v_regulator, is_P_regulator, is_Q_regulator shunt types are deduced from is_v_regulator, is_Q_regulator

@awig, any thoughts?

awig commented 6 years ago

Looks good to me. I would only propose considering xxx.is_X_regulating() instead of xxx.is_X_regulator().

Another thought for consideration would be if loads can be voltage (and maybe Q) regulating? I've heard of some large loads adding control devices on their end to reduce costs and on the distribution side DER voltage regulation, but maybe then you would just model it with equivalent components. Perhaps we can talk to Eknath and Anish about it next week. E.g.: http://www.njcleanenergy.com/files/file/Renewable_Programs/ACE%20Voltage%20Regulation%20-%20for%20NJBPU%2009212012.pdf

ttinoco commented 6 years ago

Cool. Thanks. I like the idea of adding regulation capabilities to other components such as loads and var generators.

On Wed, Jan 3, 2018 at 1:27 PM, Adam Wigington notifications@github.com wrote:

Looks good to me. I would only propose considering xxx.is_X_regulating() instead of xxx.is_X_regulator().

Another thought for consideration would be if loads can be voltage (and maybe Q) regulating? I've heard of some large loads adding control devices on their end to reduce costs and on the distribution side DER voltage regulation, but maybe then you would just model it with equivalent components. Perhaps we can talk to Eknath and Anish about it next week. E.g.: http://www.njcleanenergy.com/files/file/Renewable_Programs/ ACE%20Voltage%20Regulation%20-%20for%20NJBPU%2009212012.pdf

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ttinoco/PFNET/issues/150#issuecomment-355132055, or mute the thread https://github.com/notifications/unsubscribe-auth/AGFYfzr3npZl_GP0ffl29aItJhTSwecRks5tG_CogaJpZM4RQ8uA .