Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
  • Loading branch information
p-arvy committed Jul 10, 2024
1 parent dbda9e5 commit 63c3c65
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,12 @@ private static double calculatePower(DcLoadFlowContext loadFlowContext, LfBranch
}

/**
* Calculate sensitivity values for a post-contingency state.
* In case of connectivity break, a pre-computation has been done to get a first version of the new participating
* elements, that can be overridden in this method.
* TODO Pierre: better description here
* Calculate sensitivity values for a contingency.
* In case of connectivity break, a pre-computation has been done in {@link #processContingenciesBreakingConnectivity}
* to get a first version of the new participating elements, that can be overridden in this method, and to indicate
* if the factorsStates should be overridden or not in this method.
* If connectivity, a generator, a load or a phase tap changer is lost due to the contingency,
* the flowStates are overridden.
*/
private void calculateSensitivityValuesForAContingency(DcLoadFlowContext loadFlowContext, OpenLoadFlowParameters lfParametersExt, SensitivityFactorHolder<DcVariableType, DcEquationType> validFactorHolder,
SensitivityFactorGroupList<DcVariableType, DcEquationType> factorGroups, DenseMatrix factorStates, DenseMatrix contingenciesStates, DenseMatrix flowStates,
Expand Down Expand Up @@ -425,7 +427,9 @@ private void calculateSensitivityValuesForAContingency(DcLoadFlowContext loadFlo
}

/**
* TODO Pierre: add a description here
* Calculate sensitivity values for a contingency breaking connectivity.
* It determines if the right hand side has been changed due to the contingency, e.g. when the slack distribution is
* impacted by the disabled buses. If so, factorsStates will be overridden in {@link #calculateSensitivityValuesForAContingency}.

This comment has been minimized.

Copy link
@annetill

annetill Jul 10, 2024

Member

or GLSK

*/
private void processContingenciesBreakingConnectivity(ConnectivityBreakAnalysis.ConnectivityAnalysisResult connectivityAnalysisResult, DcLoadFlowContext loadFlowContext,
LoadFlowParameters lfParameters, OpenLoadFlowParameters lfParametersExt,
Expand Down

0 comments on commit 63c3c65

Please sign in to comment.