You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If solve_ac_powerflow! is called on a system and succeeds, we would expect that calling solve_ac_powerflow! a second time on that solved system would succeed and, ideally, produce the same answer. The system produced by
functioncreate_system()
sys =with_logger(() ->build_system(PSISystems, "RTS_GMLC_DA_sys"), SimpleLogger(Error)) # suppress loggingremove_component!(sys, only(get_components(TwoTerminalHVDCLine, sys))) # HVDC power flow not implemented yet
sys_mod =deepcopy(sys)
# Modify some things so reactive power redistribution succeedsfor (component_type, component_name, new_limits) in [
(RenewableDispatch, "113_PV_1", (min =-30.0, max =30.0))
(ThermalStandard, "115_STEAM_3", (min =-50.0, max =100.0))
(ThermalStandard, "207_CT_1", (min =-70.0, max =70.0))
(RenewableDispatch, "215_PV_1", (min =-40.0, max =40.0))
(ThermalStandard, "307_CT_1", (min =-70.0, max =70.0))
(ThermalStandard, "315_CT_8", (min =0.0, max =80.0))
]
set_reactive_power_limits!(get_component(component_type, sys, component_name), new_limits)
endreturn sys
end
succeeds the first time around, if you define
PowerSystems.get_reactive_power_limits(::RenewableNonDispatch) = (min =0.0, max =0.0)
as a quick fix for #39, but the second time there is an error:
The text was updated successfully, but these errors were encountered:
The problem is that in the RTS system, the Sync Condenser units have base_power = 0.0.
Here is a fix:
sync_cond_names = ["214_SYNC_COND_1", "314_SYNC_COND_1", "114_SYNC_COND_1"]
for name in sync_cond_names
g = get_component(StaticInjection, sys, name)
set_base_power!(g, 100.0)
end
If
solve_ac_powerflow!
is called on a system and succeeds, we would expect that callingsolve_ac_powerflow!
a second time on that solved system would succeed and, ideally, produce the same answer. The system produced bysucceeds the first time around, if you define
as a quick fix for #39, but the second time there is an error:
The text was updated successfully, but these errors were encountered: