mp.net_model_acc

class mp.net_model_acc

Bases: mp.net_model_ac, mp.form_acc

mp.net_model_acc - Concrete class for MATPOWER AC cartesian network model objects.

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

mp.net_model_acc Properties:
  • vr - vector of real part of complex voltage state variables, \(\vr\)

  • vi - vector of imaginary part of complex voltage state variables, \(\vi\)

mp.net_model_acc Methods:

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

Constructor Summary
net_model_acc()

Constructor, assign default network model element classes.

nm = net_model_acc()

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

Method Summary
def_set_types()

Add voltage state variable set types for mp_idx_manager.

nm.def_set_types()

Add the following set types:

  • 'vr' - REAL VOLTAGE VARS (vr)

  • 'vi' - IMAG VOLTAGE VARS (vi)

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