Function powers::carsons

source ·
pub fn carsons(
    term_type: ImpedanceType,
    h_i: f64,
    h_k: f64,
    x_ik: f64,
    f: f64,
    rho: f64,
    err_tol: Option<f64>
) -> (f64, f64)
Expand description

Calculates Carson’s earth return correction factors Rp and Xp for both self and mutual terms. The number of terms evaluated in the infinite loop is based on convergence to the desired error tolerance.

Usage: Rp, Xp = carsons(type, h_i, h_k, x_ik, f, rho, err_tol)

where type is ‘self’ or ‘mutual’ h_i is the height of conductor i above ground (m) h_k is the height of conductor k above ground (m) x_ik is the horizontal distance between conductors i and k (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: Rp, Xp the Carson earth return correction factors (in Ohm/km)