Convergence/Residuals Ending
Is there any way to stop automatically the solution when our variables reach convergence?
For example, given only your dT and not endTime, the solution stops when it reaches convergence. Thanks 
Hi,
you can add to your fvSolution file the following lines; Quote:
Regards Marco 
Thanks man!

Marco,
i had problems in controlling the residuals using icoFoam. I added the lines you suggested but nothing happens. solvers { p { solver PCG; preconditioner DIC; tolerance 1e04; relTol 0; } U { solver PBiCG; preconditioner DILU; tolerance 1e05; relTol 0; } } PISO { nCorrectors 2; nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; residualControl { p 1e3; U 1e3; } } I put 1e03 to check the case and i plot initial residuals onthefly. Both u and p pass this limit but the solution continues, it doesn't stop. (I use OpenFoam 2.1.1) 
Hi,
do you wanna simulate a steady or a transient simulation? icoFoam solver is inherently transient! So it does not make sense to stop the solution to a steady state! Regards Marco 
I'm studying the flow over a sphere using icoFoam, which has a transient part 'till the distribution around the sphere reaches a "steadystate", meaning it doesn't change no matter how much time passes from there on.
So, now that i know that ,when my initial residuals have reached e.g. 1e05 for p, my solution has converged and i don't need to have it running any more, i want it to stop automatically when reaching this values. Thanks for all your replies,really 
Quote:
Did you solve your problem ? I'm trying to do the same thing. Thank you 
Hello Mehrez,
as said above you should add the following lines in fvSolution. residualControl { p 1e06; U 1e06; } However, I would recommend this approach only in cases where you know for sure that the flow field is fully developed and no other alteration is going to occur. This comes with experience. Kind regards 
All times are GMT 4. The time now is 18:42. 