CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   DICPCG max iteration limit (https://www.cfd-online.com/Forums/openfoam-solving/58853-dicpcg-max-iteration-limit.html)

msrinath80 May 28, 2008 23:16

For some very fine mesh proble
 
For some very fine mesh problems I need to increase the maximum iteration limit from 1001 to say, 1500.

Can someone tell me where I can find this 1001 iteration limit so that I can change it to suit my needs. Specifically which source or header file?

Thanks!

andersking May 29, 2008 02:03

All the solver controls live i
 
All the solver controls live in

system/fvSolution

Cheers,
Andrew

dmoroian May 29, 2008 02:08

Hi Srinath, Try here: Open
 
Hi Srinath,
Try here:

OpenFOAM/lnInclude/lduMatrixSolver.C: maxIter_(1000)


I hope is helpful,
Dragos

andersking May 29, 2008 02:22

Hi Dragos, Srinath, The max
 
Hi Dragos, Srinath,

The maxIter value in the source should be overwritten with the one read from the fvSolution file, as far as I am aware. These must be specified in OF-1.4.1 (at least I've had a lot of errors when they weren't). This goes for minIter too.
No recompilation needed.

Cheers
Andrew

dmoroian May 29, 2008 02:56

...http://www.cfd-online.com/O
 
...http://www.cfd-online.com/OpenFOAM_D...part/proud.gif Of course, you're right Andrew!
This happens when I try to be too "smart" http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif!

msrinath80 May 29, 2008 17:24

The solvers section from fvSol
 
The solvers section from fvSolution in the cavity case of OF 1.4.1 contains the following:

solvers
{
p PCG
{
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};

U PBiCG
{
preconditioner DILU;
tolerance 1e-05;
relTol 0;
};
}

Where is the maxiterations to be specified and what is the keyword and format?

andersking May 29, 2008 21:03

Hi Srinath, just add maxI
 
Hi Srinath,

just add
maxIter 1000;
minIter 0;

after the relTol line in both solvers, (before the };)

Of course, change 1000 to be whatever new maximum you would like.

Cheers
Andrew

msrinath80 May 31, 2008 04:23

Thanks Andrew!
 
Thanks Andrew!


All times are GMT -4. The time now is 00:36.