Function powers::calc_self_z

source ·
pub fn calc_self_z(
    r_int: f64,
    cond_type: ConductorType,
    r: f64,
    q: f64,
    h_i: f64,
    f: f64,
    rho: f64,
    err_tol: Option<f64>
) -> Complex<f64>
Expand description

Calculates self impedance term (in Ohm/km) NOTE: No allowance has been made for skin effects

Usage: self_Z = calc_self_Z(R_int, cond_type, r, q, h_i, f, rho, err_tol=1e-6)

where R_int is the AC conductor resistance (Ohm/km) cond_type is the conductor type (‘solid’ or ‘tube’) r is the radius of the conductor (mm) q is the radius of the inner tube (mm) h_i is the height of conductor i above ground (m) f is the frequency (Hz) rho is the earth resistivity (Ohm.m) err_tol is the error tolerance for the calculation (default = 1e-6)

Returns: self_Z the self impedance term of line impedance matrix (Ohm/km)