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

Plotting streamline with MATLAB

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2008, 00:35
Default Plotting streamline with MATLAB
  #1
CFD newbie
Guest
 
Posts: n/a
I've obtained velocity data (u,v,w) and grid data (x,y,z) which are in three columns respectively after running the FORTRAN codes.

Anyone know how to use MATLAB to plot the streamlines with these available data?

Thanks for help!!
  Reply With Quote

Old   December 24, 2008, 11:20
Default Re: Plotting streamline with MATLAB
  #2
otd
Guest
 
Posts: n/a
For 3-d problems, you need stream surfaces. Alternatively, you might consider streak lines that follow a 'fluid particle'. With this, you'd track a projection of the 3-d motion onto a 2-d surface.

That's as far as I can take you. I don't know anything about MATLAB - but at least you can ask the right question.
  Reply With Quote

Old   January 7, 2009, 04:11
Default Re: Plotting streamline with MATLAB
  #3
Jed
Guest
 
Posts: n/a
Matlab isn't very good for this sort of visualization. I would recommend ParaView or VisIt, both of which can produce high quality results. Probably the simplest approach is to put your data in VTK legacy format which can be read by ParaView and VisIt, among others.
  Reply With Quote

Old   January 7, 2009, 05:42
Default Re: Plotting streamline with MATLAB
  #4
Steve
Guest
 
Posts: n/a
I have always used comet and comet3 to animate trajectories. Maybe this, or some variant of it is what you are looking for?
  Reply With Quote

Old   January 7, 2009, 15:13
Default Re: Plotting streamline with MATLAB
  #5
Abraham K Varughese
Guest
 
Posts: n/a
I have also similar output data in following format from a fortran code:-

x,y,z,u,v,w,density,pressure,Mach_no,Temp.(10 coloumns)

I want to plot 3D streamline. My x,y,z are not uniformly spaced.. I also want obtain x,y,z vs Mach_no and Temp plot, Pr etc..

Please help..

How to convert above data set into "vtk" format in order use "paraview".

Abraham
  Reply With Quote

Old   January 7, 2009, 15:50
Default Re: Plotting streamline with MATLAB
  #6
Jed
Guest
 
Posts: n/a
http://vtk.org/pdf/file-formats.pdf
  Reply With Quote

Old   December 2, 2021, 06:02
Question Regarding Separatrix or Phase Portrait line plot on Streamlines
  #7
New Member
 
Anonymous
Join Date: Oct 2020
Posts: 1
Rep Power: 0
emmanuelrongmie is on a distinguished road
I would like to know if we can overlay the phase portrait(separatrix line) line on streamlines. I have a 2D matrix through which I could generate streamlines. Now I would like to generate a phase portrait line on top of it.
Can anyone suggest, how to obtain it? The problem is I don't have an equation rather I have 2D matrix

Thanking you
emmanuelrongmie is offline   Reply With Quote

Reply

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
Streamline plotting archer Main CFD Forum 0 April 6, 2011 11:54
Streamline plotting logic soggy316 Main CFD Forum 8 July 10, 2009 09:14
Plotting turbulent energy spectra in Matlab nathanpetrelli Main CFD Forum 2 April 24, 2009 23:57
MATLAB streamline plot new Main CFD Forum 0 December 3, 2008 04:47
Contour plotting with origin or matlab M. A. Waheed Main CFD Forum 0 November 1, 2005 03:42


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