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

looking for a better way to import data output from fluent to Matlab

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2022, 07:17
Red face looking for a better way to import data output from fluent to Matlab
  #1
New Member
 
guillaume grimard
Join Date: Mar 2022
Posts: 3
Rep Power: 3
guillaumeGrimard is on a distinguished road
Hello, for my thesis I have to do some sPOD post processing on my LES simulation in Matlab. Currently I export an ASCII file and read it into Matlab with a text import. The ASCII files are MASSIVE and the Matlab .mat files take up an order of magnitude less space on my hard drive. This tells me that ASCII files don't have a high information / byte ratio. Is there a way to export fluent data that is readable by Matlab that has a lower file size? thanks for the help
guillaumeGrimard is offline   Reply With Quote

Old   November 11, 2022, 14:54
Default
  #2
New Member
 
Brad
Join Date: Oct 2021
Posts: 7
Rep Power: 3
bw91 is on a distinguished road
Did you ever find a solution to this? I am in an almost identical position.
bw91 is offline   Reply With Quote

Old   November 11, 2022, 15:04
Default
  #3
New Member
 
guillaume grimard
Join Date: Mar 2022
Posts: 3
Rep Power: 3
guillaumeGrimard is on a distinguished road
Quote:
Originally Posted by bw91 View Post
Did you ever find a solution to this? I am in an almost identical position.
Hi, yes I found that it is possible to read out the cas.h5 and .dat.h5 format as HDF5 with Python and Matlab. But it will require a good amount of programming work, also it can be challenging to reconstruct the mesh because it is stored in a clever format & there is not a lot of documententation from ANSYS, but it is possible to reverse engineer. https://github.com/ggrimard/ANSYSfluent is a repo I created in my free time to read the mesh into python.
guillaumeGrimard is offline   Reply With Quote

Old   November 11, 2022, 15:19
Default
  #4
New Member
 
Brad
Join Date: Oct 2021
Posts: 7
Rep Power: 3
bw91 is on a distinguished road
Oh that's awesome. Do you have a different link though? The one provided leads to a "page not found."
bw91 is offline   Reply With Quote

Old   November 11, 2022, 15:20
Default
  #5
New Member
 
guillaume grimard
Join Date: Mar 2022
Posts: 3
Rep Power: 3
guillaumeGrimard is on a distinguished road
It should work now, repo was set to private
guillaumeGrimard is offline   Reply With Quote

Old   November 11, 2022, 15:24
Default
  #6
New Member
 
Brad
Join Date: Oct 2021
Posts: 7
Rep Power: 3
bw91 is on a distinguished road
Yep, all good. Thanks
bw91 is offline   Reply With Quote

Reply

Tags
ascii, csv, matlab, memory, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
Fluent crash on writing data file after thousand iterations Chuck87 FLUENT 0 September 2, 2015 17:17
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
Problem of import fluent data to ilight fieldview seasoul FLUENT 3 September 9, 2008 23:36
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 12:22.