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 - Contingency definition is created during the import process:
convert_file - Manually: Create a converter from you Contingency list to the
Nminus1Definition