Compute Streamlines in Parallel and Antiparallel Directions
1 次查看(过去 30 天)
显示 更早的评论
I have a field vector on a 3D grid and I am using
XYZ = stream3(X,Y,Z,U,V,W,startx,starty,startz)
to calculate the streamlines. It works great when calculating the streamlines parallel to the flow. However, I need to find the streamlines upstream (antiparallel) and downstream of the seed points. Is there any way to do that?
0 个评论
采纳的回答
Wick
2018-5-1
Just reverse your velocity fields.
XYZ_reverse = stream3(X,Y,Z,-U,-V,-W,startx,starty,startz)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Volume Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!