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.ComplexVoltage v[:] "QuasiStationary voltage phasors"; input Modelica.SIunits.ComplexCurrent i[size(v, 1)] "QuasiStationary current phasors"; output Modelica.SIunits.Power p "Active power"; end activePower;