mp.dme_line3p

class mp.dme_line3p

Bases: mp.dm_element

mp.dme_line3p - Data model element for 3-phase line.

Implements the data element model for 3-phase distribution line elements.

Adds the following columns in the main data table, found in the tab property:

Name

Type

Description

bus_fr

integer

bus ID (uid) of “from” 3-phase bus

bus_to

integer

bus ID (uid) of “to” 3-phase bus

lc

double

index into line construction table

len

double

line length (miles)

pl1_fr

double

phase 1 active power injection at “from” end (kW)

ql1_fr

double

phase 1 reactive power injection at “from” end (kVAr)

pl2_fr

double

phase 2 active power injection at “from” end (kW)

ql2_fr

double

phase 2 reactive power injection at “from” end (kVAr)

pl3_fr

double

phase 3 active power injection at “from” end (kW)

ql3_fr

double

phase 3 reactive power injection at “from” end (kVAr)

pl1_to

double

phase 1 active power injection at “to” end (kW)

ql1_to

double

phase 1 reactive power injection at “to” end (kVAr)

pl2_to

double

phase 2 active power injection at “to” end (kW)

ql2_to

double

phase 2 reactive power injection at “to” end (kVAr)

pl3_to

double

phase 3 active power injection at “to” end (kW)

ql3_to

double

phase 3 reactive power injection at “to” end (kVAr)

The line construction table in the lc_tab property is defined as a table with the following columns:

Name

Type

Description

id

integer

unique line construction ID, referenced from lc column of main data table

r

double

6 resistence parameters for forming symmetric 3x3 series impedance matrix (p.u. per mile)

x

double

6 reactance parameters for forming symmetric 3x3 series impedance matrix (p.u. per mile)

c

double

6 susceptance parameters for forming symmetric 3x3 shunt susceptance matrix (nF per mile)

Property Summary
fbus

bus index vector for “from” bus (all lines)

tbus

bus index vector for “to” bus (all lines)

freq

system frequency, in Hz

lc

index into lc_tab for lines that are on

len

length for lines that are on

lc_tab

line construction table

ys

cell array of 3x3 series admittance matrices for lc rows

yc

cell array of 3x3 shunt admittance matrices for lc rows

Method Summary
name()
label()
labels()
cxn_type()
cxn_idx_prop()
main_table_var_names()
lc_table_var_names()
create_line_construction_table(id, r, x, c)
initialize(dm)
update_status(dm)
build_params(dm)
vec2symmat(v)

Make a symmetric matrix from a vector of 6 values.

symmat2vec(M)

Extract a vector of 6 values from a matrix assumed to be symmetric.

pretty_print(dm, section, out_e, mpopt, fd, pp_args)
pp_have_section_sum(mpopt, pp_args)
pp_data_sum(dm, rows, out_e, mpopt, fd, pp_args)
pp_have_section_det(mpopt, pp_args)
pp_get_headers_det(dm, out_e, mpopt, pp_args)
pp_data_row_det(dm, k, out_e, mpopt, fd, pp_args)