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

Linear System solver in Newton method

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2009, 08:01
Default Linear System solver in Newton method
  #1
New Member
 
Alessandro Proverbio
Join Date: Nov 2009
Posts: 2
Rep Power: 0
proto84 is on a distinguished road
Hi there,

I am solving an equation with a Newton method. I have a very ill-conditioned Jacobian matrix with a huge matrix dimension (>10000). The matrix is sparse but not symmetric.
At the moment I am using a GMRES (with no restarts because restarts take more time than a larger Krylov space memorization) and an ILU(0) preconditioning.

What do you suggest me to try for reduce the computing cost?

Thanks in advance and sorry for the beginner's question.

Bye,
Ale
proto84 is offline   Reply With Quote

Old   November 30, 2009, 09:05
Default How to ask solver questions
  #2
jed
Member
 
Jed Brown
Join Date: Mar 2009
Posts: 56
Rep Power: 19
jed is on a distinguished road
In order to get useful answers to solver questions you must provide
  • Physics and discretization, e.g. 3D low-mach compressible Navier-Stokes in conservative form, semi-discrete time stepping, WENO3-JFNK with lagged preconditioning matrix assembled by coloring with compact star-stencil, structured grid, k-\omega turbulence model, Re 1k to 100k, acoustic CFL 10-100, objective is active boundary control with temporal resolution 1/10 of time-step size on target mesh.
  • Largest problem sizes/hardware you are targeting and how much effort you would like to put into an efficient solver. Good linear solvers are not black-box, expect to do some problem-specific work if you want good scalability. The answers are very different if you just need to solve a few problems with 300k dofs versus doing production runs with 100M dofs on 300 nodes.
  • What you have tried and what performance it offers. Often given in terms of iteration count as you change the problem size, sometimes also CPU time.
  • What libraries you are currently using and/or how open you are to introducing new dependencies (e.g. PETSc).


Now for your problem: 10k is very small, a direct solver (like MUMPS or Umfpack) will typically beat any iterative solver for such sizes.
jed is offline   Reply With Quote

Old   November 30, 2009, 09:55
Default
  #3
New Member
 
Alessandro Proverbio
Join Date: Nov 2009
Posts: 2
Rep Power: 0
proto84 is on a distinguished road
Quote:
Originally Posted by jed View Post
In order to get useful answers to solver questions you must provide
  • Physics and discretization, e.g. 3D low-mach compressible Navier-Stokes in conservative form, semi-discrete time stepping, WENO3-JFNK with lagged preconditioning matrix assembled by coloring with compact star-stencil, structured grid, k-\omega turbulence model, Re 1k to 100k, acoustic CFL 10-100, objective is active boundary control with temporal resolution 1/10 of time-step size on target mesh.
  • Largest problem sizes/hardware you are targeting and how much effort you would like to put into an efficient solver. Good linear solvers are not black-box, expect to do some problem-specific work if you want good scalability. The answers are very different if you just need to solve a few problems with 300k dofs versus doing production runs with 100M dofs on 300 nodes.
  • What you have tried and what performance it offers. Often given in terms of iteration count as you change the problem size, sometimes also CPU time.
  • What libraries you are currently using and/or how open you are to introducing new dependencies (e.g. PETSc).


Now for your problem: 10k is very small, a direct solver (like MUMPS or Umfpack) will typically beat any iterative solver for such sizes.

Really sorry for my bad posed question. It was not so much advanced and your suggest in use direct solvers is enough at the moment for my aims. Thanks a lot for your suggests on how to get a useful answer too.
proto84 is offline   Reply With Quote

Old   November 30, 2009, 10:06
Default
  #4
jed
Member
 
Jed Brown
Join Date: Mar 2009
Posts: 56
Rep Power: 19
jed is on a distinguished road
No problem, that part of my post really wasn't intended for you. Hopefully the next person will include this sort of information so that they can get a useful answer.
jed is offline   Reply With Quote

Reply

Tags
newton methods


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
Conjugated solver for momentum and energy equations system makaveli_lcf OpenFOAM Running, Solving & CFD 3 April 14, 2009 02:16
linear system solving cb Wang Main CFD Forum 0 December 12, 2002 18:16
The NAC Method solver Maciej Matyka Main CFD Forum 2 June 8, 2001 16:04
Laplace or Stokes equations solver by Boundary Elements Method Lemonnier Main CFD Forum 3 December 28, 1999 13:48
solver for linear system with large sparse matrix Yangang Bao Main CFD Forum 1 October 25, 1999 04:22


All times are GMT -4. The time now is 03:41.