Ticket #6408: ModelWithHomotopy2.mo
| File ModelWithHomotopy2.mo, 370 bytes (added by , 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | model ModelWithHomotopy2 |
| 2 | |
| 3 | parameter Real startA = 1; |
| 4 | final parameter Real a(start=startA, fixed=false); |
| 5 | |
| 6 | Real x; |
| 7 | Real y; |
| 8 | Real z; |
| 9 | initial equation |
| 10 | x^a = 2; |
| 11 | equation |
| 12 | x = 2; |
| 13 | y = homotopy(x, 3); |
| 14 | z+ 1e-3*sin(z) = 4*y; |
| 15 | annotation( |
| 16 | __OpenModelica_simulationFlags(lv = "LOG_INIT_HOMOTOPY,LOG_NLS,LOG_NLS_V,LOG_STATS", s = "dassl")); |
| 17 | end ModelWithHomotopy2; |
