필터 지우기
필터 지우기

how to generate a velocity vector field?

조회 수: 1 (최근 30일)
Romain W
Romain W 2012년 11월 16일
Hi all,
I have an unstructured mesh (set of triangles) defined in terms of faces (matrix f) and vertices (matrix v [x y z]). For each triangle centroid [rc(:,1) rc(:,2) rc(:,3)], I know the corresponding surface velocity vector [Ux Uy Uz].
My Objective: I wish to use the stream3 Matlab pre-built-in function to generate the pathline along the surface of my unstructured mesh.
First Problem : x, y and z (or rc(:,1), rc(:,2) and rc(:,3)) are not on a uniform grid, so I will need, for sure, to interpolate to a uniform grid. How can I generate such a grid? Should I use the following function: TriScatteredInterp?
Second Problem: How do I generate my velocity vector field? Should I use the same function or others?
Do you have any ideas?
Any help will be much appreciated, Thank you very much,
% Romain
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2012년 11월 19일
Perhaps you could provide a small example of your data?
For (2), yes, TriScatteredInterp will be your friend. Of course you also use quiver which does not require a uniform grid.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by