|
[Sponsors] |
November 25, 2016, 20:16 |
Convergence of steady linear solvers
|
#1 |
Member
Join Date: Aug 2012
Posts: 33
Rep Power: 14 |
I am bit puzzled by the fact that, for a steady linear differential equation (e.g. advection-diffusion using scalarTransportFoam and steadyState time scheme), OF is not converging in one outer iteration.
I would expect that, in this case, provided that the relative residual in fvSolution is small enough, there would be no need of (pseduo-)time iterations. am I missing something? what does the steadyState scheme really do? Last edited by gigilentini8; November 26, 2016 at 19:22. |
|
November 27, 2016, 15:50 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
steadyState does nothing: it will eliminate the ddt term. However:
- you have possible non-linearity in convection. Use upwind - you have a deferred correction in diffusion. Make orthogonal mesh ... and it will converge in one call. In fact, it will converge in one preconditioner sweep if you have a trivial 1-D or 2-D mesh. Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
November 27, 2016, 17:31 |
|
#3 | |
Member
Join Date: Aug 2012
Posts: 33
Rep Power: 14 |
Quote:
I actually did not realise I was using a non-orthogonal mesh. However I am still surprised by the relative importance of the "artificial" non-linearities (or deferred corrections in general) introduced. After a time step, the residual was just 1/2 of the original one. Why simply using linear and uncorrected schemes would not be enough to ensure a simple linear system? I am asking because I am interested in computing eigenvalues and eigenfunctions and it is of no interest doing that only for orthogonal meshes. I implemented possible workarounds by using the whole OF machinery to solve the system and make use of inverse power iterations to converge to the eigenpair, but it would be nice to directly compute the eigenvalues of a matrix (or generalised eigenvalues more easily) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About the AMG Linear Sover Convergence Tolerance | LeeTao | STAR-CCM+ | 0 | March 22, 2016 00:01 |
suitable boundary condition for scavenging process? | immortality | OpenFOAM Running, Solving & CFD | 3 | January 25, 2013 20:10 |
LiS Built-in linear solvers | harish_0689@ | Main CFD Forum | 0 | January 5, 2012 04:43 |
Convergence on unstable steady states | ekor | FLUENT | 0 | August 24, 2010 06:50 |
initialization of flow field to enhance convergence rate to steady state | vfico | Main CFD Forum | 0 | September 9, 2009 12:23 |