Format of bi4 binary data files
I would like to create a Python script that postprocesses the simulation data. Seen the big problem sizes, it would be quite handy to read the data directly from the bi4 binary files. To do so, I would want to know the rules the data have been saved on these binary files with.
I have searched around the forum and the guide, but I cannot seem to find positive information on the bi4 format (directions welcome at any time).
I understand this is what programs such as PartVTK4, ToVTK (4.3) and the like do. Another option is then to reverse-engineer the source code.
To this end and with some time savings in mind, would you please indicate the source files where these write/read rules can be retrieved? Then I will move on from this information.
Corrections and directions welcome. Thanks in advance for helping me out.
Kindly, Giordano
I have searched around the forum and the guide, but I cannot seem to find positive information on the bi4 format (directions welcome at any time).
I understand this is what programs such as PartVTK4, ToVTK (4.3) and the like do. Another option is then to reverse-engineer the source code.
To this end and with some time savings in mind, would you please indicate the source files where these write/read rules can be retrieved? Then I will move on from this information.
Corrections and directions welcome. Thanks in advance for helping me out.
Kindly, Giordano
Comments
If you get deeper into the problem I would love to hear more, I mostly use Matlab, but still would be interested in seeing a Python solution.
Hope someone can guide you to the right place
"SaveData" and "SavePartData" in JSph.cpp
Regards
Source:
$ head -1 Part_0000.bi4
, https://en.wikipedia.org/wiki/List_of_filename_extensions_(F%E2%80%93L)#JFor those who ended up reading this, I am glad to acknowledge this promising step forward https://forums.dual.sphysics.org/discussion/1658/update-regarding-post-processing-tools/p1
Thanks for keeping up the good work!