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

where is log file created??

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 19, 2010, 04:44
Default where is log file created??
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 7
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, 06:18
Default
  #2
Member
 
Masashi Ohbuchi
Join Date: Oct 2009
Posts: 72
Rep Power: 7
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, 07:32
Default
  #3
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 7
Fransje is on a distinguished road
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.
Fransje is offline   Reply With Quote

Old   November 19, 2010, 11:38
Default
  #4
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 7
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, 14:11
Default
  #5
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 7
Fransje is on a distinguished road
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:
Tutorial of how to plot residuals !

Kind regards,

Francois.
Fransje is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Continue from previous log file bernarde OpenFOAM 2 September 21, 2010 08:06
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 10:50
ParaView 33 canbt open OpenFoam file hariya03 OpenFOAM Paraview & paraFoam 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 11:25.