|
[Sponsors] |
August 27, 2020, 07:43 |
Write on convergence
|
#1 |
Member
Tom Waits
Join Date: Aug 2018
Posts: 38
Rep Power: 7 |
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 |
|
August 31, 2020, 05:58 |
|
#2 |
Senior Member
|
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 |
|
|
|
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 |