Calculates instantaneous power from multiphase voltages and currents. In quasistationary operation, instantaneous power equals active power;
function activePower extends Modelica.Icons.Function; input Modelica.SIunits.Voltage v[:] "Phase voltages"; input Modelica.SIunits.Current i[size(v, 1)] "Phase currents"; output Modelica.SIunits.Power p "Active power"; end activePower;