pypowsybl.security.SecurityAnalysis.add_phase_tap_changer_position_action

SecurityAnalysis.add_phase_tap_changer_position_action(action_id, transformer_id, is_relative, tap_position, side=pypowsybl._pypowsybl.Side.NONE)[source]

Add a phase tap changer tap position action, modifying the tap position of the tap changer

Parameters:
  • action_id (str) – unique ID for the action

  • transformer_id (str) – transformer identifier

  • is_relative (bool) – True means the provided tap_position will be added to the current tap position, False means the provided tap_position will replace the previous one.

  • tap_position (int) – The tap position (either a delta if is_relative is true, or the final value if is_relative if false)

  • side (pypowsybl._pypowsybl.Side) – Side of the tap changer (for three windings transformers)

Return type:

None