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

Writing scalar time history to a file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2015, 07:02
Post Writing scalar time history to a file
  #1
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 12
jaroshh is on a distinguished road
Hi

I'm writing a post processing app. Let's say that this app calculates one particular scalar value over the time step. I know how to write this value to corresponding time folder but I would like to know how to write all this values(time history) to one file. I forgot to mention that I'm relatively new to OpenFOAM programming. I think that i should use OFStream, but it would be nice if someone could post here some pseudo code example.

Thanks in advance
jaroshh is offline   Reply With Quote

Old   August 21, 2015, 17:32
Default
  #2
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 12
jaroshh is on a distinguished road
I have solved it already by using standard c++ fstream and iostream library's .
jaroshh is offline   Reply With Quote

Reply

Tags
post processing, programming


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
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[snappyHexMesh] crash sHM H25E OpenFOAM Meshing & Mesh Conversion 11 November 10, 2014 11:27
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


All times are GMT -4. The time now is 10:36.