Calculates rotor leakage reactance xsig and corresponding time constants Tsig.
If transient order n > 3, the coefficients xm[2:n-2] are assumed to be 0.
A different choice is not meaningful, as long as we only have 2 parameters (complex field-current) to fit.
function Tsig_xsig extends Icons.Function; input Integer n "transient order"; input Real[n] ac "polynome coefficient closed loop"; input Real[n] ao "polynome coefficient open loop"; input SIpu.Reactance xsig_s(unit = "pu") "leakage reactance stator"; input SIpu.Reactance[n + 1] xm(unit = "pu") "coupling reactance"; input Boolean field "field winding yes/no"; input Real tol "tolerance, iterative solution"; output SI.Angle[n] Tsig "sig-time constants"; output SIpu.Reactance[n] xsig(unit = "pu") "leakage reactance rotor"; output Boolean result "true if Tsig real and convergence tol-ok"; end Tsig_xsig;