CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Compression of OpenFOAM files afterwards (http://www.cfd-online.com/Forums/openfoam-post-processing/77219-compression-openfoam-files-afterwards.html)

idrama June 16, 2010 14:37

Compression of OpenFOAM files afterwards
 
Hey Foamers!

I have ran several cases, but I have forgotten to let the files compress via controDict. How can I compress the files afterwards?

Cheers in advance

idrama June 16, 2010 15:15

I found something what might help:

find -name "U" -type f -exec gzip {} \;

Cheers

ngj June 17, 2010 03:44

Hi Claus

Try the utility "foamFormatConvert". It reads the current settings in the controlDict and apply those to all file in all time directories.

Best regards,

Niels

idrama June 17, 2010 04:38

That a cool tool!

Cheers

immortality September 3, 2013 07:43

Hi Niels
I changed
writeFormat binary;//ascii;//
and used foamFormatConvert in parallel form,but when open any file its still in ascii format.

ngj September 3, 2013 13:35

Hi Ehsan,

I suppose that you do something wrong, because it is working with me. Are you executing the correct command for parallel?

Try the following:

Code:

nProcs=`find ./ -maxdepth 1 -name "processor*" -type d | wc -l`; mpirun -np $nProcs foamFormatConvert -parallel
Kind regards

Niels

immortality September 3, 2013 15:54

thanks,resolved!


All times are GMT -4. The time now is 12:27.