Skip to content

Commit

Permalink
Use unique mapping for linearized variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Apr 14, 2016
1 parent 25f59e3 commit 1ebb164
Show file tree
Hide file tree
Showing 17 changed files with 126 additions and 126 deletions.
16 changes: 8 additions & 8 deletions openmodelica/linearization/linmodel.mos
Expand Up @@ -55,10 +55,10 @@ readFile("linear_linearmodel.log"); // Check that output log is empty
// Real x[4](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px1' = x[1];
// Real 'x_Px2' = x[2];
// Real 'x_Px3' = x[3];
// Real 'x_Px4' = x[4];
// Real 'x_$Px1' = x[1];
// Real 'x_$Px2' = x[2];
// Real 'x_$Px3' = x[3];
// Real 'x_$Px4' = x[4];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -103,10 +103,10 @@ readFile("linear_linearmodel.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px1' = x[1];
// Real 'x_Px2' = x[2];
// Real 'x_Px3' = x[3];
// Real 'x_Px4' = x[4];
// Real 'x_$Px1' = x[1];
// Real 'x_$Px2' = x[2];
// Real 'x_$Px3' = x[3];
// Real 'x_$Px4' = x[4];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
8 changes: 4 additions & 4 deletions openmodelica/linearization/simLotkaVolterra.mos
Expand Up @@ -55,8 +55,8 @@ readFile("linear_LotkaVolterra.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -101,8 +101,8 @@ readFile("linear_LotkaVolterra.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
36 changes: 18 additions & 18 deletions openmodelica/linearization/simNonlinear.mos
Expand Up @@ -55,12 +55,12 @@ readFile("linear_p_nonlinsys.log"); // Check that output log is empty
// Real x[3](start = x0);
// input Real u[1](start = u0);
// output Real y[2];
// Real 'x_Pb1Px' = x[1];
// Real 'x_Pc1Px1' = x[2];
// Real 'x_Pc1Px2' = x[3];
// Real 'u_Pu1' = u[1];
// Real 'y_Py1' = y[1];
// Real 'y_Py2' = y[2];
// Real 'x_$Pb1$Px' = x[1];
// Real 'x_$Pc1$Px1' = x[2];
// Real 'x_$Pc1$Px2' = x[3];
// Real 'u_$Pu1' = u[1];
// Real 'y_$Py1' = y[1];
// Real 'y_$Py2' = y[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -105,18 +105,18 @@ readFile("linear_p_nonlinsys.log"); // Check that output log is empty
// input Real u[1](start = u0);
// output Real y[2];
// output Real z[6];
// Real 'x_Pb1Px' = x[1];
// Real 'x_Pc1Px1' = x[2];
// Real 'x_Pc1Px2' = x[3];
// Real 'u_Pu1' = u[1];
// Real 'y_Py1' = y[1];
// Real 'y_Py2' = y[2];
// Real 'z_Pa1Py' = z[1];
// Real 'z_Pc1Py' = z[2];
// Real 'z_Pc1Py1' = z[3];
// Real 'z_Pu1' = z[4];
// Real 'z_Py1' = z[5];
// Real 'z_Py2' = z[6];
// Real 'x_$Pb1$Px' = x[1];
// Real 'x_$Pc1$Px1' = x[2];
// Real 'x_$Pc1$Px2' = x[3];
// Real 'u_$Pu1' = u[1];
// Real 'y_$Py1' = y[1];
// Real 'y_$Py2' = y[2];
// Real 'z_$Pa1$Py' = z[1];
// Real 'z_$Pc1$Py' = z[2];
// Real 'z_$Pc1$Py1' = z[3];
// Real 'z_$Pu1' = z[4];
// Real 'z_$Py1' = z[5];
// Real 'z_$Py2' = z[6];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
22 changes: 11 additions & 11 deletions openmodelica/linearization/simTwoTank.mos
Expand Up @@ -55,10 +55,10 @@ readFile("linear_twoflattankmodel.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[1](start = u0);
// output Real y[1];
// Real 'x_Ph1' = x[1];
// Real 'x_Ph2' = x[2];
// Real 'u_PF' = u[1];
// Real 'y_PF2' = y[1];
// Real 'x_$Ph1' = x[1];
// Real 'x_$Ph2' = x[2];
// Real 'u_$PF' = u[1];
// Real 'y_$PF2' = y[1];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -103,13 +103,13 @@ readFile("linear_twoflattankmodel.log"); // Check that output log is empty
// input Real u[1](start = u0);
// output Real y[1];
// output Real z[3];
// Real 'x_Ph1' = x[1];
// Real 'x_Ph2' = x[2];
// Real 'u_PF' = u[1];
// Real 'y_PF2' = y[1];
// Real 'z_PF' = z[1];
// Real 'z_PF1' = z[2];
// Real 'z_PF2' = z[3];
// Real 'x_$Ph1' = x[1];
// Real 'x_$Ph2' = x[2];
// Real 'u_$PF' = u[1];
// Real 'y_$PF2' = y[1];
// Real 'z_$PF' = z[1];
// Real 'z_$PF1' = z[2];
// Real 'z_$PF2' = z[3];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
8 changes: 4 additions & 4 deletions openmodelica/linearization/simVanDerPol.mos
Expand Up @@ -62,8 +62,8 @@ readFile("linear_VanDerPol.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -104,8 +104,8 @@ readFile("linear_VanDerPol.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
16 changes: 8 additions & 8 deletions openmodelica/linearization/simextfunction.mos
Expand Up @@ -80,8 +80,8 @@ readFile("linear_extfunction.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -127,8 +127,8 @@ readFile("linear_extfunction.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -169,8 +169,8 @@ readFile("linear_extfunction.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -209,8 +209,8 @@ readFile("linear_extfunction.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
8 changes: 4 additions & 4 deletions openmodelica/linearization/smallValues.mos
Expand Up @@ -55,8 +55,8 @@ readFile("linear_VanDerPolSmallValue.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -101,8 +101,8 @@ readFile("linear_VanDerPolSmallValue.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
44 changes: 22 additions & 22 deletions openmodelica/linearization/testMathFuncs.mos
Expand Up @@ -79,20 +79,20 @@ readFile("linear_mathFuncsTest.log"); // Check that output log is empty
// input Real u[0];
// output Real y[6];
// output Real z[6];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'y_Pr1' = y[1];
// Real 'y_Pr2' = y[2];
// Real 'y_Pr3' = y[3];
// Real 'y_Pr4' = y[4];
// Real 'y_Pr5' = y[5];
// Real 'y_Pr6' = y[6];
// Real 'z_Pr1' = z[1];
// Real 'z_Pr2' = z[2];
// Real 'z_Pr3' = z[3];
// Real 'z_Pr4' = z[4];
// Real 'z_Pr5' = z[5];
// Real 'z_Pr6' = z[6];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// Real 'y_$Pr1' = y[1];
// Real 'y_$Pr2' = y[2];
// Real 'y_$Pr3' = y[3];
// Real 'y_$Pr4' = y[4];
// Real 'y_$Pr5' = y[5];
// Real 'y_$Pr6' = y[6];
// Real 'z_$Pr1' = z[1];
// Real 'z_$Pr2' = z[2];
// Real 'z_$Pr3' = z[3];
// Real 'z_$Pr4' = z[4];
// Real 'z_$Pr5' = z[5];
// Real 'z_$Pr6' = z[6];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -133,14 +133,14 @@ readFile("linear_mathFuncsTest.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[6];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'y_Pr1' = y[1];
// Real 'y_Pr2' = y[2];
// Real 'y_Pr3' = y[3];
// Real 'y_Pr4' = y[4];
// Real 'y_Pr5' = y[5];
// Real 'y_Pr6' = y[6];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// Real 'y_$Pr1' = y[1];
// Real 'y_$Pr2' = y[2];
// Real 'y_$Pr3' = y[3];
// Real 'y_$Pr4' = y[4];
// Real 'y_$Pr5' = y[5];
// Real 'y_$Pr6' = y[6];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
12 changes: 6 additions & 6 deletions openmodelica/linearization/test_01.mos
Expand Up @@ -64,8 +64,8 @@ list(linear_simple__test);
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Pz1' = x[1];
// Real 'x_Pz2' = x[2];
// Real 'x_$Pz1' = x[1];
// Real 'x_$Pz2' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -110,10 +110,10 @@ list(linear_simple__test);
// input Real u[0];
// output Real y[0];
// output Real z[2];
// Real 'x_Pz1' = x[1];
// Real 'x_Pz2' = x[2];
// Real 'z_Pfac' = z[1];
// Real 'z_Py' = z[2];
// Real 'x_$Pz1' = x[1];
// Real 'x_$Pz2' = x[2];
// Real 'z_$Pfac' = z[1];
// Real 'z_$Py' = z[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
8 changes: 4 additions & 4 deletions openmodelica/linearization/test_02.mos
Expand Up @@ -66,8 +66,8 @@ readFile("linear_simple__test.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -113,8 +113,8 @@ readFile("linear_simple__test.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[0];
// Real 'x_Px' = x[1];
// Real 'x_Py' = x[2];
// Real 'x_$Px' = x[1];
// Real 'x_$Py' = x[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
8 changes: 4 additions & 4 deletions openmodelica/linearization/test_03.mos
Expand Up @@ -66,7 +66,7 @@ readFile("linear_simple__test.log"); // Check that output log is empty
// Real x[1](start = x0);
// input Real u[0];
// output Real y[0];
// Real 'x_Pa' = x[1];
// Real 'x_$Pa' = x[1];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -112,9 +112,9 @@ readFile("linear_simple__test.log"); // Check that output log is empty
// input Real u[0];
// output Real y[0];
// output Real z[2];
// Real 'x_Pa' = x[1];
// Real 'z_Pb' = z[1];
// Real 'z_Pc' = z[2];
// Real 'x_$Pa' = x[1];
// Real 'z_$Pb' = z[1];
// Real 'z_$Pc' = z[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down
20 changes: 10 additions & 10 deletions openmodelica/linearization/test_04.mos
Expand Up @@ -65,10 +65,10 @@ readFile("linear_simple__test.log"); // Check that output log is empty
// Real x[2](start = x0);
// input Real u[1](start = u0);
// output Real y[1];
// Real 'x_Px1' = x[1];
// Real 'x_Px2' = x[2];
// Real 'u_Pu' = u[1];
// Real 'y_Py' = y[1];
// Real 'x_$Px1' = x[1];
// Real 'x_$Px2' = x[2];
// Real 'u_$Pu' = u[1];
// Real 'y_$Py' = y[1];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down Expand Up @@ -114,12 +114,12 @@ readFile("linear_simple__test.log"); // Check that output log is empty
// input Real u[1](start = u0);
// output Real y[1];
// output Real z[2];
// Real 'x_Px1' = x[1];
// Real 'x_Px2' = x[2];
// Real 'u_Pu' = u[1];
// Real 'y_Py' = y[1];
// Real 'z_Pu' = z[1];
// Real 'z_Py' = z[2];
// Real 'x_$Px1' = x[1];
// Real 'x_$Px2' = x[2];
// Real 'u_$Pu' = u[1];
// Real 'y_$Py' = y[1];
// Real 'z_$Pu' = z[1];
// Real 'z_$Py' = z[2];
// equation
// der(x) = A * x + B * u;
// y = C * x + D * u;
Expand Down

0 comments on commit 1ebb164

Please sign in to comment.