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().
Methods
build([force])Build the system matrices.
Build Bdc matrix and store it in the MParam Bbus.
build_bf()Build DC Bf matrix and store it in the MParam Bf.
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 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 DC Pbusinj vector and store it in the MParam Pbusinj.
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
Return the class name
To fit the RParam style.