|
[Sponsors] |
how to increase maximum number iterations to > 1000? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 11, 2011, 22:50 |
how to increase maximum number iterations to > 1000?
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
June 12, 2011, 09:18 |
|
#2 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
lduMatrix has a maxIter parameter, at least in the version of OpenFOAM I'm looking at
__________________
David A. Boger |
|
June 12, 2011, 10:28 |
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, David,
Thanks for the reply! But,where can I find lduMatrix? Pei |
|
June 12, 2011, 10:40 |
|
#4 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
June 12, 2011, 10:41 |
|
#5 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
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.)
__________________
David A. Boger |
|
June 12, 2011, 10:50 |
|
#6 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
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 |
|
September 25, 2011, 18:02 |
|
#7 |
New Member
Dimyriiy Bogdanov
Join Date: Mar 2011
Location: Saint-Petersburg, Russia
Posts: 5
Rep Power: 15 |
Thanks. Your topic unbelievable helps me!!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
icoLagrangianFoam OF1.6 myNewParticleSolver | heavy_user | OpenFOAM | 23 | June 2, 2020 03:18 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Full pipe 3D using icoFoam | cyberbrain | OpenFOAM | 4 | March 16, 2011 10:20 |