Finite difference scheme used in 'CURL' function?

3 Ansichten (letzte 30 Tage)
Puja Jawahar
Puja Jawahar am 7 Jul. 2020
Kommentiert: Puja Jawahar am 7 Jul. 2020
Which finite difference scheme does Matlab use while estimating vorticity using the CURL function?

Akzeptierte Antwort

Sindar
Sindar am 7 Jul. 2020
Bearbeitet: Sindar am 7 Jul. 2020
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)

Weitere Antworten (0)

Kategorien

Mehr zu Electrical Block Libraries finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by