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

Convergence in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree26Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2011, 06:30
Default hello every one
  #21
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 15
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
hi
i m using openfoam200 & i solved tutorial of LCD so i have one doubt is it possible in openfoam to give the residue limits & after achieving that limit the program will stop? if yes then plz tel me how is it possible?

i m still waiting for reply
jignesh_thaker2007 is offline   Reply With Quote

Old   September 8, 2011, 14:03
Default
  #22
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Residual limits? I assume you mean the convergence criteria. These are located in the fvSolution file.
marupio is offline   Reply With Quote

Old   September 8, 2011, 17:58
Default
  #23
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
The "search" function is always your friend ;-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   September 9, 2011, 06:56
Default devid sir,
  #24
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 15
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
yes sir i know it is placed in fvsol dict. but i dont know that how to stop the programe when conversion limit cross.

like in fluent when conversion criteria satisfy then stop the program automatically but in openfoam when it reach the exit time then it stop

so i eager to know sir how can i stop my program automatically when it reaches over the conversion limits

plz reply me

yours faithfully
jignesh
jignesh_thaker2007 is offline   Reply With Quote

Old   September 9, 2011, 16:20
Default
  #25
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
If you specify a convergence criterion, the solver will stop automatically.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   September 9, 2011, 17:07
Default hello sir
  #26
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 15
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
Quote:
Originally Posted by alberto View Post
If you specify a convergence criterion, the solver will stop automatically.

Best,

ya i know but suppose in cavity tutorial tolerance is given same as conversion criteria.
so if i want to stop my program when it will go beyond my conversion criteria then what should i write in fvsol dict.

plz tel me
jignesh_thaker2007 is offline   Reply With Quote

Old   March 6, 2013, 14:05
Default
  #27
New Member
 
Join Date: Apr 2012
Posts: 21
Rep Power: 14
Yahoo is on a distinguished road
I am trying to solve equation

fvScalarMatrix CEqn
(
fvm::ddt(C)
+ fvm::div(phi, C)

);
CeqnResidual = CEqn.solve().initialResidual();

In case where phi is zero (i.e. no flow), my initial residuals are always high (~ 0.3). When I am forcing the solver to exit without satisfying the convergence criterion (by setting a maximum for the iterations), I see that phi is zero everywhere and C is constant, as I expect. But, I don't know why CeqnResidual is high!
Yahoo is offline   Reply With Quote

Old   June 4, 2019, 04:14
Default
  #28
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi all,

Thanks for all those questions and answers on convergence, they helped me a lot!

I'm aware that this thread is rather old, but my question is similar to other questions asked here, so I'll post here anyway.

At the moment I'm using interFoam for marine hydrodynamics, calm water resistance computations on ship hulls. For this type of simulations it's often necessary to apply velocity ramping at the start, which makes the simulation inherently transient. However, after this velocity ramp at start-up, the simulation should normally converge to a steady solution, which is really all I'm interested in.

Is there a way in OpenFOAM to stop a transient simulation when a steady solution is reached?

Many thanks!
Sita

Last edited by sita; June 4, 2019 at 10:37.
sita is offline   Reply With Quote

Old   April 11, 2023, 05:53
Default
  #29
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8
farzadmech is on a distinguished road
Dear Alberto
My residuals are like this(see attached figure), and they do not goes down to 10e-4(or 10e-5), but my value of interest which is drag coefficient (Cd) is constant. Can I rely on my obtained results? or what should I do? do you have any suggestion?


Thanks,
Farzad

Quote:
Originally Posted by alberto View Post
Machine zero (or machine epsilon http://en.wikipedia.org/wiki/Machine_epsilon ) depends on the machine. As reference, 1.0 x 10^-12 is what I use as reference. Someone uses smaller numbers.

Best,
Attached Images
File Type: jpg convergence.jpg (62.2 KB, 12 views)
farzadmech 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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56
Convergence of CFX field in FSI analysis nasdak CFX 2 June 29, 2009 02:17
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50


All times are GMT -4. The time now is 05:56.