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

PETSc+Hypre

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2005, 17:54
Default PETSc+Hypre
  #1
Soheyl
Guest
 
Posts: n/a
Hi

Is there any one having experience of using HYPRE as a preconditioner for PETSc KSP solvers?

Please guide me through installation, ...

Best Regards

Soheyl
  Reply With Quote

Old   April 8, 2005, 11:50
Default Re: PETSc+Hypre
  #2
alexice
Guest
 
Posts: n/a
Yes, I just installed PETSc-2.2.1 and Hypre on our cluster and the process is straight forward. I assume you have a BLAS a LAPACK and some sort of MPI already installed on your system, than adding PETSc to it is fairly simple, since PETSc comes with a very advanced configure Python script.

just use something like:

./config/configure.py --download-hypre=ifneeded

in the PETSc source dir and of course check all the othe roptions you have with this script.

If you don't have BLAS,LAPACK and some MPI than PETSc can also take care of that but I never tried that, I prefer to build them manual, specially BLAS, where I use the ATLAS package to optimize the BLAS lib for the system, also easy to install

hope I could help

alexice
  Reply With Quote

Old   April 11, 2005, 03:52
Default Boomeramg Options
  #3
Soheyl
Guest
 
Posts: n/a
Hi Thanks alot, because I finally set up PETSc with hypre support.

I want to use the Boomeramg (The Algebraic Multigrid Preconditioner) of Hypre to solve a problem in CFD (fully implicit N.S.). Do you have any experience using Boomeramg? What options are useful to experience?

Best Regards

Soheyl
  Reply With Quote

Old   April 11, 2005, 07:22
Default Re: Boomeramg Options
  #4
alexice
Guest
 
Posts: n/a
Sorry to say, I do not use the Boomeramg in Hyre. I use the Pilut for my problems, which are glaciers.

I hope somebody out there can help.

anyway good luck with your model

alexice
  Reply With Quote

Old   April 19, 2005, 04:16
Default Re: Boomeramg Options
  #5
amicatl@yahoo.es
Guest
 
Posts: n/a
Does anyone has previous experiences in using PETSc to solve Poisson equation (or incompressible NS) with multigrid.
  Reply With Quote

Old   March 23, 2009, 02:31
Default petsc and multigrid
  #6
New Member
 
leping chen
Join Date: Mar 2009
Location: china
Posts: 19
Rep Power: 17
happy_clp is on a distinguished road
Does anyone has previous experiences in using PETSc to solve 3D FEA with multigrid? Whether or not the multigrid is petsc' or external software?
happy_clp is offline   Reply With Quote

Old   March 24, 2009, 07:56
Default AMG for implicit Navier-Stokes
  #7
jed
Member
 
Jed Brown
Join Date: Mar 2009
Posts: 56
Rep Power: 19
jed is on a distinguished road
Quote:
Originally Posted by Soheyl
I want to use the Boomeramg (The Algebraic Multigrid Preconditioner) of Hypre to solve a problem in CFD (fully implicit N.S.). Do you have any experience using Boomeramg? What options are useful to experience?
If you are solving compressible flow, multigrid might work fine, but for incompressible flow, your matrix will be indefinite. No black-box preconditioners (short of a direct solve) work well for indefinite problems. You will have to exploit the problem structure, but multigrid will be very useful for the definite parts inside your preconditioner. I often find ML (-pc_type ml) to be better for vector-valued problems, but it's very problem specific. See http://www.cfd-online.com/Forums/mai...tml#post210577 for more comment on this.

If you are solving 3D problems using BoomerAMG and having memory issues, try these options http://lists.mcs.anl.gov/pipermail/p...ry/000001.html
jed is offline   Reply With Quote

Old   March 24, 2009, 09:08
Default
  #8
New Member
 
leping chen
Join Date: Mar 2009
Location: china
Posts: 19
Rep Power: 17
happy_clp is on a distinguished road
How do you utilize hypre as a PC of PETSc KSP? Is it necessary to modify original program, or only utilize PETSc's runtime option?
happy_clp is offline   Reply With Quote

Old   March 24, 2009, 12:15
Default
  #9
jed
Member
 
Jed Brown
Join Date: Mar 2009
Posts: 56
Rep Power: 19
jed is on a distinguished road
Quote:
Originally Posted by happy_clp View Post
How do you utilize hypre as a PC of PETSc KSP? Is it necessary to modify original program, or only utilize PETSc's runtime option?
Configure PETSc with
Code:
--download-hypre
(or give path to your already installed version) and run with
Code:
-pc_type hypre
It is really rare that you have to modify code when you change preconditioners (i.e. the preconditioner must require extra information, most third-party preconditioners are purely algebraic).
jed is offline   Reply With Quote

Old   March 25, 2009, 05:31
Default
  #10
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 400
Rep Power: 19
quarkz is on a distinguished road
My problem lies in moving flapping airfoil, incompressible flow using fractional step and structured grid. i've managed to use PETSc and hypre to solve my problem.

For the momentum eqn, I use KSP BCGS. For the poisson eqn, it's faster to use BoomerAMG under PETSc. Or better still, if it's structured grid, you can also use hypre standalone and use its solvers like SMG etc. It's even faster.

Hope it helps.
quarkz is offline   Reply With Quote

Old   March 25, 2009, 05:55
Default
  #11
New Member
 
leping chen
Join Date: Mar 2009
Location: china
Posts: 19
Rep Power: 17
happy_clp is on a distinguished road
Thank you!
Beause I need solve eigenvalue,I will try SLEPc package!Hope you can help me! Thank you again!
happy_clp is offline   Reply With Quote

Old   March 25, 2009, 06:24
Default
  #12
jed
Member
 
Jed Brown
Join Date: Mar 2009
Posts: 56
Rep Power: 19
jed is on a distinguished road
Sorry for being pedantic, but you must be using BCGS with some preconditioner for the momentum equation and some Krylov method with BoomerAMG for the Poisson equation. Naming one without the other isn't very useful. If you insist on naming just one, name the preconditioner.

If you have a structured grid, you can use PETSc's DMMG which may be faster than SMG and is definitely more flexible.
jed is offline   Reply With Quote

Old   December 11, 2012, 01:45
Default AMG using Hypre
  #13
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 15
Farshad_Noravesh is on a distinguished road
Dear Soheil,

Please tell us about your experience of using hypre for AMG. Did you use it for momentum equation as well? I thaught you use it for CFD.

Kind Regards,

Farshad

Quote:
Originally Posted by Soheyl
;33850
Hi Thanks alot, because I finally set up PETSc with hypre support.

I want to use the Boomeramg (The Algebraic Multigrid Preconditioner) of Hypre to solve a problem in CFD (fully implicit N.S.). Do you have any experience using Boomeramg? What options are useful to experience?

Best Regards

Soheyl
Farshad_Noravesh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
using petsc for large coupled linear systems sd_vakip Main CFD Forum 0 January 31, 2011 13:22
PETSc from Cmake d_dante Main CFD Forum 1 January 12, 2011 08:50
PETSc Library kostaspan Main CFD Forum 15 July 7, 2010 13:40
petsc and diverge happy_clp Main CFD Forum 16 March 24, 2009 12:36
question for LES colopolo Main CFD Forum 12 March 23, 2009 10:54


All times are GMT -4. The time now is 05:20.