Error in vorticity calculation using curl function

2 ビュー (過去 30 日間)
Turbulence Analysis
Turbulence Analysis 2021 年 2 月 2 日
回答済み: Sai Sumanth Korthiwada 2022 年 12 月 22 日
Hi,
I am comparing the vorticity contours evaluated from velocity data using matlab's curl () function and pivmat's vec2scal function
Though, in both method, I am getting the similar contour, but the vorticity values are not correct. Could somebody help me with this ??. Image 1 generated using curl() and 2 generated using pivmat's vec2scal function..
  1 件のコメント
darova
darova 2021 年 2 月 14 日
They look similar

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

回答 (1 件)

Sai Sumanth Korthiwada
Sai Sumanth Korthiwada 2022 年 12 月 22 日
Hi,
The images attached in the query looks similar. However, the values of vorticity may differ as ‘curl()’ function is from MATLAB and ‘vec2scal()’ function is from PIVMat.
In ‘vec2scal()’ function, there is a scalar mode curl (or rot) : curl (z-component of vorticity field).
Try using ‘curl’ as an input argument to obtain the appropriate results. By default, if input argument ‘MODE’ is omitted, 'norm' (for a 2D field) or 'uz' (for a 3D field) is taken by default.

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by