Skip to main content

calc_passive_primitives

Function calc_passive_primitives 

Source
pub fn calc_passive_primitives(
    network: &MulticonductorNetwork,
) -> Result<NetworkPrimitives<'_>>
Expand description

Every admittance element of the network with its primitive admittance: lines (series inverse and both shunt halves, calc_line_primitive_admittance), then shunts (calc_shunt_primitive_admittance), then capacitor banks (calc_capacitor_primitive_admittance), then every transformer that states leakage (calc_transformer_primitive_admittance), each family in table order, with the transformers’ solidly grounded neutrals and the ideal transformers left for exact constraints. The one element list: calc_multiconductor_admittance_matrix scatters it over its node references, and a caller indexing terminals its own way scatters it over its positions with scatter_primitive_admittance.

A line’s linecode is found under the network’s identifier convention (MulticonductorNetwork::identifier_key), the convention readiness checks. An element the builders do not stamp (a line without a usable length, a capacitor configuration with no primitive) is left out and reported in the diagnostics, never stamped approximately.

§Errors

A line naming an undeclared linecode or mapping terminals that disagree with its linecode, a singular series impedance, a shunt whose matrices are not square over its terminal map or not finite, a capacitor whose nameplate is not finite and positive, a capacitor terminal map its configuration cannot carry, or a leakage transformer the primitive refuses.