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

PIMPLE residual control not workin in OF. 6.0

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 1 Post By Magistrane
  • 7 Post By Magistrane
  • 2 Post By Gerry Kan
  • 1 Post By sqek

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2019, 14:04
Default PIMPLE residual control not workin in OF. 6.0
  #1
Member
 
Ilan
Join Date: Dec 2018
Posts: 52
Rep Power: 7
Magistrane is on a distinguished road
Dear foamers,


I have a problem when I try to switch my case from OpenFoam 2.3 to OF6.0 in the fvSolutiondict :
My first code was :

Code:
PIMPLE
{
    momentumPredictor        yes;
    correctPhi               yes;
    nOuterCorrectors         1000;
    nCorrectors              1;
    nNonOrthogonalCorrectors 1;
    pRefCell                 0;
    pRefValue                0;
    moveMeshOuterCorrectors  yes;
    consistent               yes;
    
    residualControl
    {
        "(U|p)"
        {
            relTol          0;
            tolerance       1e-6;
        }
    } 
}
It worked on OF 2.3 exactly as expected : pimple's iterations until reaching residuals convergence.


On 6.0, with this code, I receive an error message :



Code:
--> FOAM FATAL ERROR: 
Solution convergence criteria specified in PIMPLE.residualControl must be given as single values. Corrector loop convergence criteria, if appropriate, are specified as dictionaries in PIMPLE.<loopName>ResidualControl.

A read a forum saying that I have to change my code to :
Code:
PIMPLE
{
    momentumPredictor        yes;
    correctPhi               yes;
    nOuterCorrectors         1000;
    nCorrectors              1;
    nNonOrthogonalCorrectors 1;
    pRefCell                 0;
    pRefValue                0;
    moveMeshOuterCorrectors  yes;
    consistent               yes;
    
residualControl
{
    U   1e-06;
    p   1e-06;
}

This is absolutly not working : pimple finish the 1000 iterations before going to the next time step not matter if the residuals are under 1e-06 or not.



Do you have any explanation for me ? Any alternative syntaxe ?

Thanks,
Best regards.
amuzeshi likes this.
Magistrane is offline   Reply With Quote

Old   March 15, 2019, 05:50
Default
  #2
Member
 
Ilan
Join Date: Dec 2018
Posts: 52
Rep Power: 7
Magistrane is on a distinguished road
Up,
residualControl variable name changed.
Remplaced by :


Quote:
outerCorrectorResidualControl
{
"(U|k|epsilon)" { relTol 0; tolerance 0.0001; } }
Magistrane is offline   Reply With Quote

Old   August 22, 2019, 03:30
Default
  #3
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 347
Rep Power: 10
Gerry Kan is on a distinguished road
Folks:

Here is a (rhetorical) question ... if the old "residualControl" is now reassigned to "outerCorrectorResidualControl", what does the new "residualControl" monitor?

Thanks, Gerry.
amuzeshi and SHUBHAM9595 like this.
Gerry Kan is offline   Reply With Quote

Old   December 11, 2019, 14:25
Default
  #4
Member
 
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7
sjohn2 is on a distinguished road
Same question here the outerCorrectorResidualControl does not do anything?
sjohn2 is offline   Reply With Quote

Old   May 18, 2020, 08:25
Default
  #5
Member
 
Join Date: May 2017
Posts: 31
Rep Power: 8
sqek is on a distinguished road
Quote:
Originally Posted by sjohn2 View Post
Same question here the outerCorrectorResidualControl does not do anything?
The absolute and relative tolerances both have to be met, so setting relTol to 0 means it will never count as converged
If you only want the absolute tolerance to be checked set relTol to 1
(So opposite to the solvers section of fvSchemes, where any convergence criteria being met will make it stop, as far as I'm aware)
Mars409 likes this.
sqek 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 12:30
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 22:13
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02: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


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