connector SpacePhasor "Connector for Space Phasors"
Modelica.SIunits.Voltage v_[2] "1=real, 2=imaginary part";
flow Modelica.SIunits.Current i_[2] "1=real, 2=imaginary part";
annotation (
Diagram(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Polygon(
points = {
{0, 100},
{-100, 0},
{0, -100},
{100, 0},
{0, 100}},
lineColor = {0, 0, 255},
fillColor = {0, 0, 255},
fillPattern = FillPattern.Solid),
Text(
extent = {
{-150, -90},
{150, -150}},
lineColor = {0, 0, 255},
textString = "%name")}),
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Polygon(
points = {
{0, 100},
{-100, 0},
{0, -100},
{100, 0},
{0, 100}},
lineColor = {0, 0, 255},
fillColor = {0, 0, 255},
fillPattern = FillPattern.Solid)}),
Documentation(info = "<html>\nConnector for Space Phasors:\n<ul>\n<li>Voltage v_[2] ... Real and Imaginary part of voltage space phasor</li>\n<li>Current i_[2] ... Real and Imaginary part of current space phasor</li>\n</ul>\n</html>"));
end SpacePhasor;