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

visualize OF using Matlab

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 14, 2014, 12:38
Default visualize OF using Matlab
  #1
New Member
 
Join Date: Jan 2014
Posts: 16
Rep Power: 3
flames is on a distinguished road
hi there,

I got the openfoam results of the three dimensional fields. Now I would like to make a planar slice of it and then visualize the 2D slice using matlab. Does anybody know how to realize it? I know matlab may only handle the slice data of structured meshes, however in openfoam as you know the meshes are unstructured. Anybody know how to do it properly? Thank you all.

flames
flames is offline   Reply With Quote

Old   February 14, 2014, 14:21
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Use the "sample" tool to get data on a slice (in ASCII format). If you have problems plotting that data in MATLAB directly, you can interpolate it to a structured grid using builtin MATLAB functions.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   February 14, 2014, 18:02
Default
  #3
New Member
 
Join Date: Jan 2014
Posts: 16
Rep Power: 3
flames is on a distinguished road
Thank you! If I generate the structured mesh for openfoam, I found that I have to output the mesh as an unstructured mesh. So when I output the 'structured mesh', actually the results are still UNSTRUCTURED. I found that this is a little complex. Thanks.
flames 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
How to start Fluent with Matlab?? Jay Hu FLUENT 5 October 9, 2013 14:20
Linking with Matlab?? LostinSpace Phoenics 0 March 25, 2013 06:39
Export/Import data contour plots with Matlab meangreen FLUENT 3 August 21, 2012 01:28
Live connection Matlab VS OF levka OpenFOAM Running, Solving & CFD 0 July 10, 2012 04:15
caling matlab in Fortran HaKu Main CFD Forum 0 July 16, 2009 15:35


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