|
15 | 15 | # TODO - NOT AVAILABLE - cim:PowerFlowSettings.transformerRatioTapControlPriority "1" ; |
16 | 16 | # TODO - USE IN SCALING - eumd:PowerFlowSettings.maxIterationNumberAIC "15" ; |
17 | 17 |
|
18 | | -#DEFAULT settings applicable for all processes |
| 18 | +# DEFAULT settings applicable for all processes |
19 | 19 | OPENLOADFLOW_DEFAULT_PROVIDER = { |
20 | 20 | 'slackBusesIds': '', |
21 | 21 | 'lowImpedanceBranchMode': 'REPLACE_BY_ZERO_IMPEDANCE_LINE', |
22 | 22 | 'voltageRemoteControl': 'True', |
23 | | - |
24 | | - # Legacy, not found in code, can be removed |
25 | | - # 'throwsExceptionInCaseOfSlackDistributionFailure': 'False', |
26 | | - |
27 | 23 | 'loadPowerFactorConstant': 'True', # cim:PowerFlowSettings.loadVoltageDependency TODO - check this |
28 | 24 | 'plausibleActivePowerLimit': '5000.0', |
29 | 25 | 'slackBusPMaxMismatch': '0.1', #slackBusDistributionThreshold |
30 | 26 | 'voltagePerReactivePowerControl': 'False', |
31 | | - |
32 | | - # Legacy, not found in code, can be removed, replaced with generator, transformer etc control |
33 | | - # 'reactivePowerRemoteControl': 'False', |
34 | | - |
35 | 27 | 'newtonRaphsonConvEpsPerEq': '1.0E-4', |
36 | 28 | 'voltageTargetPriorities': 'GENERATOR,TRANSFORMER,SHUNT', |
37 | | - # 'voltageInitModeOverride': None, |
38 | 29 | 'transformerVoltageControlMode': 'AFTER_GENERATOR_VOLTAGE_CONTROL', |
39 | 30 | 'shuntVoltageControlMode': 'INCREMENTAL_VOLTAGE_CONTROL', |
40 | 31 | 'minPlausibleTargetVoltage': '0.8', |
|
49 | 40 | # 'debugDir': '', |
50 | 41 | 'incrementalTransformerVoltageControlOuterLoopMaxTapShift': '3', # TODO - check this |
51 | 42 | 'secondaryVoltageControl': 'False', |
52 | | - |
53 | | - # Legacy, not found in code, can be removed |
54 | | - # 'controllerToPilotPointVoltageSensiEpsilon': '0.01', |
55 | | - |
56 | 43 | 'reactiveLimitsMaxPqPvSwitch': '3', |
57 | 44 | 'newtonRaphsonStoppingCriteriaType': 'UNIFORM_CRITERIA', |
58 | 45 | 'maxActivePowerMismatch': '0.01', # cim:PowerFlowSettings.activePowerTolerance |
|
96 | 83 |
|
97 | 84 |
|
98 | 85 | # Deviation of default provider from the default |
99 | | -############# |
100 | | -#Used for CGM main merging process |
| 86 | +## Used for CGM main merging process |
101 | 87 | __IGM_VALIDATION_PROVIDER = { |
102 | 88 | 'slackBusSelectionMode': 'MOST_MESHED', |
103 | 89 | 'referenceBusSelectionMode':'GENERATOR_REFERENCE_PRIORITY', |
|
130 | 116 | 'maxAngleMismatch': '1.0E-5', # cim:PowerFlowSettings.voltageAngleLimit "10" TODO - How to convert |
131 | 117 | 'slackBusPMaxMismatch': '0.09', # To fulfill QOCDC SV_INJECTION_LIMIT = 0.1' |
132 | 118 | 'disableVoltageControlOfGeneratorsOutsideActivePowerLimits': 'true', # supress q part of igm-ssh-vs-cgm-ssh error |
133 | | - |
134 | | - # 'extrapolateReactiveLimits': 'true', |
135 | 119 | 'disableInconsistentVoltageControls': 'true', |
136 | 120 | 'transformerVoltageControlMode': 'INCREMENTAL_VOLTAGE_CONTROL', |
137 | 121 | 'shuntVoltageControlMode': 'INCREMENTAL_VOLTAGE_CONTROL', |
138 | 122 | 'phaseShifterControlMode': 'INCREMENTAL', |
| 123 | + |
139 | 124 | } |
140 | 125 | __EU_RELAXED_PROVIDER = { |
141 | 126 | 'slackBusSelectionMode': 'MOST_MESHED', |
|
153 | 138 | 'maxAngleMismatch': '1.0E-5', # cim:PowerFlowSettings.voltageAngleLimit "10" ; TODO - How to convert |
154 | 139 | 'slackBusPMaxMismatch': '0.09', # To fulfill QOCDC SV_INJECTION_LIMIT = 0.1 |
155 | 140 | 'disableVoltageControlOfGeneratorsOutsideActivePowerLimits': 'true', # supress q part of igm-ssh-vs-cgm-ssh error |
156 | | - |
157 | 141 | 'disableInconsistentVoltageControls': 'true', |
158 | 142 | 'transformerVoltageControlMode': 'INCREMENTAL_VOLTAGE_CONTROL', |
159 | 143 | 'shuntVoltageControlMode': 'INCREMENTAL_VOLTAGE_CONTROL', |
160 | 144 | 'phaseShifterControlMode': 'INCREMENTAL', |
161 | 145 | } |
162 | 146 |
|
163 | | - |
164 | | -#Baltic merge parameters |
| 147 | +## Baltic merge parameters |
165 | 148 | __BA_DEFAULT_PROVIDER = { |
166 | 149 | 'slackBusSelectionMode': 'MOST_MESHED', |
167 | 150 | 'generatorReactivePowerRemoteControl': 'True', |
|
206 | 189 | 'slackBusPMaxMismatch': '0.09', # To fulfill QOCDC SV_INJECTION_LIMIT = 0.1 |
207 | 190 | 'disableVoltageControlOfGeneratorsOutsideActivePowerLimits': 'true', # supress q part of igm-ssh-vs-cgm-ssh error |
208 | 191 | } |
209 | | -############ |
210 | 192 |
|
211 | 193 | # Preparing PROVIDER settings options from default settings |
212 | | -############# |
213 | | -#Used for CGM main merging process |
| 194 | +## Used for CGM main merging process |
214 | 195 | IGM_VALIDATION_PROVIDER = OPENLOADFLOW_DEFAULT_PROVIDER.copy() |
215 | 196 | IGM_VALIDATION_PROVIDER.update(__IGM_VALIDATION_PROVIDER) |
216 | 197 | EU_DEFAULT_PROVIDER = OPENLOADFLOW_DEFAULT_PROVIDER.copy() |
217 | 198 | EU_DEFAULT_PROVIDER.update(__EU_DEFAULT_PROVIDER) |
218 | 199 | EU_RELAXED_PROVIDER = OPENLOADFLOW_DEFAULT_PROVIDER.copy() |
219 | 200 | EU_RELAXED_PROVIDER.update(__EU_RELAXED_PROVIDER) |
220 | 201 |
|
221 | | -#Baltic merge parameters |
| 202 | +## Baltic merge parameters |
222 | 203 | BA_DEFAULT_PROVIDER = OPENLOADFLOW_DEFAULT_PROVIDER.copy() |
223 | 204 | BA_DEFAULT_PROVIDER.update(__BA_DEFAULT_PROVIDER) |
224 | 205 | BA_RELAXED_1_PROVIDER = OPENLOADFLOW_DEFAULT_PROVIDER.copy() |
225 | 206 | BA_RELAXED_1_PROVIDER.update(__BA_RELAXED_1_PROVIDER) |
226 | 207 | BA_RELAXED_2_PROVIDER = OPENLOADFLOW_DEFAULT_PROVIDER.copy() |
227 | 208 | BA_RELAXED_2_PROVIDER.update(__BA_RELAXED_2_PROVIDER) |
228 | | -############## |
229 | | - |
230 | 209 |
|
231 | 210 | # Prepare pypowsybl loadflow parameters classes |
232 | | -############## |
233 | | -#Used for CGM main merging process |
| 211 | +## Used for CGM main merging process |
234 | 212 | IGM_VALIDATION = pypowsybl.loadflow.Parameters( |
235 | 213 | #voltage_init_mode=pypowsybl._pypowsybl.VoltageInitMode.UNIFORM_VALUES, # cim:PowerFlowSettings.flatStart "true" |
236 | 214 | transformer_voltage_control_on=True, # cim:PowerFlowSettings.transformerRatioTapControlPriority "1" |
|
247 | 225 | connected_component_mode=pypowsybl._pypowsybl.ConnectedComponentMode.MAIN, |
248 | 226 | provider_parameters=IGM_VALIDATION_PROVIDER, |
249 | 227 | ) |
| 228 | + |
250 | 229 | EU_DEFAULT = pypowsybl.loadflow.Parameters( |
251 | 230 | #voltage_init_mode=pypowsybl._pypowsybl.VoltageInitMode.UNIFORM_VALUES, # cim:PowerFlowSettings.flatStart "true" |
252 | 231 | transformer_voltage_control_on=True, # @cim:PowerFlowSettings.transformerRatioTapControlPriority": "1" |
|
263 | 242 | connected_component_mode=pypowsybl._pypowsybl.ConnectedComponentMode.ALL, |
264 | 243 | provider_parameters=EU_DEFAULT_PROVIDER, |
265 | 244 | ) |
| 245 | + |
266 | 246 | EU_RELAXED = pypowsybl.loadflow.Parameters( |
267 | 247 | #voltage_init_mode=pypowsybl._pypowsybl.VoltageInitMode.UNIFORM_VALUES, # cim:PowerFlowSettings.flatStart "true" |
268 | 248 | transformer_voltage_control_on=True, # cim:PowerFlowSettings.transformerRatioTapControlPriority "0" |
|
280 | 260 | provider_parameters=EU_RELAXED_PROVIDER, |
281 | 261 | ) |
282 | 262 |
|
283 | | -#Baltic merge parameters |
| 263 | +## Baltic merge parameters |
284 | 264 | BA_DEFAULT = pypowsybl.loadflow.Parameters( |
285 | 265 | voltage_init_mode=pypowsybl._pypowsybl.VoltageInitMode.UNIFORM_VALUES, # cim:PowerFlowSettings.flatStart "true" |
286 | 266 | transformer_voltage_control_on=True, # @cim:PowerFlowSettings.transformerRatioTapControlPriority": "1" |
|
297 | 277 | connected_component_mode=pypowsybl._pypowsybl.ConnectedComponentMode.ALL, |
298 | 278 | provider_parameters=BA_DEFAULT_PROVIDER, |
299 | 279 | ) |
| 280 | + |
300 | 281 | BA_RELAXED_1 = pypowsybl.loadflow.Parameters( |
301 | 282 | voltage_init_mode=pypowsybl._pypowsybl.VoltageInitMode.UNIFORM_VALUES, # cim:PowerFlowSettings.flatStart "true" |
302 | 283 | transformer_voltage_control_on=False, # cim:PowerFlowSettings.transformerRatioTapControlPriority "0" |
|
330 | 311 | connected_component_mode=pypowsybl._pypowsybl.ConnectedComponentMode.ALL, |
331 | 312 | provider_parameters=BA_RELAXED_2_PROVIDER, |
332 | 313 | ) |
333 | | -################# |
0 commit comments