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

Howto disable Solver Outputs

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2008, 15:00
Default Dear FOAMers, does anybody
  #1
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Dear FOAMers,

does anybody know howto disable solver outputs during a simulation run for ONE variable? E.g. I don't want to display solver and initial resp. final residuals for one variable on my terminal window.

I know "lduMatrix::debug = 0;" which can be added to the code giving no output for all variables.

---
best regards
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   August 31, 2008, 18:53
Default Hi, Just edit the $OPENFOA
  #2
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
dbxmcf is on a distinguished road
Hi,

Just edit the $OPENFOAM/.OpenFOAM-1.4.1/controlDict find the below DebugSwitches
lduMatrix : about "BICCG, ICCG info"
solution : about "Look up solver for U, p..."
change them to 0 will disable those outputs
dbxmcf is offline   Reply With Quote

Old   September 1, 2008, 06:15
Default Hi, thanks a lot for your r
  #3
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi,

thanks a lot for your reply.

But is this really the right place to change that? I only need to switch of the solver output for ONE variable, I solve for in addition(*) to the standards (p,k,epsilon, etc.)! I think changing the DebugSwitches will not change the output for an additional variable!

(*) I added the corresponding transport equation for this variable to the top-level solver. Therefore it is not in the standard release of the solver.

---
best regards
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   September 1, 2008, 06:16
Default Hi Holger! You are halfway
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Holger!

You are halfway there. Just store the old value of lduMatrix::debug in a temporary. Set debug to 0. Solve the variable. Reset debug to the stored value. Voila: No output for the mystery-variable, but for everybody else

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 1, 2008, 06:24
Default Hi Bernhard, how and where
  #5
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi Bernhard,

how and where do I store the old value of lduMatrix::debug in a temporary? Can this be done in the code?

Btw, it's not that mysterious: I solve for a quasi-stationary solution within a time step using an artificial time-instance. Therefore the corresponding solver output in the terminal window is quite long. As I run a convergence control I only need the last line of that

---
best regards
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   September 1, 2008, 10:16
Default Hi, it works... I used cur
  #6
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi,

it works...
I used curly brackets around the lduMatrix::debug = 0; and .solve()-statement.
After the brackets I just set the switch back to "lduMatrix::debug = 1;".

I think that's the easiest way to do this. Thanks!

---
best regards
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   September 1, 2008, 10:18
Default Hi Holger! Storing the valu
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Holger!

Storing the value (not tested so the syntax may vary) should be quite simple

label tmpDepug=lduMatrix::debug;
lduMatrix::debug=0;

// do the silent stuff

ldUMatrix::debug=tmpDebug;

// Life goes on (other solutions)
Bahram and hamedhiv like this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 25, 2018, 18:33
Default Does this work for direct calls to solve?
  #8
New Member
 
Join Date: Nov 2016
Posts: 10
Rep Power: 9
victorious_BIG is on a distinguished road
I've implemented included both

lduMatrix::debug=0;
solverPerformance::debug=0;

but though this work to remove the output from solver calls like XEqn.solve(). It does not suppress output from solver call like:

solve(UEqn == -fvc::grad(p));

Any idea what's going on here?
victorious_BIG is offline   Reply With Quote

Reply


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
Disable injection in dieselEngineFoam francesco OpenFOAM Running, Solving & CFD 0 November 26, 2008 02:23
Disabling and Enabling Solver Summary Outputs within code adona058 OpenFOAM Running, Solving & CFD 3 November 1, 2007 12:00
[OpenFOAM] ParaFoam outputs empty foam file theof ParaView 1 January 20, 2006 14:51
disable a term naima FLUENT 0 November 12, 2003 05:46
how to disable energy equation for for non-newton yueroo FLUENT 2 April 3, 2001 23:11


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