Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ function FromSpacePhasor
input Integer m "Number of phases";
output Real y[m] "Polyphase output";
protected
parameter SI.Angle phi[m]=
SI.Angle phi[m]=
Modelica.Electrical.Polyphase.Functions.symmetricOrientation(m);
parameter Real InverseTransformation[m, 2]={{+cos(-phi[k]),-sin(-phi[k])}
Real InverseTransformation[m, 2]={{+cos(-phi[k]),-sin(-phi[k])}
for k in 1:m};

algorithm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ function ToSpacePhasor
output Real y[2] "Space phasor";
output Real y0 "Zero sequence component (of voltage or current)";
protected
parameter Integer m=size(x, 1) "Number of phases" annotation(Evaluate=true);
parameter SI.Angle phi[m]=
Integer m=size(x, 1) "Number of phases" annotation(Evaluate=true);
SI.Angle phi[m]=
Modelica.Electrical.Polyphase.Functions.symmetricOrientation(m);
parameter Real TransformationMatrix[2, m]=2/m*{+cos(+phi),+sin(+phi)};
Real TransformationMatrix[2, m]=2/m*{+cos(+phi),+sin(+phi)};
algorithm
y := TransformationMatrix*x;
y0 := 1/m*sum(x);
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Electrical/Polyphase/Functions/factorY2D.mo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function factorY2D "Calculates factor Y voltage to polygon (delta) voltage"
input Integer kPolygon=1 "Alternative of polygon";
output Real y "Factor Y to D";
protected
parameter Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
algorithm
if mBasic==2 then
y := sqrt(2);
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Electrical/Polyphase/Functions/factorY2DC.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function factorY2DC "Calculates factor of DC-voltage from RMS Y-voltage"
input Integer m=3 "Number of phases";
output Real y "Factor Yrms to DC";
protected
parameter Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
algorithm
if mBasic==2 then
y := 4/pi;
Expand Down