CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

debugging criteriaSatisfied function

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2019, 11:50
Default debugging criteriaSatisfied function
Join Date: Jun 2011
Posts: 42
Rep Power: 14
mikeP is on a distinguished road
I am trying to turn debugging on for the criteriaSatisfied() function in singleRegionConvergenceControl.C file. However, I am not sure how to make the variable "control_.debug" true here:

if (control_.debug)
  Info<< control_.algorithmSpace() << "  " << variableName
  << ": tolerance " << residual << " ("

  << residualControl_[fieldi].absTol << ")"

  << (absCheck ? " CONVERGED" : "") << endl;

I added the following in the case controlDict file, but did not do any difference:

   singleRegionConvergenceControl 2;
Any ideas?
mikeP is offline   Reply With Quote

Old   April 3, 2019, 09:35
Super Moderator
Tobi's Avatar
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi

it should be
namespace Foam
    defineTypeNameAndDebug(solutionControl, 0);
because control_ is defined in the class convergenceControl and the object is built using the class solutionControl. In the solutionContol class you see the following in the source file:
namespace Foam
    defineTypeNameAndDebug(solutionControl, 0);
therefore, I guess you achieve it by adding the following to your controlDict

    solutionControl  1;
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50

All times are GMT -4. The time now is 12:29.