CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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 Display Modes
Old   November 1, 2007, 09: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: 8
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, 10:55
Default I see that under the lduMatrix
  #2
Member
 
Adam Donaldson
Join Date: Mar 2009
Location: Ottawa, Ontario, Canada
Posts: 37
Rep Power: 8
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, 11:17
Default Yes. In the code, you can do
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
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, 12:00
Default Great. Thank you
  #4
Member
 
Adam Donaldson
Join Date: Mar 2009
Location: Ottawa, Ontario, Canada
Posts: 37
Rep Power: 8
adona058 is on a distinguished road
Great. Thank you
adona058 is offline   Reply With Quote

Reply

Thread Tools
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 On
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 6 September 1, 2008 09:18
ParaFoam outputs empty foam file theof OpenFOAM Paraview & paraFoam 1 January 20, 2006 14: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 12:46
Disabling equations in specific zones D Harvey FLUENT 1 March 22, 2004 20:50


All times are GMT -4. The time now is 13:53.