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

converge condition for simpleFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 17, 2011, 01:41
Default converge condition for simpleFoam
  #1
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
EmadTandis is on a distinguished road
Hello everyone
I want to stop simpleFoam solver when solution is converged. As we know this solver is steady state solver. How can I determine converge condition?
EmadTandis is offline   Reply With Quote

Old   December 17, 2011, 03:24
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
You can set the convergence criteria per each variables in fvSolution, inside the residualControl sub-dictionary:

Code:
SIMPLE
{
    nNonOrthogonalCorrectors 2;
    pRefCell        0;
    pRefValue       0;

    residualControl
    {
        p               1e-5;
        U               1e-5;
        nuTilda       1e-5;
    }
}
Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   December 17, 2011, 08:15
Default
  #3
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
EmadTandis is on a distinguished road
Thanks for your attention. The test case is cavity at Re=10 on 70*70 mesh. I want solution process stops when for example residuals less than 1e-3. But it does not stop. when I set end time =20000 the solution will continue to 20000s and will not stop. Why?
EmadTandis is offline   Reply With Quote

Old   December 17, 2011, 08:48
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
What version of OpenFOAM are you using? It should work in 2.0 and newer.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   December 17, 2011, 08:54
Default
  #5
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
EmadTandis is on a distinguished road
It is version 1.7.1. Do you mean I should update it?
EmadTandis is offline   Reply With Quote

Old   December 17, 2011, 08:57
Default
  #6
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
The syntax was different in 1.7.x. You can use

Code:
convergenceCriterion 1.0e-3;
in fvSolution/SIMPLE subdictionary. The new syntax works only in OpenFOAM 2.0.x.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   December 17, 2011, 09:16
Default
  #7
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
EmadTandis is on a distinguished road
I used this:
SIMPLE
{
nNonOrthogonalCorrectors 2;
pRefCell 0;
pRefValue 0;
convergenceCriterion 1.0e-1;
}
But it makes no difference!
EmadTandis is offline   Reply With Quote

Old   December 17, 2011, 11:05
Default
  #8
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
I cannot reproduce your problem. It should work.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   December 17, 2011, 12:23
Default
  #9
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
EmadTandis is on a distinguished road
Thanks very much for your time.
EmadTandis is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pressure oulet condition nam su FLUENT 2 January 24, 2012 05:48
CFX problems with supersonic inlet condition - Inlet values in CFX-Post are wrong jannnesss CFX 5 February 25, 2011 17:24
How to resolve boundary condition problem? sam FLUENT 2 July 20, 2003 02:19
Pressure Boundary Condition Matt Umbel Main CFD Forum 0 January 11, 2002 11:06
The Boundary Condition about the Flat Plate boing Main CFD Forum 1 January 6, 2002 17:53


All times are GMT -4. The time now is 14:35.