CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

how to increase maximum number iterations to > 1000?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2011, 22:50
Default how to increase maximum number iterations to > 1000?
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   June 12, 2011, 09:18
Default
  #2
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
lduMatrix has a maxIter parameter, at least in the version of OpenFOAM I'm looking at
__________________
David A. Boger
boger is offline   Reply With Quote

Old   June 12, 2011, 10:28
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, David,

Thanks for the reply!

But,where can I find lduMatrix?

Pei
phsieh2005 is offline   Reply With Quote

Old   June 12, 2011, 10:40
Default
  #4
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   June 12, 2011, 10:41
Default
  #5
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
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
boger is offline   Reply With Quote

Old   June 12, 2011, 10:50
Default
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   September 25, 2011, 18:02
Default
  #7
New Member
 
Dimyriiy Bogdanov
Join Date: Mar 2011
Location: Saint-Petersburg, Russia
Posts: 5
Rep Power: 15
dimyriy is on a distinguished road
Thanks. Your topic unbelievable helps me!!
dimyriy is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:43.