Calculates base-conductance and -capacitance depending on the choice of units (fist component is G, second is C).
"pu":
GC_base = (S_nom/V_nom*V_nom)*{1, 1/omega_nom}
"SI":
GC_base = {1, 1/omega_nom} (converts susceptance B to capacitance C!)
function baseGC
extends Modelica.Icons.Function;
input Boolean puUnits "= true if pu else SI units";
input SI.Voltage V_nom "nom voltage";
input SI.ApparentPower S_nom "apparent power";
input SI.AngularFrequency omega_nom "angular frequency";
input Integer scale = 1 "scaling factor topology (Y:1, Delta:3)";
output Real[2] GC_base "base {conductance, capacitance}";
end baseGC;