I'm not entirely sure how to convert from spherical coordinates to Cartesian coordinates, I believe the way to do it is by using the following code:
TransformedField["Spherical" -> "Cartesian", B, {r, θ, ϕ} -> {x, y, z}]
Where B
is
-((0.0003*Cos[θ][Sin[θ]]^2)/r^2)
Then I want to take the -Grad of this equation (after it's converted into cartesian)
MP0 = -Grad[-((0.0002906250000000001*(z/Sqrt[x^2 + y^2 + z^2])[Sqrt[x^2 + y^2]/
Sqrt[x^2 + y^2 + z^2]]^2)/(x^2 + y^2 + z^2)), {x, y, z}]
Then the result is a vector which I want to plot using VectorPlot3D, however it won't plot, it just gives me a blank output