divergence in cylindrical coordinates

I have a vector field in axisymmetrical cylindrical coordinates composed of u_r and u_z. Is there a function in matlab that calculates the divergence of the vector field in cylindrical coordinates? I know that the function 'divergence' calculates for a 2D field.

Categories

Find more on Language Fundamentals in Help Center and File Exchange

Asked:

on 10 May 2012

Edited:

on 1 Mar 2018

Community Treasure Hunt

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

Start Hunting!