Contingency Analysis#
The Contingency Analysis package provides the implementation to the Load-flow-Service interface. This enables a backend independent Contingency definition. Additional it offers either Polars or Pandas DataFrames as a return value.
Usage:#
- Run the N-1 analysis with the function
get_ac_loadflow_results; depending on the network you provide, it will execute the contingency definition in eitherpandapowerorpypowsybl. - Compute metrics (polars only) for the results using
compute_metrics - Direct entrypoint for PyPowSyBl:
run_contingency_analysis_powsybl - Direct entrypoint for Pandapower:
run_contingency_analysis_pandapower - The contingency definition used downstream is first created during
convert_fileand then refreshed duringload_gridafter preprocessing filters have been applied. - Manually: Create a converter from you Contingency list to the
Nminus1Definition