File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Machines/SpacePhasors/Functions Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ function FromSpacePhasor
88 input Integer m "Number of phases" ;
99 output Real y[m] "Polyphase output" ;
1010protected
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
1616algorithm
Original file line number Diff line number Diff 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)" ;
99protected
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)};
1414algorithm
1515 y := TransformationMatrix* x;
1616 y0 := 1 / m* sum (x);
Original file line number Diff line number Diff 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" ;
99protected
10- parameter Integer mBasic= integer (m/ numberOfSymmetricBaseSystems(m));
10+ Integer mBasic= integer (m/ numberOfSymmetricBaseSystems(m));
1111algorithm
1212 if mBasic== 2 then
1313 y := sqrt (2 );
Original file line number Diff line number Diff 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" ;
88protected
9- parameter Integer mBasic= integer (m/ numberOfSymmetricBaseSystems(m));
9+ Integer mBasic= integer (m/ numberOfSymmetricBaseSystems(m));
1010algorithm
1111 if mBasic== 2 then
1212 y := 4 / pi;
You can’t perform that action at this time.
0 commit comments