Overview
The Short Circuit module performs short-circuit analysis to compute fault currents and voltages when faults occur in the network. It supports bus faults and branch faults with configurable fault impedances.Creating Short Circuit Analysis
create_analysis
Create a short-circuit analysis instance.A new short-circuit analysis instance
ShortCircuitAnalysis Class
TheShortCircuitAnalysis class allows you to configure and run short-circuit analysis on a network.
Defining Faults
set_faults
Define faults to be analyzed in the short-circuit simulation.Faults defined as a DataFrame with columns: id, element_id, r, x, proportional_location, fault_type
Alternatively, define faults as keyword arguments. All arrays must have the same length:
- id: Fault identifier
- element_id: ID of the bus or branch on which the fault occurs
- r: Fault resistance to ground in Ohm (optional)
- x: Fault reactance to ground in Ohm (optional)
- proportional_location: Location of fault on branch as percentage (0.0-1.0, for branch faults only)
- fault_type: Either ‘BUS_FAULT’ or ‘BRANCH_FAULT’
set_bus_fault
Convenience method to define a bus fault.Fault identifier
ID of the bus on which the fault occurs
Fault resistance to ground in Ohm
Fault reactance to ground in Ohm
set_branch_fault
Convenience method to define a branch fault.Fault identifier
ID of the branch (line or transformer) on which the fault occurs
Fault resistance to ground in Ohm
Fault reactance to ground in Ohm
Location of the fault on the branch as a percentage (0.0 = side 1, 1.0 = side 2)
Running Analysis
run
Run the short-circuit analysis.Network on which to run the short-circuit analysis
Short-circuit analysis parameters
Short-circuit analysis implementation provider. If empty, uses default
Reporter for execution reports
Short-circuit analysis result containing fault currents and voltages
Parameters
Parameters Class
Configure short-circuit analysis execution.Whether to calculate the contributions of each feeder to the short-circuit current at the fault node
Whether to return limit violations. When True, returns buses where the short-circuit current exceeds limits
Whether to calculate the voltage profile on every node of the network
Threshold for filtering voltage results. Only nodes with voltage drop greater than this threshold are retained
Type of short-circuit study:
SUB_TRANSIENT: Sub-transient periodTRANSIENT: Transient periodSTEADY_STATE: Steady-state
Whether currents and voltages should be detailed with magnitude and angle on each phase (symmetrical components)
How the computation is initialized:
NOMINAL: Use nominal voltagesCONFIGURED: Use configured voltage profilePREVIOUS_VALUE: Use previous calculated values
Provider-specific parameters as key-value pairs
Results
ShortCircuitAnalysisResult
Contains the results of a short-circuit analysis.DataFrame with short-circuit results for each fault. Columns include:
- fault_id: Fault identifier
- current: Short-circuit current magnitude (in A)
- voltage_magnitude: Voltage magnitude at fault location (in kV)
- short_circuit_power: Short-circuit power (in MVA) And more depending on parameters…
DataFrame with contributions from each feeder (if with_feeder_result=True). Columns include:
- fault_id: Fault identifier
- connector_id: ID of the connecting element
- current: Current contribution magnitude (in A)
DataFrame with limit violations (if with_limit_violations=True)
DataFrame with voltage profile (if with_voltage_result=True)
DataFrame with three-phase results (if with_fortescue_result=True)
Provider Management
get_provider_names
Get the list of available short-circuit analysis providers.List of available provider names
get_default_provider
Get the current default short-circuit analysis provider.Name of the default provider
set_default_provider
Set the default short-circuit analysis provider.Name of the provider to set as default
get_provider_parameters_names
Get the list of provider-specific parameter names.Provider name. If None, uses default provider
List of parameter names
Enumerations
ShortCircuitStudyType
Type of short-circuit study:SUB_TRANSIENT: Sub-transient period (first few cycles after fault)TRANSIENT: Transient periodSTEADY_STATE: Steady-state short-circuit conditions
InitialVoltageProfileMode
How the voltage profile is initialized:NOMINAL: Use nominal voltages for all busesCONFIGURED: Use configured voltage profile from extensionsPREVIOUS_VALUE: Use previously calculated voltage values (e.g., from load flow)
Notes
The current implementation supports three-phase bus faults where the fault resistance and reactance, when specified, are connected to ground in series.
For accurate results, ensure that the network includes the necessary short-circuit data such as generator transient/sub-transient reactances. These may need to be configured via network extensions.
See Also
- Network - Loading and creating networks
- Load Flow - Power flow calculations
- Security Analysis - N-1 security analysis
