Using Matlab to read the Code Saturne result file
Posted: Tue Oct 02, 2018 6:47 pm
Hi Code Saturne team:
I have a steady state simulation done by Code Saturne, and I am going to read the result file. As I know, different variables are stored in different files, for example, temperature field is stored in file "results.tempc.00001" which is binary. And now I am going to read the temperature field into an array in Matlab, so that I can do other data processing or calculation using the result data, anyone know how to do that? If there is a Matlab file, it's perfect. If there is not, could someone tell me the structure of the output file "results.tempc.00001", how many numbers are in this file and what's the type of these numbers, because in Matlab, I need to specify the type of numbers ("float 64" or "int32"...) and the number of the total numbers stored in the file. I suppose for example I have 12000 cells in my fluid domain, there will be 12000 temperature values stored in this file, so that I can use the global cell index to find out the temperature of this cell. Thanks for the time.
Regards!
Jundi
I have a steady state simulation done by Code Saturne, and I am going to read the result file. As I know, different variables are stored in different files, for example, temperature field is stored in file "results.tempc.00001" which is binary. And now I am going to read the temperature field into an array in Matlab, so that I can do other data processing or calculation using the result data, anyone know how to do that? If there is a Matlab file, it's perfect. If there is not, could someone tell me the structure of the output file "results.tempc.00001", how many numbers are in this file and what's the type of these numbers, because in Matlab, I need to specify the type of numbers ("float 64" or "int32"...) and the number of the total numbers stored in the file. I suppose for example I have 12000 cells in my fluid domain, there will be 12000 temperature values stored in this file, so that I can use the global cell index to find out the temperature of this cell. Thanks for the time.
Regards!
Jundi