CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

LUSGS vs GMRES

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 1 Post By AshwaniAssam
  • 1 Post By Jonas Holdeman
  • 1 Post By sbaffini
  • 3 Post By KingJGod
  • 2 Post By enm
  • 1 Post By AshwaniAssam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2018, 07:04
Default LUSGS vs GMRES
  #1
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 12
AshwaniAssam is on a distinguished road
Dear all,

We have an implicit code for which we have used LUSGS method, based on the use of LU-decomposition algorithm from the Numerical recipe book. When we are trying to use an iterative method like GMRES, for some cases the code is blowing up like hypersonic flow over a cylinder. While for some like compressible flow over bumpit gives exact same residual drop as LUSGS.

We have verified the GMRES implementation against the solution to Linear system of equations. We have used Numerical recipe book again for GMRES algorithm.

Any thoughts what possible is wrong in our implementation or understanding?

Thank you!
aerosayan likes this.
AshwaniAssam is offline   Reply With Quote

Old   November 16, 2018, 10:19
Default
  #2
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
I have had trouble using GMRES with incomplete LU preconditioner (actually with the LU preconditioner) in MATLAB. I am quite happy now using the stabilized biconjugate gradient with Jacobi preconditioner. I am not familiar with the LUSGS method.
aerosayan likes this.
Jonas Holdeman is offline   Reply With Quote

Old   November 18, 2018, 09:15
Default
  #3
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
There are several linear algebra packages with the GMRES (petsc, hypre, etc.), I would refer to those for the implementation.
aerosayan likes this.
sbaffini is offline   Reply With Quote

Old   January 9, 2020, 11:13
Default
  #4
New Member
 
youcheng xi
Join Date: Jul 2018
Posts: 1
Rep Power: 0
KingJGod is on a distinguished road
Generally speaking, this is probably because of your preconditioner and the accuracy of your numerical jacobian evaluation
KingJGod is offline   Reply With Quote

Old   January 13, 2020, 11:09
Default
  #5
enm
New Member
 
Nick
Join Date: Jan 2020
Posts: 1
Rep Power: 0
enm is on a distinguished road
I think the main problem is a preconditioner or the matrix itself (Jacobian) as KingJGod stated.
Here is how i use it:
https://www.sciencedirect.com/scienc...21999119308940


And there's no problem with gmres or bcgstab.
AshwaniAssam and aerosayan like this.
enm is offline   Reply With Quote

Old   January 16, 2020, 23:57
Default
  #6
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 12
AshwaniAssam is on a distinguished road
Thank you KingJGod and enm for the answer. I also suspect that. Recently, i have started using LIS library. I will try to use the preconditioner which I was not using earlier. I will report back how things work.


Again thank you, and enm thank you sharing the JCP work it will be very helpful.
aerosayan likes this.
AshwaniAssam 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
Gmres OFU OpenFOAM Programming & Development 11 November 3, 2015 08:08
SU2 runtime error: cannot find value of GMRES in given map bruzerravi SU2 1 May 1, 2013 07:11
Gmres fails to converge, but LU is fine sbabbi Main CFD Forum 1 April 11, 2013 08:54
Question on ILU(0) Preconditioned GMRES Shenren_CN Main CFD Forum 2 August 6, 2012 19:19
Nonlinear/Linear GMRES is... Saebyuk Main CFD Forum 0 May 10, 1999 08:31


All times are GMT -4. The time now is 14:28.