CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   matlab and cfx551 (https://www.cfd-online.com/Forums/cfx/19262-matlab-cfx551.html)

Olivier October 29, 2002 05:32

matlab and cfx551
 
Hello everybody,

I would like to export data from cfx-post to matlab. The problem is that to do this I need the data structure of the nodes where the data is given by the export program in CFX-Post. And I don't know where to find this inside Post. What I do in general is: 1- create a plane in my geometry 2- export the data and the coordinates of the points as .dat file

But as the data is unstructured no contour matlab function will work on this.

Does someone have any idea on how to do this ?

Thank you

Olivier

cujo October 29, 2002 05:50

Re: matlab and cfx551
 
Hi Olivier, Just use File->Export, select the variables (nodal co-ordinates and properties) and the locator (your plane) and export your data. Subsequently, you can use the MATLAB command textread('exportfile.dat','%f %f %f %f %f','commentstyle','shell'), where %f are your data fields.

Good luck!

Cujo

Dave October 29, 2002 05:54

Re: matlab and cfx551
 
Olivier Hi, I don't know much about matlab, but can it read CGNS files ? From the solver manager goto Tools/Export, and have a look at the options. One of the formats may be compatible with Matlab Dave

Olivier October 29, 2002 06:42

Re: matlab and cfx551
 
Thank you everybody for the tips.

Cheers

Olivier


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