function ToSpacePhasor import Modelica.Constants.pi; extends Modelica.Icons.Function; input Real x[:] "Multi phase (voltage or current) input"; output Real y[2] "Space phasor"; output Real y0 "Zero sequence component (of voltage or current)"; end ToSpacePhasor;