How to change Iterations Output format
Hello,
Do you know how the iteration output format is controlled in openFOAM? for example if we take the output of simpleFoam: Code:
smoothSolver: Solving for Ux, Initial residual = 0.205736, Final residual = 0.140782, No Iterations 1000 Thank you in advance. |
Hi,
what do you really want to achieve? Plot the residuals? There's a nice tool named pyFoamPlotWatcher to do these kind of things. A nice way to filter out the interesting values is to pipe the solver's output through the Unix grep and awk commands for example. This will keep you from changing you solvers' output formats constantly. To answer your last question: You need to read the code of your particular solver. The print statements (Info << "some string") are usually scattered throughout the solver loop and the library functions (see includes). Cutter |
Thanks Cutter,
yes, my question was raised from plotting the residuals from an output with multi-regions, I had several domains with temperature residuals, Code:
Solving for solid region case Code:
set logscale y Still after doing that, I was thinking: what if one day I need a variable or residual that the solver does not give on output. Can I modify the output of the solver itself? How does it work? So if I understood well your suggestion, to get an idea of how the solver collect and send the output on the screen I have to type: Code:
grep -r "info <<" /path_of_the_solver_of_interest Code:
#include "fvCFD.H" |
Hello,
I have a different problem with my solver output. My solver doesnīt give me any information about the Residuals. I didnīt change the options, or disabled the output manually ( as far as I know :-D ) My output is as follows Code:
Time = 1 best regards Tobi |
It definitely has something to do with the openFoam-version.
Normally I use OF 2.2.0, but we already installed OF 2.2.x_131223 in our office. Does anybody know, if the missing solver output is a bug of this version? Or maybe I just have to do a little entry in a dict-file to enable the output again. I would be very happy to see some answers :-) thanks in advance and best regards Tobi |
All times are GMT -4. The time now is 05:10. |