Opened 11 years ago
Closed 11 years ago
#2231 closed defect (fixed)
radau1 solver fails on a simple model
Reported by: | anonymous | Owned by: | Vitalij Ruge |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Run-time | Version: | trunk |
Keywords: | solver, radau | Cc: | Vitalij Ruge |
Description
the solver "radau1" fails on the following simple model:
model Test1 parameter Integer n = 1; parameter Real x0[n] = {1}; Real x[n](start=x0); parameter Real a = 1; equation der(x) = a*x; end Test1;
For me the solver runs forever without any solution.
Change History (9)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 11 years ago
No wonder.
Probably, we should rename radau1 in implicit Euler.
(The eigenvalue from the ode is 1. So the solver is not inside the stability region.)
comment:4 by , 11 years ago
Well, it is okay that radau1 cannot handle this model. But the solver should not get into an infinity loop. The simulation should stop at some point and print some meaningful message.
comment:5 by , 11 years ago
But there is an error. If I change a to -1 radau1 still gets into an infinity loop.
comment:6 by , 11 years ago
don't forget the stepSize ;) for stability region (z = lambda*h).
I think it's "only" stability of the solver.
Infinity loop should be fixed now.
comment:7 by , 11 years ago
Sure, the step size needs to be taken into account. But for the stability of radau1 (stage 1 as well as stage 2) it does not matter in the case of negative real eigenvalues. It should be fine for each step size.
comment:8 by , 11 years ago
You are right.
I have changed the linear solver in Kinsol.
Now, it's should work.
comment:9 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Then, the ticket can be closed. (fixed in r16258)
radau3 works fine. radau1 does get stuck though...