mp.net_model_acp

class mp.net_model_acp

Bases: mp.net_model_ac, mp.form_acp

mp.net_model_acp - Concrete class for MATPOWER AC polar network model objects.

This network model class and all of its network model element classes are specific to the AC polar formulation and therefore inherit from mp.form_acp.

mp.net_model_acp Properties:
  • va - vector of angles of complex voltage state variables, \(\va\)

  • vm - vector of magnitudes of complex voltage state variables, \(\vm\)

mp.net_model_acp Methods:

See also mp.net_model_ac, mp.net_model, mp.form_acp, mp.form_ac, mp.form, mp.nm_element.

Constructor Summary
net_model_acp()

Constructor, assign default network model element classes.

nm = net_model_acp()

This network model class and all of its network model element classes are specific to the AC polar formulation and therefore inherit from mp.form_acp.

Method Summary
def_set_types()

Add voltage state variable set types for mp_idx_manager.

nm.def_set_types()

Add the following set types:

  • 'va' - VOLTAGE ANG VARS (va)

  • 'vm' - VOLTAGE MAG VARS (vm)

See also mp.net_model_ac.def_set_types(), mp.net_model.def_set_types(), mp_idx_manager.

initial_voltage_angle(idx)

Get vector of initial node voltage angles.

va = nm.initial_voltage_angle()
va = nm.initial_voltage_angle(idx)

Get vector of initial node voltage angles for all or a selected subset of nodes.

Input:

idx (integer) – index of subset of voltages of interest; if missing or empty, include all

Output:

va (double) – vector of initial voltage angles