pub fn calc_line_primitive_admittance(
line: &DistLine,
code: &DistLineCode,
) -> Result<Vec<Vec<Complex64>>>Expand description
The primitive admittance of a line, siemens, over its terminals in the
order terminal_map_from then terminal_map_to: the inverse of the
linecode’s series impedance over the length couples the two ends, and
each end carries its shunt half,
[ Y + Y_from -Y ] Y = (Z_series · length)⁻¹
[ -Y Y + Y_to ] Y_from = (G_from + j B_from) · lengthThe one line stamp: calc_multiconductor_admittance_matrix scatters
it into the nodal system.
§Errors
A line whose terminal maps disagree with the linecode’s conductor count, a linecode matrix of another shape, a length that is not finite and positive, or a singular series impedance.