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

where is log file created??

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 5 Post By Fransje
  • 1 Post By Fransje

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2010, 03:44
Default where is log file created??
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road
Hello all,

I have ran few tutorial examples came with openfoam. I could not find the log file after running the case. Where do I find them?? Do I have to give any command before running the case inorder to create log file??

please help me

sandeep
gandesk is offline   Reply With Quote

Old   November 19, 2010, 05:18
Default
  #2
Member
 
Masashi Ohbuchi
Join Date: Oct 2009
Posts: 74
Rep Power: 16
Ohbuchi is on a distinguished road
Hi,

If you need log file, please try as follows.

>simpleFoam > log.simpleFoam &
Ohbuchi is offline   Reply With Quote

Old   November 19, 2010, 06:32
Default
  #3
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 20
Fransje will become famous soon enough
Dear Sandeep,

The ">" symbol in Linux is the standard output redirection symbol used to redirect a program output to a file instead of to the console.
So if you run any solver in OpenFOAM, without extra options, you will get quite a few lines of output on your screen.
Now. If you use, for instance, the command:
Code:
icoFoam > log &
the output will be redirected to the file "log", which will be put in the directory you are working in. You can give any name you want to your output file instead of "log", and Linux will create it for you.

The formal way of creating a log file in OpenFOAM is by using the command foamJob followed by the name of your solver. To get the same result as the example here-above, we would enter the command:
Code:
foamJob icoFoam
and OpenFOAM will run for us the icoFoam solver on our test case, and redirect the output to the file log. With foamJob you cannot specify an other name for you logfile.
The foamJob command itself comes with various run options. For more information, please refer to the User Manual.

Kind regards,

Francois.
tariq, akesm, Sedullo and 2 others like this.
Fransje is offline   Reply With Quote

Old   November 19, 2010, 10:38
Default
  #4
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road
Hi,

Thanks for the reply. I have been searching for the for a long time. I have one more question to that. How do I check if the case is running or finished or terminated?? Also could you tell me how to check the residuals and where to specify the convergence criteria.

Thanks a ton!!

Sandeep
gandesk is offline   Reply With Quote

Old   November 21, 2010, 13:11
Default
  #5
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 20
Fransje will become famous soon enough
Hello,

You can monitor your log file during the run by entering:
Code:
tail -f log
Hit ctrl+c to stop printing the output.
The job will be finished when the log file finishes by End. And Linux will also inform you the process corresponding to your solver run is finished.

For information on how to monitor the residuals, you could start by reading the User Manual, and reading/running the three tutorial test cases included there. Searching that very same document for the key word residuals will also tell you how you can monitor them, and change your run parameters accordingly.

A short search on this forum would have returned the following thread:
http://www.cfd-online.com/Forums/ope...residuals.html

Kind regards,

Francois.
Yage likes this.
Fransje is offline   Reply With Quote

Old   May 23, 2023, 04:16
Exclamation foamCleanTutorials | tee log.clean
  #6
Member
 
desimuser1
Join Date: Mar 2023
Posts: 35
Rep Power: 3
Desimuser1 is on a distinguished road
foamCleanTutorials | tee log.clean works for openfoam v10 (foundation) and the same command is not working for openfoam v2212,

foamCleanTutorials works but i cant get a log file out of it (in v2212)

foamCleanTutorials>log.clean (i tried this in v2212, dosent work)
Desimuser1 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
Continue from previous log file bernarde OpenFOAM 4 March 17, 2020 08:49
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 02:26
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50
[OpenFOAM] ParaView 33 canbt open OpenFoam file hariya03 ParaView 7 September 25, 2008 17:33
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 15:34.