The logarithms are likely causing problems. You could add a guard to their arguments make sure their functional values don’t blow up, or maybe try a smaller relaxation parameter. Consider also: Default absolute tolerance and relative tolerance - #4 by nate.
nate
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| NonlinearProblem nan tolerance | 11 | 337 | January 22, 2025 | |
| Problem with residual | 3 | 786 | July 30, 2020 | |
| Finite relative residuals for 0th Newton iteration in time-dependent problem | 8 | 361 | April 21, 2025 | |
| NewtonSolver residuals go to zero, meaningless solution | 6 | 516 | August 8, 2023 | |
| Getting residual "nan" from the start | 5 | 787 | October 4, 2023 |