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

how to check when the residual is smaller than the prescribed tolerance while solving

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2017, 05:10
Default how to stop the simulation automatically
  #21
Senior Member
 
Bill Wang
Join Date: Aug 2014
Posts: 109
Rep Power: 11
6863523 is on a distinguished road
Dear Alexey,
Thank you for the reply.
The final object is to realize that: the simulation stops once the residuals are smaller than the tolerance.
How to achieve this without using the residualContol, since this function is not applicable to icoFoam?
Thank you for any help.
Best Regards,
Bill
6863523 is offline   Reply With Quote

Old   January 23, 2017, 05:20
Default
  #22
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
The question is in fact: why do you need to use icoFoam? Why you do not want to use pimpleFoam, which has residual control functionality?

If you would like to entertain yourself, then:

1. There is residual function object, which writes residuals for given fields to postProcessing/residuals/<time> folders.
2. There is systemCall function object, which can do almost anything. For example read last value of residuals from residuals function objects output and create file .CONVERGED in case folder.
3. There is abort function object, which can abort calculation if certain file is present in the case folder.
alexeym 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
a problem with convergence in buoyantSimpleFoam skuznet OpenFOAM Running, Solving & CFD 6 November 15, 2017 12:12
Wrong fluctuation of pressure in transient simulation caitao OpenFOAM Running, Solving & CFD 2 March 5, 2015 21:33
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24


All times are GMT -4. The time now is 04:00.