Setting number of iterations, time step, and convergence criteria #2879
Replies: 3 comments 2 replies
-
I found the example in the script file, I think you should give a guide on the official website, the location of the instance is a little hidden for beginners. |
Beta Was this translation helpful? Give feedback.
-
The code version in the example is too old, and I still can't find the corresponding method for the solver setup |
Beta Was this translation helpful? Give feedback.
-
I assume you're referring to the number of iterations in the nonlinear solver, if that's the case, here's a code snippet from OpenPNM that explains it: OpenPNM/openpnm/algorithms/_reactive_transport.py Lines 21 to 46 in 5e2404c Basically, once you create your algorithm ( alg.settings.newton_maxiter = 100 |
Beta Was this translation helpful? Give feedback.
-
Hello, how to set the number of iterations, iteration step length and convergence criteria, I can not find the relevant methods to set these on the official website
Beta Was this translation helpful? Give feedback.
All reactions