Skip to content

Commit

Permalink
Expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
vruge committed Mar 31, 2016
1 parent 55d9dc4 commit e6b7f7d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions simulation/modelica/nonlinear_system/problem11.mos
Expand Up @@ -93,18 +93,18 @@ val(x[1],{0.0, 0.5, 1.0, 1.5, 5});
// ------------
// update eqn[4]
// x[3] / a = (a ^ 2.0 + b ^ 2.0) * x[2] / a + log(1.0 + time) + ((-a ^ 2.0) - b ^ 2.0) * x[1] / a + 1.0 / a + (-a) - b--old--
// __OMC__1$LOOPT = -1.0 + a ^ 2.0 + (b - log(1.0 + time)) * a -- new eqn--
// __OMC__0$LOOPT = -1.0 + a ^ 2.0 + (b - log(1.0 + time)) * a -- new eqn--
// __OMC__2$LOOPF = (-a ^ 2.0) - b ^ 2.0 -- new eqn--
// __OMC__3$LOOPF = a ^ 2.0 + b ^ 2.0 -- new eqn--
// => __OMC__3$LOOPF * x[2] + __OMC__2$LOOPF * x[1] - x[3] = __OMC__1$LOOPT--new--
// => __OMC__3$LOOPF * x[2] + __OMC__2$LOOPF * x[1] - x[3] = __OMC__0$LOOPT--new--
// update eqn[5]
// x[2] ^ 2.0 = b + x[1] / b + a - a * x[2] ^ 2.0--old--
// __OMC__4$LOOPT = ((-b) - a) * b -- new eqn--
// => x[1] - b * x[2] ^ 2.0 * (1.0 + a) = __OMC__4$LOOPT--new--
// __OMC__2$LOOPT = ((-b) - a) * b -- new eqn--
// => x[1] - b * x[2] ^ 2.0 * (1.0 + a) = __OMC__2$LOOPT--new--
// update eqn[6]
// x[1] = b * (x[2] ^ 2.0 + x[3] + cos(time))--old--
// __OMC__5$LOOPT = cos(time) -- new eqn--
// => b * (__OMC__5$LOOPT + x[2] ^ 2.0 + x[3]) - x[1] = 0.0--new--
// __OMC__9$LOOPT = cos(time) -- new eqn--
// => b * (__OMC__9$LOOPT + x[2] ^ 2.0 + x[3]) - x[1] = 0.0--new--
// END: simplifyLoops
// START: simplifyLoops
// ------ Tearing ------
Expand All @@ -115,18 +115,18 @@ val(x[1],{0.0, 0.5, 1.0, 1.5, 5});
// ------------
// update eqn[2]
// x[1] = b * (x[2] ^ 2.0 + x[3] + cos(time))--old--
// __OMC__1$LOOPT = cos(time) -- new eqn--
// => b * (__OMC__1$LOOPT + x[2] ^ 2.0 + x[3]) - x[1] = 0.0--new--
// __OMC__14$LOOPT = cos(time) -- new eqn--
// => b * (__OMC__14$LOOPT + x[2] ^ 2.0 + x[3]) - x[1] = 0.0--new--
// update eqn[3]
// x[2] ^ 2.0 = b + x[1] / b + a - a * x[2] ^ 2.0--old--
// __OMC__2$LOOPT = ((-b) - a) * b -- new eqn--
// => x[1] - b * x[2] ^ 2.0 * (1.0 + a) = __OMC__2$LOOPT--new--
// __OMC__17$LOOPT = ((-b) - a) * b -- new eqn--
// => x[1] - b * x[2] ^ 2.0 * (1.0 + a) = __OMC__17$LOOPT--new--
// update eqn[4]
// x[3] / a = (a ^ 2.0 + b ^ 2.0) * x[2] / a + log(1.0 + time) + ((-a ^ 2.0) - b ^ 2.0) * x[1] / a + 1.0 / a + (-a) - b--old--
// __OMC__3$LOOPT = -1.0 + a ^ 2.0 + (b - log(1.0 + time)) * a -- new eqn--
// __OMC__22$LOOPT = -1.0 + a ^ 2.0 + (b - log(1.0 + time)) * a -- new eqn--
// __OMC__4$LOOPF = (-a ^ 2.0) - b ^ 2.0 -- new eqn--
// __OMC__5$LOOPF = a ^ 2.0 + b ^ 2.0 -- new eqn--
// => __OMC__5$LOOPF * x[2] + __OMC__4$LOOPF * x[1] - x[3] = __OMC__3$LOOPT--new--
// => __OMC__5$LOOPF * x[2] + __OMC__4$LOOPF * x[1] - x[3] = __OMC__22$LOOPT--new--
// END: simplifyLoops
// record SimulationResult
// resultFile = "nonlinear_system.problem11_res.mat",
Expand Down

0 comments on commit e6b7f7d

Please sign in to comment.