dpinney / omf

The Open Modeling Framework for smart grid cost-benefit analysis.
https://omf.coop
GNU General Public License v2.0
112 stars 60 forks source link

solarEngineering reg and cap charts: hide phases not actually on the reg/cap #305

Closed PoojaSan closed 9 years ago

PoojaSan commented 9 years ago

Problem: single phase regs like those in Olin Beckenham show 3 phases on cap and reg charts. This is due to Gridlab simulating taps that don't exist. :) We need to use the data in the feeder object to hide phases on the charts as needed.

jcfuller1 commented 9 years ago

Sounds like a model conversion problem --- GridLAB-D can be specified with a single-phase regulator. It does get unhappy about 3 parallel single-phase regulators (WindMil treats those as 3 objects, while GLD treats as a single).

dpinney commented 9 years ago

Relevant "single phase" config that came out of the conversion:

object regulator_configuration { Control OUTPUT_VOLTAGE; Type A; raise_taps 16; name VR7-CONFIG; band_center 126.0; current_transducer_ratio 700; tap_pos_B 1; power_transducer_ratio 60.0; time_delay 30.0; connect_type WYE_WYE; regulation 0.1; CT_phase B; lower_taps 16; control_level INDIVIDUAL; PT_phase B; band_width 2; };

PoojaSan commented 9 years ago

This issue is fixed. To fix this issue, another property - 'phases' to be recorded was added in feeder.py. Accessed this 'phases' value in solarEngineering.py. On HTML, series were added to the chart dynamically depending on the phases for each regulator and capacitor.