CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   How to make data file for matlab from CFX? (http://www.cfd-online.com/Forums/cfx/19078-how-make-data-file-matlab-cfx.html)

cfxbeginner July 18, 2002 16:18

How to make data file for matlab from CFX?
 
Everyone: I want to draw 3d picture by matlab. But the data file (containing the velocity and pressure of a certain plane)I got from the result of CFX5 by "export" command is not fit to matlab.The data is not in order.For example, if x=0,y should be 0,2,4,6,8,10,12, x=2, y should be 0,2,3,4,6,8,10,12.But the data file is not in such way.For example, when x=0 y=0,2,4,6,8,10,12; when x=2,y=2,6,12(some positions have no data be exported).So I cannot draw satisfied picture from such data file by matlab. I think it is because the mesh of CFX5 is unstructured grid.How to resolve it? I have fieldview, it can export data of a certain plane by "export" command.But the file made by fieldview has the same problem. How to resolve this problem? Thank you!

Tommaso July 22, 2002 12:13

Re: How to make data file for matlab from CFX?
 
Probably you can use keyword GRID CENTRES in
:>PRINT OPTIONS
:>WHAT

... ?


Robin July 24, 2002 16:59

Re: How to make data file for matlab from CFX?
 
Read your data into a spreadsheet application and reorder it.

Robin

René August 15, 2002 09:34

Re: How to make data file for matlab from CFX?
 
What I do is to first "re-map" the data from CFX 5 onto a structured mesh. I use the MATLAB comands delaunay, tsearch and dsearch to interpolate the raw data onto my custom defined structured grid. Then go wild with the data analysis....

René

DingEnbao October 19, 2002 07:56

Re: How to make data file for matlab from CFX?
 
firstly check your output data. try command griddata in matlab.


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