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
Jan 2014 年 2 月 14 日
The question is not clear. Please do not post multiple questions for the same problem.

サインインしてコメントする。

回答 (1 件)

David Young
David Young 2014 年 2 月 15 日

0 投票

7 件のコメント

Roger Stafford
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
David Young 2014 年 2 月 15 日
Indeed - I should have pointed that out. Ritzwana: are you working in cartesian or some other coordinates?
Rizwana
Rizwana 2014 年 2 月 15 日
編集済み: Rizwana 2014 年 2 月 15 日
I have computed u , v and w using following set of formula
u = V * cos(beta) * cos(alpha) % alpha-yaw angle,beta-pitch angle
v = V * Cos(beta) * sin(alpha)
w = V * sin(alpha)
though my data was in spherical coordinates i.e, (V,alpha,beta), but i made use of conversion and got u,v,w in cartesian form. Please feel free to correct me, because iam still learning this coordinate system.
I can compute curl using u,v,w using matlab function but not able to plot its contours as it is m by n by p matrix and contour z(curl) should be always m* n format.
David Young
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
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
Rizwana 2014 年 2 月 16 日
Ok thanks.
Is there a way to do it manually. If you help me with formula then i may compute it at least manually. I have V--> Velocity(V), Beta() and yaw. How to compute curl manually using these three variables.
David Young
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 ExchangeLine Plots についてさらに検索

質問済み:

2014 年 2 月 6 日

コメント済み:

2014 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by