CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Change of Binary Restart Format? [Solved]

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2020, 19:32
Question Change of Binary Restart Format? [Solved]
  #1
New Member
 
Paul
Join Date: Jul 2018
Posts: 5
Rep Power: 8
GomerOfDoom is on a distinguished road
Solved my own problem. It does indeed appear that all metadata that used to follow the volume values has been removed.



Original question below:



Hello,


I had previously written a python script to extract data from SU2 binary restart files.


The script worked for v. 6.2 and below, but I now seem to have problems with restart files from v. 7.0 and above.


I saw on the guide that the ASCII format has changed (certain metadata is no longer written). Does this also apply to the binary file format?


Is there a guide/specification on the binary restart file format as of version 7.0? If so, can someone point me to it?



Thanks!


-Paul
GomerOfDoom is offline   Reply With Quote

Old   May 24, 2020, 10:51
Smile
  #2
New Member
 
Join Date: Mar 2020
Posts: 4
Rep Power: 6
xinlei91 is on a distinguished road
Hi Paul,

Have you solved this problem? I am struggling to read the restart file with python. It would be greatly appreciated if you could give me some help on this.

Xinlei
xinlei91 is offline   Reply With Quote

Old   May 24, 2020, 22:13
Default
  #3
New Member
 
Join Date: Aug 2019
Posts: 3
Rep Power: 7
DGIorio is on a distinguished road
Quote:
Originally Posted by xinlei91 View Post
Hi Paul,

Have you solved this problem? I am struggling to read the restart file with python. It would be greatly appreciated if you could give me some help on this.

Xinlei
The restart file is stored in binary format. For steady bidimensional simulations, it's structured in the following way:

Offset Size Type Comment
0x00 0x4 int Magic, 0x82BEC
0x04 0x4 int Number of primary properties
0x08 0x4 int Number of data entries or number of mesh vertices

Following this header, at offset 0x14, you have the properties names in string format, each one with size 0x21.
Then there are the flow data, stored in double float format following the vertex order of your mesh (ie, first entry is related with vertex 1, second entry to vertex 2,...). For each vertex, the flow data is organized in the sequence presented in the properties names section.
DGIorio is offline   Reply With Quote

Old   May 25, 2020, 00:29
Thumbs up
  #4
New Member
 
Join Date: Mar 2020
Posts: 4
Rep Power: 6
xinlei91 is on a distinguished road
Quote:
Originally Posted by DGIorio View Post
The restart file is stored in binary format. For steady bidimensional simulations, it's structured in the following way:

Offset Size Type Comment
0x00 0x4 int Magic, 0x82BEC
0x04 0x4 int Number of primary properties
0x08 0x4 int Number of data entries or number of mesh vertices

Following this header, at offset 0x14, you have the properties names in string format, each one with size 0x21.
Then there are the flow data, stored in double float format following the vertex order of your mesh (ie, first entry is related with vertex 1, second entry to vertex 2,...). For each vertex, the flow data is organized in the sequence presented in the properties names section.
Thanks for your answer! It is quite helpful.
xinlei91 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reconstructPar error with binary format data Bashar OpenFOAM 1 April 22, 2021 12:53
save to variable filename inside loop FrankR Fluent UDF and Scheme Programming 5 January 30, 2019 12:16
Change BCs and restart simulation be89 OpenFOAM Running, Solving & CFD 1 February 28, 2017 13:02
Write data from probe locations in binary format kozden OpenFOAM Post-Processing 0 June 18, 2016 06:25
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 16:03


All times are GMT -4. The time now is 10:05.