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

debugging criteriaSatisfied function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2019, 12:50
Default debugging criteriaSatisfied function
  #1
Member
 
Join Date: Jun 2011
Posts: 42
Rep Power: 15
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:


Code:
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:


Code:
DebugSwitches
 {
   singleRegionConvergenceControl 2;
 }
Any ideas?
mikeP is offline   Reply With Quote

Old   April 3, 2019, 10:35
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
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
Hi,

it should be
Code:
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:
Code:
namespace Foam
{
    defineTypeNameAndDebug(solutionControl, 0);
}
therefore, I guess you achieve it by adding the following to your controlDict

Code:
DebugSwitches
{
    solutionControl  1;
}
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


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