curl+ndgrid/meshgrid in two dimensions

12 ビュー (過去 30 日間)
Marco Lucchesi
Marco Lucchesi 2015 年 6 月 24 日
Dear all,
I am trying to compute the curl of a 2D velocity field. My grid is given in x and y direction by two vectors, xm and ym of size size_x and size_y respectively and non equispaced.
My velocity field (U,V) is defined such that
>> size(U)
ans =
size_x size_y
so I compute its curl by:
[Mxm,Mym]=meshgrid(xm,ym);
[curl,cav]=curl(Mxm,Mym,transpose(U),transpose(V));
Is there a way to compute such curl without performing any transposition?
Many thanks

回答 (0 件)

カテゴリ

Help Center および File ExchangeFluid Dynamics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by