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.
Monitoring dependent variables residuals while solving
Posted 29 sept. 2020, 06:35 UTC−4 Parameters, Variables, & Functions, Results & Visualization, Studies & Solvers 2 Replies
Please login with a confirmed email address before reporting spam
The below post is related to an archived discussion
[start here]
Hello everyone,
I'm referring to this old post beacuse I had the same problem. I solved it partially, as I managed to plot the error vs iterations during my time-dependent computation: I found that, if you go under Study -> Solver Configurations -> Solution1 -> Time-Dependent Solver -> Advanced and you choose the option "Detailed" in the "Solver Log" menu, Comsol will display two convergence plots, one showing the reciprocal of step size vs time step, and another showing the error vs the iterations. Of course, to make the above setting visible, you first have to right-click on your Study and hit the "Show default solver" button.
However, I still have some questions:
1) How is defined the Error showed by Comsol in the convergence plot? Does it correspond to the global residual of the modeling equations?
2) How Comsol scale residuals? Can I customize the way residuals are scaled and normalized? (for example, I'd like to scale the residuals with the highest calculated residual after N iterations)
3) How can I plot the scaled residuals of each variable during the solving process, instead of the global residual?
Many thanks to anybody who can provide some help, I'd really appreciate it. Kind regards