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

How to open a old file for APPEND

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 27, 2006, 18:08
Default I need to restart the solver a
  #1
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
I need to restart the solver at some point. Also I write out some log information for postprocessing.
My question is how can I open the old log file to APPEND new lines?

Now I am using:

//outlet concentration log file
if(!dir(runTime.path()/"outletAlpha")) //if the directory doesn't exist
mkDir(runTime.path()/"outletAlpha");
OFstream outlet1AlphaFile(runTime.path()/"outletAlpha"/"outlet1AlphaLog.dat");

outlet1AlphaFile << bla bla bla


__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

 


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
how to open a cas file in gambit Michal K FLUENT 5 March 14, 2009 16:37
FORTRAN(OPEN->APPEND) kris Siemens 1 November 30, 2004 07:57
where to open the file jx FLUENT 0 February 19, 2004 12:19
Scheme: append to existend file Ingolf FLUENT 0 November 10, 2003 05:27
append data to a file Wen Long Main CFD Forum 1 April 11, 2002 20:45


All times are GMT -4. The time now is 12:50.