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

Controlling number of grid levels in OpenFOAM GAMG solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2016, 19:50
Default Controlling number of grid levels in OpenFOAM GAMG solver
  #1
New Member
 
Chanon
Join Date: Jun 2016
Posts: 1
Rep Power: 0
Mr. Yoyo is on a distinguished road
Hi,

I am using simpleFoam with the GAMG solver to solve for the pressure equation. I am using a smoothSolver to solve for U, k and omega. My case is a 3D wing unstructured tetrahedral mesh with ~2 miillion nodes.

What I would like to know is where I can see the number of grid levels generated by the GAMG solver. I understand that the GAMG is performing a V-cycle multi grid method and all the user must set is the "nCellsInCoarsestLevel" option, but I want to be able to set "nLevels" if such a parameter exists. At least, I want to know what nLevels is when the number fo cells on the coarsest mesh is set.

Any insight is much appreciated.
Mr. Yoyo is offline   Reply With Quote

Old   April 23, 2019, 11:24
Default GAMG number of levels in V-Cycle, DebugSwitches
  #2
New Member
 
Join Date: Aug 2018
Posts: 9
Rep Power: 8
mszeto715 is on a distinguished road
Turn on the GAMG DebugSwitches and your log file should include exactly how many levels are in your V cycle and how many cells are in each processor.

In system/controlDict, you can set up a DebugSwitches section with the following:
GAMG 1;
GAMGAgglomeration 1;
GAMGInterface 1;
GAMGInterfaceField 1;


Most likely, your GAMG is coarsening by one half for each level, so you can also just divide by 2 successively until you reach the level that has at least nCellsInCoarsestLevel.

You can see all the DebugSwitch options in the etc/controlDict file.


-Mimi
mszeto715 is offline   Reply With Quote

Reply

Tags
gamg, solver control


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
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Extremely slow simulation with interDyMFoam jrrygg OpenFOAM Running, Solving & CFD 9 April 23, 2013 11:14
Interfoam blows on parallel run danvica OpenFOAM Running, Solving & CFD 16 December 22, 2012 03:09
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01


All times are GMT -4. The time now is 18:47.