
[Sponsors] 
October 28, 2017, 12:07 
PIMPLE minimum iterations

#1 
New Member
Join Date: Apr 2014
Location: Germany
Posts: 24
Rep Power: 12 
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 

October 31, 2017, 15:36 

#2 
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 
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.


April 9, 2019, 09:56 

#3 
New Member
Sebastian
Join Date: Sep 2013
Posts: 14
Rep Power: 12 
Dear Moritz,
did you find a solution to this? I also need a minimum PIMPLE iteration, since the solution is controled via residualcontrol, but it is not possible for on of the fields that are selfimplemented. Therefore I would like to force a mimimum iteration quantity. Best, Sebastian 

April 10, 2019, 04:21 

#4 
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10 
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 selfimplemented 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. 

April 10, 2019, 04:34 

#5  
New Member
Sebastian
Join Date: Sep 2013
Posts: 14
Rep Power: 12 
Thanks for your answer Ruiyan
Quote:
All the other time steps converge within 25 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 1050. Quote:
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. 

April 10, 2019, 08:16 

#6 
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10 
I'm confused, as it sounds like you can just set a very strict convergence criterion for the selfimplemented variable (as low as you want, like relTol to 1e08 and tolerance to 1e18 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 selfimplemented 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. 

Thread Tools  Search this Thread 
Display Modes  


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 12:30 
chtMultiRegionSimpleFoam turbulent case  Aditya Patil  OpenFOAM Running, Solving & CFD  6  April 24, 2017 22:13 
Moving mesh  Niklas Wikstrom (Wikstrom)  OpenFOAM Running, Solving & CFD  122  June 15, 2014 06:20 
pimpleFoam: turbulence>correct(); is not executed when using residualControl  hfs  OpenFOAM Running, Solving & CFD  3  October 29, 2013 08:35 
calculation stops after few time steps  sivakumar  OpenFOAM Running, Solving & CFD  7  March 17, 2013 06:37 