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, 06: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: 4
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, 13:54
Default
  #2
New Member
 
Brad
Join Date: Oct 2021
Posts: 7
Rep Power: 4
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, 14:04
Default
  #3
New Member
 
guillaume grimard
Join Date: Mar 2022
Posts: 3
Rep Power: 4
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, 14:19
Default
  #4
New Member
 
Brad
Join Date: Oct 2021
Posts: 7
Rep Power: 4
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, 14:20
Default
  #5
New Member
 
guillaume grimard
Join Date: Mar 2022
Posts: 3
Rep Power: 4
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, 14:24
Default
  #6
New Member
 
Brad
Join Date: Oct 2021
Posts: 7
Rep Power: 4
bw91 is on a distinguished road
Yep, all good. Thanks
bw91 is offline   Reply With Quote

Old   June 16, 2023, 15:45
Default Spod
  #7
New Member
 
Alireza Maleki
Join Date: Aug 2017
Location: United State
Posts: 20
Rep Power: 8
alireza94 is on a distinguished road
Quote:
Originally Posted by guillaumeGrimard View Post
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
Hey Guillaume,
I need an assist with SPOD, and I'm wondering whether you could help with that. I'm simulating the flow passing from a rectangular wall-mounted cylinder, I like to do some SPOD on it. Right now, I got my output from OpenFoam in VTK file and I read them in Python. My problem is that the point data are not in structured shape, and they are some points with x and y coordinates and pressure values (in 2d plane) so I need to make a grid mesh and interpolate the data (as far as I know the point information must have regular shape and spacing, or at least the PySPOD developed like this) on this mesh, the point is if I do make a grid mesh to interpolate the data, it creates points inside the cylinder as well and then it tries to interpolate the value inside the cylinder as well that in non-physical!

What should I do at this stage?
alireza94 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 13:41
Fluent crash on writing data file after thousand iterations Chuck87 FLUENT 0 September 2, 2015 16:17
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Problem of import fluent data to ilight fieldview seasoul FLUENT 3 September 9, 2008 22:36
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30


All times are GMT -4. The time now is 15:56.