how to increase maximum number iterations to > 1000?
Hi,
I am solving an interFoam case. When solving p_rgh, maximum iterations is 1000 (when using PCG). Is there a way to increase to a higher number? Thanks! Pei |
lduMatrix has a maxIter parameter, at least in the version of OpenFOAM I'm looking at
|
Hi, David,
Thanks for the reply! But,where can I find lduMatrix? Pei |
Hi, David,
OK, I found lduMatric.H that references maxIter. But, I am still looking for where maxIter is given. See you at PSU tomorrow. Pei |
You can find lduMatrix as a class in the C++ code, either through the files or through Doxygen (e.g. go to http://www.openfoam.com/docs/cpp/ and search for maxIter).
If you're not interested in the source code, the point is this: you can add maxIter as an entry in your PCG dictionary in fvSolution and set its value to whatever you want. (1000 is the default.) |
Hi, David,
Thanks a lot! I found out that the default was set in lduMatrixSolver.C. Also nice to know that I can specify this in PCG dictionary without changing the source code. Pei |
Thanks. Your topic unbelievable helps me!!
|
All times are GMT -4. The time now is 01:19. |