CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to compress results files so that paraview can still read them (https://www.cfd-online.com/Forums/paraview/84076-how-compress-results-files-so-paraview-can-still-read-them.html)

mirko January 19, 2011 13:50

How to compress results files so that paraview can still read them
 
Hello,

I have a run that generated about 2GB of data. Is there a way for me to compress the result files, but so that paraview can still open them for display

Thanks,

Mirko

deepsterblue January 19, 2011 15:17

foamFormatConvert should do it for you. Just change the writeCompression entry in system/controlDict to 'compressed'. It seems to be hard-wired for ascii, but a simple switch to IOstream::BINARY should do the trick for binary output.

I think the PV3FoamReader can handle binary/compressed formats (or is that only in Takuya's native/parallel version? Can't remember).

mirko January 20, 2011 11:07

Quote:

Originally Posted by deepsterblue (Post 291199)
foamFormatConvert should do it for you. Just change the writeCompression entry in system/controlDict to 'compressed'. It seems to be hard-wired for ascii, but a simple switch to IOstream::BINARY should do the trick for binary output.

I think the PV3FoamReader can handle binary/compressed formats (or is that only in Takuya's native/parallel version? Can't remember).

Thank you.

Since I did not see this mentioned anywhere explicitly:

for chtMultiRegionFoam, I had to specify the -region argument in order for the fields in XYZ/region/U|T|rho|... to be processed.

Mirko


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