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

Writing scalar time history to a file

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

Reply
 
LinkBack Thread Tools 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: 5
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: 5
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

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
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
crash sHM H25E OpenFOAM Native Meshers: snappyHexMesh and Others 11 November 10, 2014 12:27
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 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 04:09.