CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Export/Import data contour plots with Matlab

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 5, 2012, 15:59
Default Export/Import data contour plots with Matlab
  #1
Member
 
Casey
Join Date: Jun 2009
Posts: 96
Rep Power: 10
meangreen is on a distinguished road
Hi Everyone,

I would like to make contour plots using matlab from my Fluent data, but I can't figure out how to sort the data so that matlab can plot it. (I am working in 2D and axisymmetric)

Fluent provides one long list of x coordinates, one long list of y coordinates and on long list of variables. But this isn't how matlab wants to plot things.
Has anyone written a function in matlab to rearrange the fluent output so they can plot the contour plots in matlab?

My mesh uses adaption, which makes things complicated.

Casey
meangreen is offline   Reply With Quote

Old   August 16, 2012, 19:15
Default
  #2
Member
 
Negin Nazarian
Join Date: Jan 2012
Location: San Diego
Posts: 61
Rep Power: 7
nenazarian is on a distinguished road
Hi

I have the same problem as yours. Do you remember how you solved this?
any help is appreciated.

Cheers
Negin
nenazarian is offline   Reply With Quote

Old   August 20, 2012, 08:51
Default
  #3
Member
 
Casey
Join Date: Jun 2009
Posts: 96
Rep Power: 10
meangreen is on a distinguished road
Still haven't been able to solve it. Let me know if you make any progress. I have been using paraview, but it doesn't provide the same amount of control as I would like.
meangreen is offline   Reply With Quote

Old   August 21, 2012, 01:28
Default
  #4
Senior Member
 
Join Date: Aug 2011
Posts: 315
Rep Power: 14
blackmask will become famous soon enough
You could use interp/interp2/interp3 functions provided by MATLAB to interpolate your result to structured grids. TECPLOT is a better choice than MATLAB for data visualization.
blackmask is offline   Reply With Quote

Old   July 27, 2017, 06:56
Default
  #5
New Member
 
ehsan
Join Date: Sep 2014
Posts: 14
Rep Power: 5
e_cfd is on a distinguished road
you can export any contours from FLUENT to MATLAB following these steps:

1- Export what you want from File\export\solution data. (file type : ASCII and delimiter should be space).

2- use uiopen ('file address',1) in MATLAB.
3- delete characters in the first line of opened script.
4- save it on the previous file (just Ctrl+s)
5- c=dlmread('file address')

Done !
c usually is a N*4 matrix, (node number, x-coor, y-coor, contour parameter)

Regards
Ehsan
e_cfd is offline   Reply With Quote

Old   September 6, 2017, 07:46
Default
  #6
New Member
 
Bauta Steen
Join Date: Aug 2017
Posts: 2
Rep Power: 0
bsteen is on a distinguished road
If you have exported your Fluent grid and data in Ascii format you can use the FEATool Matlab FEM Toolbox functions to plot contours on general unstructured grids (as well as perform further postprocessing). A few examples of possible plots and explanation of the syntax is given in this postprocessing tutorial.
bsteen is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to extract data from contour plots using paraView? Angela Wang OpenFOAM 10 December 3, 2017 21:37
Matlab contour plots Chris CFX 11 July 31, 2017 13:23
fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 May 2, 2013 10:52
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
drawing of contour plots chinthakindi Main CFD Forum 1 April 27, 2004 04:33


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