mp.net_model_dc

class mp.net_model_dc

Bases: mp.net_model, mp.form_dc

mp.net_model_dc - Concrete class for MATPOWER DC network model objects.

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

mp.net_model_dc Properties:
  • va - vector of voltage states (voltage angles \(\Va\))

  • z - vector of non-voltage states \(\z\)

mp.net_model_dc Methods:

See also mp.net_model, mp.form_dc, mp.form, mp.nm_element.

Constructor Summary
net_model_dc()

Constructor, assign default network model element classes.

nm = net_model_dc()

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

Property Summary
va = []

(double) vector of voltage states (voltage angles \(\Va\))

z = []

(double) vector of non-voltage states \(\z\)

Method Summary
def_set_types()

Add voltage and non-voltage variable set types for mp_idx_manager.

nm.def_set_types()

Add the following set types:

  • 'va' - VOLTAGE VARS (va)

  • 'z' - NON-VOLTAGE VARS (z)

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

build_params(nm, dm)

Build incidence matrices and parameters, and add ports for each element.

nm.build_params(nm, dm)
Inputs:

Call the parent method to do most() of the work, then build the aggregate network model parameters.

port_inj_soln()

Compute the network port injections at the solution.

nm.port_inj_soln()

Takes the solved network state, computes the port power injections, and saves them in nm.soln.gp.