Open aivanova5 opened 8 months ago
Looks like there are a couple things going on here. For the wind speed trigger, it appears to happen two hours later, so it is happening, just not on the right timestamp/timestep. Still poking around on that one.
For the 1366 metrics, that's because the only thing that triggers those are eventgen objects (and possibly indirectly through link_fault_on/link_fault_off in powerflow/link.cpp, but I think that's only for switch-specific objects). Normal outages don't trigger the metrics, hence no update. So "by current design" is basically the cause here, but there could be something added to the fault_check or the pole objects to trigger a metrics update if they fail (or have meters/triplex_meters/"customers" do it if they have zero voltage).
One idea for implementing this is to leverage what the switch_object
in powerflow does where it uses the add_event
call back to the eventgen
object - this could potentially reference to the pole
object, but have a functions exposed as create_fault
and fix_fault
(they may not do anything). That should replicate the fault-triggered and restoration behavior link objects have, but apply it to the pole
. That should calculates the 1366 metrics.
The other option is to have either the pole
or maybe the fault_check
object call the get_interrupted_count_secondary
and get_interrupted_count
functions inside the metrics
object (eventgen
calls it right now - the _sec
function is for momentary outages).
These may be some half-measure implementations, but they would at least leverage the existing code approaches. There's probably some unknowns in here that will cause issues, but these two would be some initial approaches to investigate.
Problem description
Running a pole failure analysis with the fault_check and reliability module does not update the SAIDI/CAIDI etc metrics as the failure occurs.
Steps to reproduce
gridlabd test_reliability.glm
test_pole.csv
does update to FAILED once critical wind threshold is hit, while IEEE 1366 are NOT updated.System information