The postprocess binary format is strongly based in the ascii format.
Each line of the Mesh and Result headers are stored as a 4-byte integer with the length of the string followed by the 0-terminated string-line.
Mesh coordinates, conectivities connectivities and result values are stored as binary data, 4-byte integers and 4-byte floating point values.
Finally the whole binary data file is compressed with z-lib.
You can debug the file following these steps:
- rename the file for instance to .post.res.gz
- uncompress un-compress it with your favoutire favourite compressor
- you can 'edit' the file with emacs, notepad++ or any other editor
- you can also look for the 'Result' header with CLI tools like:
...
Use the freely available GiDPost library to write post-process data files in ascii, binary or hdf5 format. Switching between these formats only requires a couple of modifications. The source code and some pre-built binaries can be downloaded from https://www.gidhomegidsimulation.com --> GiDPlus --> GidPost.