ams.core.matprocessor.MatProcessor#

class ams.core.matprocessor.MatProcessor(system)[source]#

Class for matrices processing in AMS system. The connectivity matrices Cft, Cg, Cl, and Csh *have taken* the devices connectivity into account.

The MParams' row names and col names are assigned in System.setup().

__init__(system)[source]#

Methods

build([force])

Build the system matrices.

build_bbus()

Build Bdc matrix and store it in the MParam Bbus.

build_bf()

Build DC Bf matrix and store it in the MParam Bf.

build_cft()

Build line connectivity matrix Cft and its transpose CftT.

build_cg()

Build generator connectivity matrix Cg, and store it in the MParam Cg.

build_cl()

Build load connectivity matrix Cl, and store it in the MParam Cl.

build_csh()

Build shunt connectivity matrix Csh, and store it in the MParam Csh.

build_lodf([line, no_store, incremental, ...])

Build the Line Outage Distribution Factor matrix and store it in the MParam LODF.

build_otdf([line])

Build the Outrage Transfer Distribution Factor (OTDF) matrix for line k outage: $OTDF_k = PTDF + LODF[:, k] @ PTDF[k, ]$.

build_pbusinj()

Build DC Pbusinj vector and store it in the MParam Pbusinj.

build_pfinj()

Build DC Pfinj vector and store it in the MParam Pfinj.

build_ptdf([line, no_store, incremental, ...])

Build the Power Transfer Distribution Factor (PTDF) matrix and optionally store it in MParam.PTDF.

Attributes

class_name

Return the class name

n

To fit the RParam style.