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

turing off the log file?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 21, 2010, 13:56
Default turing off the log file?
  #1
Member
 
Join Date: Mar 2010
Posts: 30
Rep Power: 6
bunni is on a distinguished road
Sorry if this is a silly question, but how do I turn off the log file? Is there a command line toggle for that? I'm doing very long runs, and the log file gets into the Gb range, which is a little much. Cheers.
bunni is offline   Reply With Quote

Old   April 21, 2010, 15:56
Default
  #2
Member
 
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 7
AlanR is on a distinguished road
Control-C will kill the log file if it's already started. You can run a solver without the log file if you don't need the log. Instead of <foamJob simpleFoam>, just enter <simpleFoam> on the command line (or <mpirun -np x simpleFoam -parallel> if you're using more than one processor. The residuals will be displayed in your terminal window. I hope this helps,

Alan
AlanR is offline   Reply With Quote

Old   April 21, 2010, 17:01
Default thanks
  #3
Member
 
Join Date: Mar 2010
Posts: 30
Rep Power: 6
bunni is on a distinguished road
Thanks, I was actually looking to toggle it off, as opposed to redirecting to stout. I didn't know about control-C, but I don't know if that will work on the job submission system. At the moment, I redirect to /dev/null. I also just used the <simpleFoam>, as you suggest.

Last edited by bunni; April 21, 2010 at 17:04. Reason: more detail
bunni is offline   Reply With Quote

Old   April 22, 2010, 03:36
Default
  #4
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 6
CedricVH is on a distinguished road
I think your system is the only correct one, running simpleFoam 2>&1 > /dev/null
CedricVH is offline   Reply With Quote

Old   April 22, 2010, 09:16
Default
  #5
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 9
benk is on a distinguished road
Check out these threads:
Howto disable Solver Outputs
Disabling and Enabling Solver Summary Outputs within code
Debug switch
benk is offline   Reply With Quote

Old   April 22, 2010, 12:36
Default
  #6
Member
 
Join Date: Mar 2010
Posts: 30
Rep Power: 6
bunni is on a distinguished road
Thanks for your help!
bunni is offline   Reply With Quote

Reply

Tags
log file toggle

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
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 1 December 22, 2009 03:34
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 10:23
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26


All times are GMT -4. The time now is 16:01.