CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   binary heavier than ascii (http://www.cfd-online.com/Forums/openfoam/66711-binary-heavier-than-ascii.html)

Schag July 22, 2009 08:13

binary heavier than ascii
 
Hi all,

maybe it's a trivial question but as long as I was doing some test to improve my use of openfoam, it appears that compressed binary results are heavier than ascii ones.

My example is: 9000 elements, 100 steps written, constant+system: 2Mo
Results:
ascii uncompressed: 89Mo compressed (gzip): 35Mo
binary uncompressed: 79Mo compressed (gzip): 66Mo

I was sure before that binary compressed would be lighter. I think it is not really related to OF, but if someone made the same observation or have an explanation, it would take me out of scepticism.

Regards

Julien

henrik July 22, 2009 08:30

Dear Julien

your analysis is correct AND it should be like this.

The binary is more accurate and the ascii compresses better because the file contains mostly of the 10 numbers + "." + "e".

Henrik

Schag July 22, 2009 08:38

Dear Henrik

Thank you very much for answering so quickly and precisely,

Regards,

Julien


All times are GMT -4. The time now is 09:25.