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

Use of AMG blockSolver on blockCoupledScalarTransportFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2021, 10:14
Default Use of AMG blockSolver on blockCoupledScalarTransportFoam
  #1
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Hello to all,

I am trying to run the tutorial case from foam-extend 4.1 called blockCoupledSwirlTest.

By default the tutorial is solved with a BiCGStab solver. I would like to use an AMG solver.

I copied the parameters from /incompressible/pUCoupledFoam/backwardFacingStepLaminar/

Code:
        solver          AMG;
        cycle           W-cycle;
        coarseningType  SAMG;
        norm            componentNorm;
        normComponent   3;

        minGroupSize    4;
        maxGroupSize    6;

        nPreSweeps      2;
        nPostSweeps     2;
        groupSize       2;
        minCoarseEqns   4;
        nMaxLevels      100;
        scale           on;
        smoother        ILUC0;

        minIter         0;
        maxIter         100;
        tolerance       1e-7;
        relTol          0.0;
However, I get the following error:


Code:
Courant Number mean: 10 max: 39 velocity magnitude: 0.975
Time = 1

--> FOAM FATAL ERROR: 
index out of range

    From function VectorSpace<Form, Cmpt, nCmpt>::component(direction) const
    in file /home/pc/foam/foam-extend-4.1/src/foam/lnInclude/VectorSpaceI.H at line 75.
Any idea why this is happening?
trailer is offline   Reply With Quote

Old   October 21, 2021, 14:00
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 730
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Is there any indication that AMG applied to the coupled system should work?
dlahaye is offline   Reply With Quote

Old   October 21, 2021, 16:28
Default
  #3
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Is there any indication that AMG applied to the coupled system should work?


AMG works in pUCoupledFoam (4x4 block matriX). GAMG works in standard scalarTransportFoam.

I would say AMG should on this system too. Is there any reason why it does not work ?

Best Regards
trailer is offline   Reply With Quote

Old   October 22, 2021, 10:29
Default
  #4
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Is there any indication that AMG applied to the coupled system should work?
I tried the backwardStep tutorial case and works perfectly. The fact is that AMG works best with BLOCK-STRUCTURED grids. Things go astray once you involve automatic meshers...
Santiago is offline   Reply With Quote

Old   October 22, 2021, 14:51
Default
  #5
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 730
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
The pressure-velocity coupled formulation leads to linear systems with coefficient matrices of the form [A B; B^T C]. These saddle point linear systems are hard to solve. Developing multigrid solvers that outperform single-grid solvers for these systems is challenging.

I was not aware of GAMG for the pUCoupledFoam for the backwardStep to converge. I wonder to what extend GAMG outperforms single level solvers and how the mesh affects the convergence of GAMG.

The question that started this thread remains. A non-block-structured mesh should not be the cause of an out-of-range error.
dlahaye is offline   Reply With Quote

Old   October 23, 2021, 10:45
Default
  #6
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
The pressure-velocity coupled formulation leads to linear systems with coefficient matrices of the form [A B; B^T C]. These saddle point linear systems are hard to solve. Developing multigrid solvers that outperform single-grid solvers for these systems is challenging.

I was not aware of GAMG for the pUCoupledFoam for the backwardStep to converge. I wonder to what extend GAMG outperforms single level solvers and how the mesh affects the convergence of GAMG.

The question that started this thread remains. A non-block-structured mesh should not be the cause of an out-of-range error.

All solvers listed for asymmetric matrices work with the exception of AMG. If you can also replicate this, I would say it is a bug in the implementation of AMG for block matrices.
trailer 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
Divergence detected in AMG solver. VOF. Mr.Mister Fluent Multiphase 4 September 25, 2023 07:10
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 06:33
PEMFC model with FLUENT brahimchoice FLUENT 22 April 19, 2020 15:44
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 07:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08


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