Finite difference scheme used in 'CURL' function?

조회 수: 4 (최근 30일)
Puja Jawahar
Puja Jawahar 2020년 7월 7일
댓글: Puja Jawahar 2020년 7월 7일
Which finite difference scheme does Matlab use while estimating vorticity using the CURL function?

채택된 답변

Sindar
Sindar 2020년 7월 7일
편집: Sindar 2020년 7월 7일
You can actually see the full code using
edit curl
it looks like everything is based on gradient, which appears to use a 2-point difference.
(In fact, all the code for gradient is there too. So, you could set up alternate FD schemes. I'd suggest copying the code into something like gradient_4point, curl_4point)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fluid Dynamics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by