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
+1for a BMOPF n-winding unit (BMOPFTools’ schema default),+1forwye_deltaand-1fordelta_wye; - otherwise OpenDSS’s rule over the first two windings:
+1when they share a connection, else-1exactly when the high voltage winding is DELTA with the high voltage winding leading (the default) or WYE with the low voltage winding leading (leadlagleadoreuro).
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.