Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How to get the state at the last solver step before error?
Posted 30 avr. 2012, 20:23 UTC−4 Results & Visualization, Studies & Solvers Version 4.2a 1 Reply
Please login with a confirmed email address before reporting spam
From time to time I'm getting errors such as
"Nonlinear solver did not converge.
Error in user-defined function."
What would help is if I could get the values of the dependent variables as they were at the beginning of the time step or iteration which did not converge.
One way that almost works is selecting "Results While Solving", and putting in the appropriate graph, "Update at" "Steps taken by solver". (Not "Output from solver", because that's much more coarse.)
This is not satisfactory, because the simulation slows down as a result of repetitive plotting such that it never reaches the error in reasonable time. The error occurs after tens of thousands of time steps, and the simulation slows down to a crawl well before then, and has to be cancelled.
The annoying thing is that the values that I need are right there inside Comsol, only I can't find any way to display them.
"Nonlinear solver did not converge.
Error in user-defined function."
What would help is if I could get the values of the dependent variables as they were at the beginning of the time step or iteration which did not converge.
One way that almost works is selecting "Results While Solving", and putting in the appropriate graph, "Update at" "Steps taken by solver". (Not "Output from solver", because that's much more coarse.)
This is not satisfactory, because the simulation slows down as a result of repetitive plotting such that it never reaches the error in reasonable time. The error occurs after tens of thousands of time steps, and the simulation slows down to a crawl well before then, and has to be cancelled.
The annoying thing is that the values that I need are right there inside Comsol, only I can't find any way to display them.
1 Reply Last Post 30 avr. 2012, 22:00 UTC−4