CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

DICPCG max iteration limit

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2008, 23:16
Default For some very fine mesh proble
  #1
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 698
Rep Power: 12
msrinath80 is on a distinguished road
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!
msrinath80 is offline   Reply With Quote

Old   May 29, 2008, 02:03
Default All the solver controls live i
  #2
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 81
Rep Power: 8
andersking is on a distinguished road
All the solver controls live in

system/fvSolution

Cheers,
Andrew
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   May 29, 2008, 02:08
Default Hi Srinath, Try here: Open
  #3
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Hi Srinath,
Try here:

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


I hope is helpful,
Dragos
dmoroian is offline   Reply With Quote

Old   May 29, 2008, 02:22
Default Hi Dragos, Srinath, The max
  #4
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 81
Rep Power: 8
andersking is on a distinguished road
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
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   May 29, 2008, 02:56
Default ...http://www.cfd-online.com/O
  #5
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
... Of course, you're right Andrew!
This happens when I try to be too "smart" !
dmoroian is offline   Reply With Quote

Old   May 29, 2008, 17:24
Default The solvers section from fvSol
  #6
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 698
Rep Power: 12
msrinath80 is on a distinguished road
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?
msrinath80 is offline   Reply With Quote

Old   May 29, 2008, 21:03
Default Hi Srinath, just add maxI
  #7
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 81
Rep Power: 8
andersking is on a distinguished road
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
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   May 31, 2008, 04:23
Default Thanks Andrew!
  #8
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 698
Rep Power: 12
msrinath80 is on a distinguished road
Thanks Andrew!
msrinath80 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to increase "Newton Pressure Iteration Limit" kus CFX 9 April 21, 2013 01:54
Solver BICCG DILUPBiCG DICPCG mamaly60 OpenFOAM Running, Solving & CFD 2 October 31, 2007 08:03
DICPCG solver in interFoam m9819348 OpenFOAM Running, Solving & CFD 1 September 20, 2007 13:10
limit of the CFX Eric CFX 7 December 4, 2006 13:42
Limit of CFD mourad Abdelmalek CD-adapco 2 October 23, 2000 08:27


All times are GMT -4. The time now is 14:48.