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 Modelica.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 = "1") "leakage reactance stator"; input SIpu.Reactance[n + 1] xm(each unit = "1") "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(each unit = "1") "leakage reactance rotor"; output Boolean result "true if Tsig real and convergence tol-ok"; end Tsig_xsig;