I am having some troubles using the stream3 function.
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).
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,