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

PIMPLE minimum iterations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2017, 13:07
Default PIMPLE minimum iterations
  #1
MSF
New Member
 
Join Date: Apr 2014
Location: Germany
Posts: 24
Rep Power: 12
MSF is on a distinguished road
Hello,

is there a possibility to specify a minimum number of iterations for the PIMPLE Loop? E.g. I want the loop to be executed at leat 4 times every time step.

Best,

Moritz
MSF is offline   Reply With Quote

Old   October 31, 2017, 16:36
Default
  #2
Senior Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17
matejfor is on a distinguished road
By default we do not set the min and max # of the PIMPLE loops. You set a number of loops to execute. period, end of story. try it yourself.
matejfor is offline   Reply With Quote

Old   April 9, 2019, 10:56
Default
  #3
New Member
 
Sebastian
Join Date: Sep 2013
Posts: 14
Rep Power: 13
BuzzB is on a distinguished road
Dear Moritz,


did you find a solution to this? I also need a minimum PIMPLE iteration, since the solution is controled via residual-control, but it is not possible for on of the fields that are self-implemented. Therefore I would like to force a mimimum iteration quantity.


Best, Sebastian
BuzzB is offline   Reply With Quote

Old   April 10, 2019, 05:21
Default
  #4
Senior Member
 
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10
cryabroad is on a distinguished road
Why do you need a minimum number of iterations to be specified? If the solution converges, say in 3 iterations, that's great news isn't it? More importantly, let's say there's a way to set the minimum number of iterations during a single time step, how can you make sure that the number you are using is reasonable?

For self-implemented variables (and suppose you are solving some kind of equations to calculate them) you can also set the residual criteria, just like how you set the criteria for other standard variables (p, U, etc.), through relTol and tolerance.
cryabroad is offline   Reply With Quote

Old   April 10, 2019, 05:34
Default
  #5
New Member
 
Sebastian
Join Date: Sep 2013
Posts: 14
Rep Power: 13
BuzzB is on a distinguished road
Thanks for your answer Ruiyan

Quote:
Originally Posted by cryabroad View Post
Why do you need a minimum number of iterations to be specified? If the solution converges, say in 3 iterations, that's great news isn't it?
I need it, because for the first few timesteps, the solution needs more PIMPLE iterations to converge, say 50.

All the other time steps converge within 2-5 PIMPLE iterations, expecially, if I increase the corrector (nCorrector and/or nNonOrthogonalCorrectors) steps. Except one field, the self implemented on, which would need, say, 10 PIMPLE iterations. So I would like to set the number of PIMPLE iterations to 10-50.


Quote:
Originally Posted by cryabroad View Post
More importantly, let's say there's a way to set the minimum number of iterations during a single time step, how can you make sure that the number you are using is reasonable?
Via trial and error!

Quote:
Originally Posted by cryabroad View Post
For self-implemented variables (and suppose you are solving some kind of equations to calculate them) you can also set the residual criteria, just like how you set the criteria for other standard variables (p, U, etc.), through relTol and tolerance.
Sure, but this is only for the inner iteration of the specific equation solver. This diverges in some cases within one PIMPLE step but converges, if more PIMPLE steps are calculated.
BuzzB is offline   Reply With Quote

Old   April 10, 2019, 09:16
Default
  #6
Senior Member
 
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10
cryabroad is on a distinguished road
I'm confused, as it sounds like you can just set a very strict convergence criterion for the self-implemented variable (as low as you want, like relTol to 1e-08 and tolerance to 1e-18 maybe) and the number of MAX PIMPLE iterations, and you are good to go.

You can set different convergence criterion for each of the variables you are using, and you set these when specifying the individual linear solvers (which you will do, of course) and in residualControl in the PIMPLE entry (where you set nCorrectors and nOuterCorrectors). So in your log file you will see things like "solving Ux, ..." but also "solving for name of your own variable, ...". If you set the convergence criterion strict enough for your self-implemented variable, the PIMPLE calculation goes on even if other variables have converged.

I'm not sure if I get your questions right or not, please clarify.
cryabroad 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
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 23:13
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37


All times are GMT -4. The time now is 01:23.