Does the curl function in matlab calculates vorticity?
이전 댓글 표시
Iam suppose to calculate vorticity using 3 velocity component u,v and w. Does the built function curl helps to do the job??
댓글 수: 1
Jan
2014년 2월 14일
The question is not clear. Please do not post multiple questions for the same problem.
답변 (1개)
David Young
2014년 2월 15일
0 개 추천
댓글 수: 7
Roger Stafford
2014년 2월 15일
True, but for matlab's 'curl' function only if cartesian coordinates are being used. In other coordinate systems, the curl requires corresponding modifications. I see no evidence that matlab has made a provision for this in the 'curl' function.
David Young
2014년 2월 15일
Indeed - I should have pointed that out. Ritzwana: are you working in cartesian or some other coordinates?
David Young
2014년 2월 15일
I'm not an expert on visualisation (I didn't realise that was the main issue from your original post), but maybe what you need is contour3.
Roger Stafford
2014년 2월 15일
It's not only the velocity components, u, v, w that need to be relative to a cartesian coordinate system but their associated position values, x, y, z that also must be in the same cartesian coordinate system, to enable matlab's curl function to be used, Rizwana. In your related query on Answer thread #116134 you appeared to be working either with a cylindrical or a spherical coordinate system, and for these you need a different formula for the curl.
Rizwana
2014년 2월 16일
David Young
2014년 2월 20일
The problem is that I don't know for sure whether your position coordinates are cartesian, cylindrical or spherical. As Roger Stafford points out, they need to be cartesian for the curl function. You might find the functions pol2cart and sph2cart useful for conversions.
카테고리
도움말 센터 및 File Exchange에서 Gas Dynamics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!