Calculates transformer base-voltage depending on the choice of units.
"pu":
V_base[k] = V_nom[k], k=1,2"SI":
V_base[k] = 1, k=1,2
function baseTrafoV extends Modelica.Icons.Function; input Boolean puUnits "= true if pu else SI units"; input SI.Voltage[:] V_nom "nom voltage {prim, sec} or {prim, sec1, sec2}"; output SI.Voltage[size(V_nom, 1)] V_base "base voltage {prim,sec} or {prim, sec1, sec2}"; end baseTrafoV;