CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Exporting data to MATLAB (http://www.cfd-online.com/Forums/fluent/41652-exporting-data-matlab.html)

Ryan July 10, 2006 13:17

Exporting data to MATLAB
 
Hi everyone!

I am trying to export data from my simulation to MATLAB to do some plots (2D and 3D) not available in FLUENT 6.1. I've been reading the user's manual, but I can't determine the proper format to get MATLAB to read the data correctly. The best results I've gotten so far are when I use File-->Export--> Data Explorer (.dx). Is this correct, or is there a way that actually makes sense and is easier to determine what data goes with what? Thanks!

Cheers, Ryan

Ralf Schmidt July 11, 2006 02:11

Re: Exporting data to MATLAB
 
hi!

use file->write->profile

select the surface (line/point/volume) and the values you want to postprocess. Fluent writes a file, that looks like that:

x,

y,

z,

values1,

values2,

...

Now, use that program, to sort them in matlab:

http://www.cfd-online.com/Forum/flue...cgi?read=35447

Hope, it helps

Ralf

Fab July 12, 2006 06:41

Re: Exporting data to MATLAB
 
Hi,

another way would be to the results into ensight format and use vtk together with matlab to get direct access to it. Or you use right away vtk together with python/scipy/numpy which should be almost as powerfull as matlab, but for free :)

Greetings! Fab

P.S. If you have to stick to matlab syntax, use octave with octaviz ...



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