Calculates the complex field-current i_f, and outputs dif2 which is defined as follows:
i_f complex field-current for actual impedance-parameters i_f0 desired (measured) field-current at nominal voltage /_ 0deg. di_f = i_f - i_f0 (complex difference) dif2 = di_f*conjugate(di_f) (square of absolute value of difference)
The difference dif2 is used in order to determine the coupling terms xm[2:n] by a minimum-principle.
function i_field extends Icons.Function; input SIpu.Reactance[:] xm2_n(unit = "pu") "approximate value of xm[2:n]"; input Real[:] x_opt "additional input arguments"; output Real dif2 "i_f*conjugate(i_f)"; output Boolean result "true if Tsig real and convergence tol-ok"; end i_field;