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

Asymmetric matrix solving on parallel incompressible computation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2023, 06:17
Default Asymmetric matrix solving on parallel incompressible computation
  #1
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 58
Rep Power: 4
songyi719 is on a distinguished road
Hello, I am trying several matrix solvers on incompressible steady-state flow, and currently using GAMG


I found this thread saying that for parallel computation, PBiCGstab with DILU as preconditioner performs best for pressure



How to choose solvers


However, when I try to implement by myself, according to log, error occurs because my matrix is symmetric while DILU is for asymmetric.


I guess this error occurs because decomposePar seperates mesh into several parts and each processor runs n x n matrix where n is # of cell, while what thread wanted is decomposed N x N matrix into many asymmetric matrix calculation.


How can I change my matrix solver work so? Or is it best to just replace it with DIC preconditioner?
songyi719 is offline   Reply With Quote

Old   March 7, 2023, 14:02
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
The post you refer to does distinguish between the incompressible and compressible case.

In the incompressible case, the pressure matrix is symmetric and positive definite in both the sequential and parallel decomposed case.

The advice is to use CG as Krylov solver in both the sequential and parallel decomposed case. The preconditioner should be adapted with the number of subdomains becomes large.

The advice is to use GAMG as preconditioner in case of one or a small number of processors. The advice is to replace GAMG by a preconditioner for symmetric matrices such as DIC (as you suggest) in case that the number of subdomains is large.

More precise statements depend on the version of GAMG used (PETSC4FOAM or AMGX).
songyi719 likes this.

Last edited by dlahaye; March 7, 2023 at 14:03. Reason: improved
dlahaye is offline   Reply With Quote

Old   March 7, 2023, 19:48
Default
  #3
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 58
Rep Power: 4
songyi719 is on a distinguished road
Thanks for the reply!

Is there reference paper about matrix solvers? I would like to know
songyi719 is offline   Reply With Quote

Old   March 8, 2023, 02:41
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
https://netlib.org/templates/templates.pdf

https://www-users.cse.umn.edu/~saad/...Book_2ndEd.pdf

and references cited therein
dlahaye is offline   Reply With Quote

Reply

Tags
dilu, matrix, pbicg


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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 17:36
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 19 October 10, 2019 02:42
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24


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