I want to use Vector Analysis functions (Grad, Div,Curl etc) with the following set of simple Toroidal coordinates $(r, \theta, \phi)$:
$x = (R+r \cos\theta)\sin\phi$, $y = (R+r \cos\theta)\cos\phi$, $z = r \sin\theta$
I already have the scale factors and all that, and I am aware there is already a set of toroidal coordinates coded into the built in function, but they are different from mine. Is there any way to code my own system of coordinates to later use with Grad, Div etc..? Thanks
with(VectorCalculus): SetCoordinates('toroidal'[r, theta, phi]): V := VectorField(<,>(r^2, sin(theta), cos(phi))); Curl(V);– user64494 Oct 12 '23 at 18:23CoordinateTransformData[]andTransformedField. – Syed Oct 13 '23 at 01:36