@@ -256,6 +256,43 @@ def create_dc_detailed_vsc_asymmetrical_monopole_network(allow_variant_multi_thr
256256 """
257257 return _create_network ('dc_detailed_vsc_asymmetrical_monopole' , '' , allow_variant_multi_thread_access )
258258
259+ def create_ac_dc_monopolar_network (allow_variant_multi_thread_access : bool = False ) -> Network :
260+ """
261+ Create an instance of an AC DC monopolar network case, for AC DC loadflow
262+
263+ Returns:
264+ a new instance of an AC DC monopolar network case
265+ """
266+ n = pp .network .create_empty ()
267+ n .create_dc_nodes (id = 'dn3p' , nominal_v = 400 )
268+ n .create_dc_nodes (id = 'dn3n' , nominal_v = 400 )
269+ n .create_dc_nodes (id = 'dn4p' , nominal_v = 400 )
270+ n .create_dc_nodes (id = 'dn4n' , nominal_v = 400 )
271+ n .create_dc_grounds (id = 'dg3' , r = 0.0 , dc_node_id = 'dn3n' )
272+ n .create_dc_grounds (id = 'dg4' , r = 0.0 , dc_node_id = 'dn4n' )
273+ n .create_voltage_levels (id = 'vl1' , topology_kind = 'BUS_BREAKER' , nominal_v = 400 )
274+ n .create_buses (id = 'b1' , voltage_level_id = 'vl1' )
275+ n .create_generators (id = 'g1' , voltage_level_id = 'vl1' , bus_id = 'b1' , target_p = 102.56 , min_p = 0 , max_p = 500 ,
276+ target_v = 390 ,
277+ voltage_regulator_on = True )
278+ n .create_voltage_levels (id = 'vl2' , topology_kind = 'BUS_BREAKER' , nominal_v = 400 )
279+ n .create_buses (id = 'b2' , voltage_level_id = 'vl2' )
280+ n .create_loads (id = 'ld2' , voltage_level_id = 'vl2' , bus_id = 'b2' , p0 = 20 , q0 = 10 )
281+ n .create_voltage_levels (id = 'vl5' , topology_kind = 'BUS_BREAKER' , nominal_v = 400 )
282+ n .create_buses (id = 'b5' , voltage_level_id = 'vl5' )
283+ n .create_loads (id = 'ld5' , voltage_level_id = 'vl5' , bus_id = 'b5' , p0 = 50 , q0 = 10 )
284+ n .create_dc_lines (id = 'dl34p' , dc_node1_id = 'dn3p' , dc_node2_id = 'dn4p' , r = 0.1 )
285+ n .create_lines (id = 'l12' , voltage_level1_id = 'vl1' , bus1_id = 'b1' , voltage_level2_id = 'vl2' , bus2_id = 'b2' , r = 1 , x = 3 )
286+ n .create_lines (id = 'l25' , voltage_level1_id = 'vl2' , bus1_id = 'b2' , voltage_level2_id = 'vl5' , bus2_id = 'b5' , r = 1 , x = 3 )
287+ n .create_voltage_source_converters (id = 'conv23' , voltage_level_id = 'vl2' , dc_node1_id = 'dn3p' , dc_node2_id = 'dn3n' ,
288+ bus1_id = 'b2' , voltage_regulator_on = 0 , control_mode = 'P_PCC' , target_p = - 50.0 ,
289+ target_q = 0.0 , idle_loss = 0.5 , switching_loss = 1.0 , resistive_loss = 0.2 ,
290+ dc_connected1 = 1 , dc_connected2 = 1 )
291+ n .create_voltage_source_converters (id = 'conv45' , voltage_level_id = 'vl5' , dc_node1_id = 'dn4p' , dc_node2_id = 'dn4n' ,
292+ bus1_id = 'b5' , voltage_regulator_on = 0 , control_mode = 'V_DC' , target_v_dc = 400.0 ,
293+ target_q = 0.0 , idle_loss = 0.5 , switching_loss = 1.0 , resistive_loss = 0.2 ,
294+ dc_connected1 = 1 , dc_connected2 = 1 )
295+ return n
259296
260297def create_ac_dc_bipolar_network (allow_variant_multi_thread_access : bool = False ) -> Network :
261298 """
@@ -294,11 +331,11 @@ def create_ac_dc_bipolar_network(allow_variant_multi_thread_access: bool = False
294331 n .create_lines (id = 'l25' , voltage_level1_id = 'vl2' , bus1_id = 'b2' , voltage_level2_id = 'vl5' , bus2_id = 'b5' , r = 1 , x = 3 )
295332 n .create_voltage_source_converters (id = 'conv23' , voltage_level_id = 'vl2' , dc_node1_id = 'dn3p' , dc_node2_id = 'dn3n' ,
296333 bus1_id = 'b2' , voltage_regulator_on = 0 , control_mode = 'P_PCC' , target_p = - 50.0 ,
297- target_q = 0.0 , idle_loss = 0.0 , switching_loss = 0 .0 , resistive_loss = 0.0 ,
298- dc_connected1 = 1 , dc_connected2 = 1 )
334+ target_q = 0.0 , idle_loss = 0.5 , switching_loss = 1 .0 , resistive_loss = 0.2 ,
335+ dc_connected1 = 1 , dc_connected2 = 1 )
299336 n .create_voltage_source_converters (id = 'conv45' , voltage_level_id = 'vl5' , dc_node1_id = 'dn4p' , dc_node2_id = 'dn4n' ,
300337 bus1_id = 'b5' , voltage_regulator_on = 0 , control_mode = 'V_DC' , target_q = 0.0 ,
301- target_v_dc = 400.0 , idle_loss = 0.0 , switching_loss = 0 .0 , resistive_loss = 0.0 ,
338+ target_v_dc = 400.0 , idle_loss = 0.5 , switching_loss = 1 .0 , resistive_loss = 0.2 ,
302339 dc_connected1 = 1 , dc_connected2 = 1 )
303340 return n
304341
@@ -337,19 +374,19 @@ def create_ac_dc_bipolar_network_with_metallic_return(allow_variant_multi_thread
337374 n .create_lines (id = 'l25' , voltage_level1_id = 'vl2' , bus1_id = 'b2' , voltage_level2_id = 'vl5' , bus2_id = 'b5' , r = 1 , x = 3 )
338375 n .create_voltage_source_converters (id = 'conv23p' , voltage_level_id = 'vl2' , dc_node1_id = 'dn3p' , dc_node2_id = 'dn3r' ,
339376 bus1_id = 'b2' , voltage_regulator_on = 0 , control_mode = 'P_PCC' , target_p = - 25.0 ,
340- target_q = 0.0 , idle_loss = 0.0 , switching_loss = 0 .0 , resistive_loss = 0.0 ,
377+ target_q = 0.0 , idle_loss = 0.5 , switching_loss = 1 .0 , resistive_loss = 0.2 ,
341378 dc_connected1 = 1 , dc_connected2 = 1 )
342379 n .create_voltage_source_converters (id = 'conv23n' , voltage_level_id = 'vl2' , dc_node1_id = 'dn3n' , dc_node2_id = 'dn3r' ,
343380 bus1_id = 'b2' , voltage_regulator_on = 0 , control_mode = 'P_PCC' , target_p = - 25.0 ,
344- target_q = 0.0 , idle_loss = 0.0 , switching_loss = 0 .0 , resistive_loss = 0.0 ,
381+ target_q = 0.0 , idle_loss = 0.5 , switching_loss = 1 .0 , resistive_loss = 0.2 ,
345382 dc_connected1 = 1 , dc_connected2 = 1 )
346383 n .create_voltage_source_converters (id = 'conv45p' , voltage_level_id = 'vl5' , dc_node1_id = 'dn4p' , dc_node2_id = 'dn4r' ,
347384 bus1_id = 'b5' , voltage_regulator_on = 0 , control_mode = 'V_DC' , target_q = 0.0 ,
348- target_v_dc = 200.0 , idle_loss = 0.0 , switching_loss = 0 .0 , resistive_loss = 0.0 ,
385+ target_v_dc = 200.0 , idle_loss = 0.5 , switching_loss = 1 .0 , resistive_loss = 0.2 ,
349386 dc_connected1 = 1 , dc_connected2 = 1 )
350387 n .create_voltage_source_converters (id = 'conv45n' , voltage_level_id = 'vl5' , dc_node1_id = 'dn4n' , dc_node2_id = 'dn4r' ,
351388 bus1_id = 'b5' , voltage_regulator_on = 0 , control_mode = 'V_DC' , target_q = 0.0 ,
352- target_v_dc = - 200.0 , idle_loss = 0.0 , switching_loss = 0 .0 , resistive_loss = 0.0 ,
389+ target_v_dc = - 200.0 , idle_loss = 0.5 , switching_loss = 1 .0 , resistive_loss = 0.2 ,
353390 dc_connected1 = 1 , dc_connected2 = 1 )
354391
355392 return n
0 commit comments