Skip to main content

calc_zip_coefficient

Function calc_zip_coefficient 

Source
pub fn calc_zip_coefficient<V: ZipVoltage>(
    law: ZipLaw,
    power: Complex64,
    direction: V,
    magnitude: f64,
) -> Complex64
Expand description

The ZIP coefficient that draws power at a nominal voltage of magnitude magnitude and unit phasor direction (1.0 for a zero angle reference): the power itself, the current conj(S) e^{jθ} / |V| (that is conj(S / V)), or the impedance |V|² / conj(S) (zero for zero power), the reciprocal of calc_load_nominal_admittance’s conj(S) / |V|² formed without a reciprocal. The inverse of calc_zip_nominal_power: the GridLAB-D load, explicit connection and triplex writers read it.