Skip to main content

calc_delta_direction

Function calc_delta_direction 

Source
pub fn calc_delta_direction(
    transformer: &DistTransformer,
    winding: usize,
) -> Result<i8, Error>
Expand description

The orientation of a DELTA winding’s coil ring, +1 (phase k to phase k + 1) or -1 (phase k to phase k - 1):

  • a stated BMOPF roll (bmopf_delta_rolls, one based winding keys);
  • otherwise +1 for a BMOPF n-winding unit (BMOPFTools’ schema default), +1 for wye_delta and -1 for delta_wye;
  • otherwise OpenDSS’s rule over the first two windings: +1 when they share a connection, else -1 exactly when the high voltage winding is DELTA with the high voltage winding leading (the default) or WYE with the low voltage winding leading (leadlag lead or euro).

The one delta orientation: the transformer primitive, the multiconductor OPF descriptor, the connection phase shift (calc_transformer_phase_shift) and the SINCAL writer read it.

§Errors

A stated roll that is not +1 or -1, a bmopf_delta_rolls that is not an object, or an unknown leadlag convention.