Skip to content

Commit 93a4eb3

Browse files
authored
Merge pull request #229 from Baltic-RCC/mr-cgmmismatch_error_workaround_vol1
Addresses #192 Possible workaround for CGMmismatch error
2 parents 0f22182 + ce911b4 commit 93a4eb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

emf/loadflow_tool/loadflow_settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@
119119
}
120120

121121
__CGM_RELAXED_2_PROVIDER = {
122-
'loadPowerFactorConstant': 'False', # cim:PowerFlowSettings.loadVoltageDependency "false" ; TODO - check this
122+
# 'loadPowerFactorConstant': 'False', # cim:PowerFlowSettings.loadVoltageDependency "false" ; TODO - check this
123+
'loadPowerFactorConstant': 'True',
123124
'maxOuterLoopIterations': '30', # eumd:PowerFlowSettings.maxIterationNumber "30"
124125
'lowImpedanceThreshold': '1.0E-5', # cim:PowerFlowSettings.impedanceThreshold "1e-05" ;
125126
'newtonRaphsonStoppingCriteriaType': 'PER_EQUATION_TYPE_CRITERIA',
@@ -214,7 +215,8 @@
214215
read_slack_bus=True,
215216
write_slack_bus=False,
216217
distributed_slack=True, # cim:PowerFlowSettings.slackDistributionKind cim:SlackDistributionKind.generationDistributionActivePowerAndVoltageNodesOnly ;
217-
balance_type=pypowsybl._pypowsybl.BalanceType.PROPORTIONAL_TO_GENERATION_REMAINING_MARGIN, #cim:PowerFlowSettings.slackDistributionKind cim:SlackDistributionKind.generationDistributionActivePowerAndVoltageNodesOnly ;
218+
# balance_type=pypowsybl._pypowsybl.BalanceType.PROPORTIONAL_TO_GENERATION_REMAINING_MARGIN, #cim:PowerFlowSettings.slackDistributionKind cim:SlackDistributionKind.generationDistributionActivePowerAndVoltageNodesOnly ;
219+
balance_type=pypowsybl._pypowsybl.BalanceType.PROPORTIONAL_TO_CONFORM_LOAD,
218220
dc_use_transformer_ratio=None,
219221
countries_to_balance=None,
220222
connected_component_mode=pypowsybl._pypowsybl.ConnectedComponentMode.ALL,

0 commit comments

Comments
 (0)