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

simplefoam does not stop upon convergence

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Hr_kules
  • 1 Post By michael3000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2023, 09:31
Default simplefoam does not stop upon convergence
  #1
New Member
 
Schweiz
Join Date: Aug 2022
Posts: 8
Rep Power: 4
michael3000 is on a distinguished road
I set the following convergence criterion in the fvSolution dict:

Code:
SIMPLE
{
    residualControl
    {
        p               0.005; // default: 1e-4
        U               0.005; // default: 1e-4
        "(k|omega|epsilon)" 0.005; // default: 1e-4
    }
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue       0;

}

simplefoam "acknowledges" the criterion in the log:

Code:
SIMPLE: convergence criteria
    field p	 tolerance 0.005
    field U	 tolerance 0.005
    field "(k|omega|epsilon)"	 tolerance 0.005

On t=46 convergence is reached, but it still does not stop but runs to the 50 timesteps as given in the controlDict

Code:
Time = 46

smoothSolver:  Solving for Ux, Initial residual = 0.00132339, Final residual = 0.000118212, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 0.00828419, Final residual = 0.000747561, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 0.00586836, Final residual = 0.000477364, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.0446904, Final residual = 0.00266224, No Iterations 2
time step continuity errors : sum local = 5.56276e-05, global = -6.44437e-06, cumulative = -0.000195527
smoothSolver:  Solving for epsilon, Initial residual = 0.00314368, Final residual = 0.00022914, No Iterations 1
smoothSolver:  Solving for k, Initial residual = 0.00534749, Final residual = 0.000112692, No Iterations 2
ExecutionTime = 2.18 s  ClockTime = 4 s

controlDict:


Code:
startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         50;

deltaT          1;
What do I need to change such that simplefoam actually stops upon convergence? (There are many questions about this already, but as far as I see, I do everything as recommended...)
michael3000 is offline   Reply With Quote

Old   March 21, 2023, 09:48
Default
  #2
Senior Member
 
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6
Hr_kules is on a distinguished road
Hi, as far as i can tell, you didn't reach convergence. The criteria applies to the inital residual.

In your case for p = 0.005
The inital residual for p = 0.0446904
For U = 0.005
The initial u residuals:
Solving for Ux, Initial residual = 0.00132339
Solving for Uy, Initial residual = 0.00828419
Solving for Uz, Initial residual = 0.00586836

Just increase the endTime and see if the case converges
michael3000 likes this.
Hr_kules is offline   Reply With Quote

Old   March 21, 2023, 10:51
Default
  #3
New Member
 
Schweiz
Join Date: Aug 2022
Posts: 8
Rep Power: 4
michael3000 is on a distinguished road
Quote:
Originally Posted by Hr_kules View Post
Hi, as far as i can tell, you didn't reach convergence. The criteria applies to the inital residual.
That explains it! Thanks a lot :-)
Hr_kules likes this.
michael3000 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
Square duct flow with cyclic inlet outlet - simpleFoam Convergence issue Vino OpenFOAM Running, Solving & CFD 7 January 25, 2019 03:55
simpleFoam: simple 1-D channel flow, yet very strange convergence behavior kishpishar OpenFOAM Running, Solving & CFD 2 June 20, 2013 14:55
simpleFoam Convergence Stalling Greg Givogue OpenFOAM Running, Solving & CFD 6 March 9, 2011 21:23
Convergence Problems SimpleFOAM Kutti OpenFOAM 16 June 14, 2010 09:12
Convergence of CFX field in FSI analysis nasdak CFX 2 June 29, 2009 02:17


All times are GMT -4. The time now is 08:33.