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/)
-   -   post-processed data saved as csv instead of dat (https://www.cfd-online.com/Forums/openfoam-post-processing/248705-post-processed-data-saved-csv-instead-dat.html)

lumasci March 28, 2023 11:16

post-processed data saved as csv instead of dat
 
Hi,
I am using the minMaxMagnitude post-processing functionnality.



As a results a file.dat is created with the following format:

Quote:

# Field minima and maxima
# Time field min location(min) processor max location(max) processor
0 U 0.000000e+00 (-1.099092e-01 -6.261345e-02 2.038625e-01) 0 3.712763e+02 (-3.176721e-02 5.759170e-02 3.087649e-01) 6
This format is not well interpreted with google sheet or other sheet files. (btw, doesn't seem it is possible to import .dat files with gogle spreadsheet.)


I am wondering wether it is possible to save post-processed file types? For example by adding
HTML Code:

type  csv;
or similar in the system file.


This comment is true for the post-processing function I am using, but for other as well.



Any suggestion on how to do that?



Or is there an easy way to code this ?

wa$$im April 12, 2023 10:21

You can simply open the .dat file with the notepad text editor and save it as csv :D


All times are GMT -4. The time now is 11:23.