stream3: how to use it
5 views (last 30 days)
Show older comments
Hello everyone,
I am having some troubles using the stream3 function.
Context:
I have a complex vehicle geometry that I read in Matlab from a CAD software file (.stl file). Now, I want to use stream3 to generate surface streamlines over this unstructured grid (a tri-surface defined by f and v matrices representing an aeroplane, i.e. a collection of triangles). What I want to do is to generate an approximate velocity vector flow field v, i.e. matrix dimension [nb_vertices, 3] for which I am using simple approximation.
So, to sum up what I got, I have the Cartesian coordinates [x y z] of the vehicle vertices (given by my v matrix) and an estimate of the velocity vectors at each of those vertices (giving me an approx. velocity field).
Question:
Do you know how I can calculate the streamlines over the entire vehicle geometry from the rear of the vehicle to the front so as to evaluate the location of the stagnation point (velocity components u,v,w equal to 0)?
Is it possible to use a built-in function like stream3? I need to know if I have to implement my own script.
Any help much appreciated,
Romain
0 Comments
Answers (2)
Sean de Wolski
on 1 May 2012
If x,y,z are not on a uniform grid, you will need to interpolate to a uniform grid ( TriScatteredInterp will be your friend). If you could provide us with a small example data set, we could be more useful.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!