|
[Sponsors] |
how to check when the residual is smaller than the prescribed tolerance while solving |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 23, 2017, 05:10 |
how to stop the simulation automatically
|
#21 |
Senior Member
Bill Wang
Join Date: Aug 2014
Posts: 109
Rep Power: 11 |
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 |
|
January 23, 2017, 05:20 |
|
#22 |
Senior Member
|
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. |
|
|
|
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 |