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

Disabling and Enabling Solver Summary Outputs within code

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2007, 08:45
Default I am working on a custom solve
  #1
Member
 
Adam Donaldson
Join Date: Mar 2009
Location: Ottawa, Ontario, Canada
Posts: 37
Rep Power: 17
adona058 is on a distinguished road
I am working on a custom solver that requires I use the solve function a number of times during my solution. Unfortunately, This leads to a very large number of the summary lines being output to the terminal window, i.e.:

DICPCG: Solving for gamma, Initial residual = 0.000100881, Final residual = 1.64739e-12, No Iterations 1

Is there any way to temporarily disable the summary output to the terminal within the solver code, and then re-enable it following the section where the large number of equations are solved.

Thanks,

Adam
adona058 is offline   Reply With Quote

Old   November 1, 2007, 09:55
Default I see that under the lduMatrix
  #2
Member
 
Adam Donaldson
Join Date: Mar 2009
Location: Ottawa, Ontario, Canada
Posts: 37
Rep Power: 17
adona058 is on a distinguished road
I see that under the lduMatrixTests.C file a debug switch is checked to see if a summary of the solution statistics should be printed to the screen.

Is there a way to either modify this switch during runtime, or define an lduMatrix that has a set debug switch = 0?.
adona058 is offline   Reply With Quote

Old   November 1, 2007, 10:17
Default Yes. In the code, you can do
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Yes. In the code, you can do

lduMatrix::debug = 0;

or edit $HOME/.OpenFOAM-1.4.1-dev/controlDict

and set lduMatrix debug switch to zero.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 1, 2007, 11:00
Default Great. Thank you
  #4
Member
 
Adam Donaldson
Join Date: Mar 2009
Location: Ottawa, Ontario, Canada
Posts: 37
Rep Power: 17
adona058 is on a distinguished road
Great. Thank you
adona058 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
Howto disable Solver Outputs holger_marschall OpenFOAM Running, Solving & CFD 7 January 25, 2018 17:33
[OpenFOAM] ParaFoam outputs empty foam file theof ParaView 1 January 20, 2006 13:51
About the particle summary DPM Fuping Qian FLUENT 0 July 22, 2005 02:59
Enabling ideal gas for nitrogen manish FLUENT 6 March 2, 2005 11:46
Disabling equations in specific zones D Harvey FLUENT 1 March 22, 2004 19:50


All times are GMT -4. The time now is 07:27.