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!
|
Re: How to make data file for matlab from CFX?
Probably you can use keyword GRID CENTRES in
:>PRINT OPTIONS :>WHAT ... ? |
Re: How to make data file for matlab from CFX?
Read your data into a spreadsheet application and reorder it.
Robin |
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é |
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 02:49. |