2D Vorticity with any stencil

Computes curl() with arbitrary number of points in the stencil
265 téléchargements
Mise à jour 21 mai 2019

Afficher la licence

curl(X,Y,U,V) in Matlab will give you the angular velocity or vorticity of a 2D vector field (U,V) with a 3-point stencil. This implementation will compute the curl of a **UNIFORM*** grid with a 'npts' point stencil (only supports central differences). Since it uses convolution to accomplish that, the corners and edges of the grid will be incorrect.

Using for PIV post-processing, where noise can be an issue when computing derivatives.

Shoutout to Greg von Winckel for providing the stencil generator code (https://www.mathworks.com/matlabcentral/fileexchange/5269-finite-difference-weights)!

Citation pour cette source

Fernando Zigunov (2025). 2D Vorticity with any stencil (https://fr.mathworks.com/matlabcentral/fileexchange/71612-2d-vorticity-with-any-stencil), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2019a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0