Skip to content

Commit 900d94a

Browse files
Remove parameter keyword in functions (#4444)
Note that these "parameters" were bound to non-parameter expressions that doesn't make sense. Co-authored-by: HOS <[email protected]>
1 parent 4d01fda commit 900d94a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Modelica/Electrical/Machines/SpacePhasors/Functions/FromSpacePhasor.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ function FromSpacePhasor
88
input Integer m "Number of phases";
99
output Real y[m] "Polyphase output";
1010
protected
11-
parameter SI.Angle phi[m]=
11+
SI.Angle phi[m]=
1212
Modelica.Electrical.Polyphase.Functions.symmetricOrientation(m);
13-
parameter Real InverseTransformation[m, 2]={{+cos(-phi[k]),-sin(-phi[k])}
13+
Real InverseTransformation[m, 2]={{+cos(-phi[k]),-sin(-phi[k])}
1414
for k in 1:m};
1515

1616
algorithm

Modelica/Electrical/Machines/SpacePhasors/Functions/ToSpacePhasor.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ function ToSpacePhasor
77
output Real y[2] "Space phasor";
88
output Real y0 "Zero sequence component (of voltage or current)";
99
protected
10-
parameter Integer m=size(x, 1) "Number of phases" annotation(Evaluate=true);
11-
parameter SI.Angle phi[m]=
10+
Integer m=size(x, 1) "Number of phases" annotation(Evaluate=true);
11+
SI.Angle phi[m]=
1212
Modelica.Electrical.Polyphase.Functions.symmetricOrientation(m);
13-
parameter Real TransformationMatrix[2, m]=2/m*{+cos(+phi),+sin(+phi)};
13+
Real TransformationMatrix[2, m]=2/m*{+cos(+phi),+sin(+phi)};
1414
algorithm
1515
y := TransformationMatrix*x;
1616
y0 := 1/m*sum(x);

Modelica/Electrical/Polyphase/Functions/factorY2D.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function factorY2D "Calculates factor Y voltage to polygon (delta) voltage"
77
input Integer kPolygon=1 "Alternative of polygon";
88
output Real y "Factor Y to D";
99
protected
10-
parameter Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
10+
Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
1111
algorithm
1212
if mBasic==2 then
1313
y := sqrt(2);

Modelica/Electrical/Polyphase/Functions/factorY2DC.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function factorY2DC "Calculates factor of DC-voltage from RMS Y-voltage"
66
input Integer m=3 "Number of phases";
77
output Real y "Factor Yrms to DC";
88
protected
9-
parameter Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
9+
Integer mBasic=integer(m/numberOfSymmetricBaseSystems(m));
1010
algorithm
1111
if mBasic==2 then
1212
y := 4/pi;

0 commit comments

Comments
 (0)