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

Convergence of steady linear solvers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2016, 19:16
Default Convergence of steady linear solvers
  #1
Member
 
Join Date: Aug 2012
Posts: 33
Rep Power: 13
gigilentini8 is on a distinguished road
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 18:22.
gigilentini8 is offline   Reply With Quote

Old   November 27, 2016, 14:50
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   November 27, 2016, 16:31
Default
  #3
Member
 
Join Date: Aug 2012
Posts: 33
Rep Power: 13
gigilentini8 is on a distinguished road
Quote:
Originally Posted by hjasak View Post
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
Thanks Hrvoje,
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)
gigilentini8 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
About the AMG Linear Sover Convergence Tolerance LeeTao STAR-CCM+ 0 March 21, 2016 23:01
suitable boundary condition for scavenging process? immortality OpenFOAM Running, Solving & CFD 3 January 25, 2013 19:10
LiS Built-in linear solvers harish_0689@ Main CFD Forum 0 January 5, 2012 03:43
Convergence on unstable steady states ekor FLUENT 0 August 24, 2010 05:50
initialization of flow field to enhance convergence rate to steady state vfico Main CFD Forum 0 September 9, 2009 11:23


All times are GMT -4. The time now is 01:13.