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

File I/O

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2013, 13:40
Default File I/O
  #1
New Member
 
Join Date: Oct 2013
Posts: 3
Rep Power: 12
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: 15
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


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[swak4Foam] problem on installing swak4Foam navid2 OpenFOAM Community Contributions 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 11:44
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 17:18


All times are GMT -4. The time now is 02:21.