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

running without a terminal output and saving time step information instead

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2012, 08:48
Default running without a terminal output and saving time step information instead
  #1
Member
 
Sören Sander
Join Date: Sep 2012
Location: Germany
Posts: 43
Rep Power: 13
Sören Sander is on a distinguished road
Hi,

I read that without a terminal output c programs are working a lot faster. E.g. counting from 1 to 10.000 with a for loop takes 10 times longer with an output order. Is there any option to do this in OpenFOAM, e.g. running icoFoam but without the output lines.
Even though this can make the solver a lot faster, the user looses the convergence control. So I am also looking for a possibility to write the important time step informations into a file. The standard output of openFOAM is way too large for me (writing "Solving for...", etc. is very hard drive intensive). Therefore I am looking for an option to write the values in a compressed form at a defined timestep. For instance "20 0.00012 0.123 0.002254" would mean "TimeStep UResidual alphaResidual cumulativeTimestep" error. Then, I could read the file into excel after or during processing and review the convergence.
Sören Sander is offline   Reply With Quote

Old   November 30, 2012, 07:46
Default
  #2
Member
 
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 15
michielm is on a distinguished road
I think you will need to take out the Info << .... << endl; statements from the solver (and maybe underlying parts) and recompile to be able to do this.

Is the issue really in writing to the terminal or is it in general? If it is only for the terminal then you can of course use icoFoam &> log & to start the solver in the background and have it write to a logfile
michielm is offline   Reply With Quote

Old   November 30, 2012, 09:03
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Quote:
Originally Posted by Sören Sander View Post
Hi,

I read that without a terminal output c programs are working a lot faster. E.g. counting from 1 to 10.000 with a for loop takes 10 times longer with an output order. Is there any option to do this in OpenFOAM, e.g. running icoFoam but without the output lines.
Well, this is only true if outputing is the only thing the for-loop does. The amount of output information for OpenFOAM solver is pretty small within each loop compared to the amount of operations within a loop. Writing to a file instead of writing to the terminal will certainly not improve performance. This is not the method for reaching speed-up and I would highly discourage putting any time or effort in it.

As an intermediate test, you could compare
Code:
icoFoam
icoFoam > myOutputFile
icoFoam > /dev/null
Bernhard 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
Very long time for saving the output (sim) file ... Eike STAR-CCM+ 2 January 2, 2012 19:40
How to show the transient case? H.P.LIU Phoenics 7 July 13, 2010 04:31
Saving Fluent Surface Monitor Output File fossu15a Main CFD Forum 1 November 12, 2009 07:10
MPI Application in HPC wendy Siemens 0 May 19, 2005 01:50


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