CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Plotting streamline with MATLAB (https://www.cfd-online.com/Forums/main/16159-plotting-streamline-matlab.html)

CFD newbie December 23, 2008 23:35

Plotting streamline with MATLAB
 
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!!

otd December 24, 2008 10:20

Re: Plotting streamline with MATLAB
 
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.

Jed January 7, 2009 03:11

Re: Plotting streamline with MATLAB
 
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.

Steve January 7, 2009 04:42

Re: Plotting streamline with MATLAB
 
I have always used comet and comet3 to animate trajectories. Maybe this, or some variant of it is what you are looking for?

Abraham K Varughese January 7, 2009 14:13

Re: Plotting streamline with MATLAB
 
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

Jed January 7, 2009 14:50

Re: Plotting streamline with MATLAB
 
http://vtk.org/pdf/file-formats.pdf

emmanuelrongmie December 2, 2021 05:02

Regarding Separatrix or Phase Portrait line plot on Streamlines
 
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


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