CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] plotting bubble shape from contour coordinates in matlab

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2020, 15:30
Default plotting bubble shape from contour coordinates in matlab
Join Date: Apr 2018
Location: UK
Posts: 55
Rep Power: 4
JM27 is on a distinguished road

I am running some multiphase simulations in OpenFOAM and I want to plot the bubble contour using alpha = 0.5 in order to compare the bubble shape at various times in my simulation. I want to do this in Matlab by plotting various time steps on the same plot as a comparison.

I create the contour in Paraview and I save the coordinates of alpha=0.5 contour using File --> Save Data.

The problem is that when I plot the coordinates in Matlab the points are joined differently to what I see in Paraview (see attached image).
I have tried sorting the coordinates but Matlab just fills the whole shape of the bubble instead of showing only the outline.

Can someone please tell me how I can solve this problem or a better way to do this?

I have tried looking on this forum but was unable to find a solution
Attached Images
File Type: jpg alpha_contour.jpg (62.1 KB, 1 views)
JM27 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plotting pressure difference contour at a surface pszatk CFX 1 April 26, 2017 18:38
[General] Plotting solution vector from Matlab in Paraview crg123 ParaView 0 November 20, 2016 12:19
CONTOUR PLOTTING Dr M.A. Waheed Main CFD Forum 1 November 2, 2005 04:24
Contour plotting with origin or matlab M. A. Waheed Main CFD Forum 0 November 1, 2005 02:42
Add Measure Markings or Coordinates to the Contour Colin FLUENT 4 August 25, 2004 09:54

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