CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   binary heavier than ascii (

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
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.



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".


Schag July 22, 2009 08:38

Dear Henrik

Thank you very much for answering so quickly and precisely,



All times are GMT -4. The time now is 03:35.