CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Writing scalar time history to a file (https://www.cfd-online.com/Forums/openfoam-post-processing/158316-writing-scalar-time-history-file.html)

jaroshh August 21, 2015 07:02

Writing scalar time history to a file
 
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 August 21, 2015 17:32

I have solved it already by using standard c++ fstream and iostream library's .


All times are GMT -4. The time now is 22:04.