|
[Sponsors] |
August 31, 2008, 15:00 |
Dear FOAMers,
does anybody
|
#1 |
Senior Member
|
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 |
|
August 31, 2008, 18:53 |
Hi,
Just edit the $OPENFOA
|
#2 |
Member
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17 |
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 |
|
September 1, 2008, 06:15 |
Hi,
thanks a lot for your r
|
#3 |
Senior Member
|
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 |
|
September 1, 2008, 06:16 |
Hi Holger!
You are halfway
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
September 1, 2008, 06:24 |
Hi Bernhard,
how and where
|
#5 |
Senior Member
|
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 |
|
September 1, 2008, 10:16 |
Hi,
it works...
I used cur
|
#6 |
Senior Member
|
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 |
|
September 1, 2008, 10:18 |
Hi Holger!
Storing the valu
|
#7 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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)
__________________
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 |
|
January 25, 2018, 18:33 |
Does this work for direct calls to solve?
|
#8 |
New Member
Join Date: Nov 2016
Posts: 10
Rep Power: 9 |
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? |
|
|
|
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 |