how to use foamLog?
Hey guys, I'm a rookie and trying to figure out how to use foamLog.
1- Is these two lines all I'm supposed to do? for "cavity" as an example famouri@ubuntu:~/cavity$ foamJob icoFoam famouri@ubuntu:~/cavity$ foamLog log 2- Is there any way to have all those data in one file? Like a file with more than two columns. 3- How can I add something not listed there as default? Thank you in Advance Mehdi |
I'd be interested in this as well.
|
1) Basically, yes.
Here is a bit more information: http://web.student.chalmers.se/group...ngLucchini.pdf 2) To my knowledge, no. You need to read each file separately. 3) Doesn't foamLog already take basically all information of the log file? What kind of information do you want? I think you would need to work in the code of the utility to change things. |
deltaT from foamLog
Quote:
Quote:
Below is an example of a log file (pimpleFoam, slightly modified) Code:
Courant Number mean: 0 max: 0 velocity magnitude: 0 Code:
formLog
Is there a way I can get foamLog to output deltaT ? it is listed the same way as Time. Writing this post I realised I can use the xy file of Time and still get the initial time step. But post any way out of professional curiosity :) and I know how to modify the solver to log a line of text with a value and can see the combination of this and formLog as a good combination in future use |
One thing to consider is that a new residuals function object was introduced in 2.4.0 to make this simpler.
You can add this to your controlDict. Should look something like this. Code:
functions More importantly you should learn about typical linux commands like sed awk cat and grep to make your life easier. Quick example: grep searches for a pattern and outputs the line containing it. This outputs every line with "delta T =" in it. You can add > myFile to output this command to a file. Code:
grep 'deltaT = ' log Code:
getSolvedVars() The | is a pipeline command. It gives the result of the first to the second query.... I think the fastest way to learn on how to extract only the value of deltaT or something more fancy is googling how to do it with grep, awk or sed since it is possible with all three of them. |
All times are GMT -4. The time now is 16:46. |