pypowsybl.network.Network.get_voltage_angle_limits

Network.get_voltage_angle_limits(all_attributes=False, attributes=None)[source]

Get the list of voltage angle limits.

The resulting dataframe will include the following columns:

  • id: identifier of the voltage angle limit

  • from_element_id: identifier of the connectable owning the “from” terminal

  • from_side: side of the “from” terminal for sided elements (ONE, TWO, THREE)

  • to_element_id: identifier of the connectable owning the “to” terminal

  • to_side: side of the “to” terminal for sided elements (ONE, TWO, THREE)

  • low_limit: optional lower angle limit value

  • high_limit: optional upper angle limit value

The index of the dataframe is the voltage angle limit id.

Parameters:
  • all_attributes (bool) – flag for including all attributes in the dataframe, default is false

  • attributes (List[str] | None) – attributes to include in the dataframe. The 2 parameters are mutually exclusive. If no parameter is specified, the dataframe will include the default attributes.

Return type:

DataFrame

Examples

import pypowsybl as pp

network = pp.network.create_eurostag_tutorial_example1_network()
network.create_voltage_angle_limits(
    id='NHV1_NHV2_1_ANGLE',
    from_element_id='NHV1_NHV2_1',
    from_side='ONE',
    to_element_id='NHV1_NHV2_1',
    to_side='TWO',
    low_limit=-30.0,
    high_limit=30.0,
)
angle_limits = network.get_voltage_angle_limits()
angle_limits.columns.tolist()
line_limit = angle_limits.loc['NHV1_NHV2_1_ANGLE']
{
    'from_element_id': 'NHV1_NHV2_1',
    'from_side': 'ONE',
    'to_element_id': 'NHV1_NHV2_1',
    'to_side': 'TWO',
    'low_limit': -30.0,
    'high_limit': 30.0,
}
Returns:

All voltage angle limits on the network.

Parameters:
Return type:

DataFrame