|
[Sponsors] |
July 18, 2002, 17:18 |
How to make data file for matlab from CFX?
|
#1 |
Guest
Posts: n/a
|
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!
|
|
July 22, 2002, 13:13 |
Re: How to make data file for matlab from CFX?
|
#2 |
Guest
Posts: n/a
|
Probably you can use keyword GRID CENTRES in
:>PRINT OPTIONS :>WHAT ... ? |
|
July 24, 2002, 17:59 |
Re: How to make data file for matlab from CFX?
|
#3 |
Guest
Posts: n/a
|
Read your data into a spreadsheet application and reorder it.
Robin |
|
August 15, 2002, 10:34 |
Re: How to make data file for matlab from CFX?
|
#4 |
Guest
Posts: n/a
|
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é |
|
October 19, 2002, 08:56 |
Re: How to make data file for matlab from CFX?
|
#5 |
Guest
Posts: n/a
|
firstly check your output data. try command griddata in matlab.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 05:43 |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
File export from CFX 5.3 | Sinjae Hyun | CFX | 1 | July 12, 2000 10:20 |