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

Write on convergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2020, 07:43
Post Write on convergence
  #1
Member
 
Tom Waits
Join Date: Aug 2018
Posts: 38
Rep Power: 7
TomWaits is on a distinguished road
The following if statement will be entered at every write time:

if (mesh_.time().outputTime()) {};

How do I only enter the statement at the final write time (i.e the time for which a simulations residuals have converged)?

Regards,

Tom Waits
TomWaits is offline   Reply With Quote

Old   August 31, 2020, 05:58
Default
  #2
Senior Member
 
shinji nakagawa
Join Date: Mar 2009
Location: Japan
Posts: 113
Blog Entries: 1
Rep Power: 18
snak is on a distinguished road
Hi,

criteriaSatisfied() will be used for your purpose. (The related code will be in src/finiteVolume/cfdTools/general/solutionControl . If you are using OF-5 or older, the code are much simpler. )

https://github.com/OpenFOAM/OpenFOAM...Control.H#L102
snak 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
Convergence Centurion2011 FLUENT 48 June 14, 2022 23:29
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 09:48
Force can not converge colopolo CFX 13 October 4, 2011 22:03
Defect correction and convergence ganesh Main CFD Forum 4 June 30, 2006 14:20
convergence problem with SIMPLER NURAY KAYAKOL Main CFD Forum 1 February 24, 1999 13:43


All times are GMT -4. The time now is 15:25.