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

File I/O

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 16, 2013, 13:40
Default File I/O
  #1
New Member
 
Join Date: Oct 2013
Posts: 3
Rep Power: 3
tylergug is on a distinguished road
Hello openFoamers,

I have some data that is being written to the screen at each time step, and I would like to output it to a text file as well. Does anyone have any insight into the process? This code is not in the solver but in the source class.

This is probably a very simple fix....but I have been at a complete loss.

Regards,
Tyler
tylergug is offline   Reply With Quote

Old   October 16, 2013, 16:50
Default
  #2
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 5
zhengzh5 is on a distinguished road
Quote:
Originally Posted by tylergug View Post
Hello openFoamers,

I have some data that is being written to the screen at each time step, and I would like to output it to a text file as well. Does anyone have any insight into the process? This code is not in the solver but in the source class.

This is probably a very simple fix....but I have been at a complete loss.

Regards,
Tyler
i think you can do something like "icoFoam > log.txt", which runs icoFoam and directs all outputs to the text file instead. and use "tail -f log.txt" to see the live update of the log file.
zhengzh5 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
problem on installing swak4Foam navid2 OpenFOAM Installation 2 May 30, 2012 04:32
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18


All times are GMT -4. The time now is 03:47.