as part of my electromagnetic waves course I want to plot all of the fields in order to better understand the material, but I ran into a few problems in the process. for example:
f1[x] = x^2
f2[y] = -y^2
Coulomb = {x^2, -y^2, 0}
Plot3D[x^2 - y^2, {x, -4, 4}, {y, -4, 4}]
VectorPlot[{x^2, -y^2}, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic]
VectorPlot3D[Evaluate[Coulomb],{x,-1,1},{y,-1,1},{z,-1,1}, VectorPoints -> Coarse, VectorScale -> Medium,
VectorStyle -> "LeftArrow3D"]
ECoulomb2 = {$\frac{qd*Cos[\Theta]}{2 \Pi r^3}$, $\frac{qd*Sin[\Theta]}{4 \Pi r^3}$, 0}
Ecartesian2 = TransformedField["Spherical" -> "Cartesian", Ecoulomb2, {r,$\Theta$,$\Phi$} -> {x,y,z}]
all runs smoothly and I'm getting the desired outputs. but when I try to create the following outputs I get empty graphs on the other end:
SliceContourPlot3D[Ecartesian2,"CenterPlanes", {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]
VectorPlot[Ecartesian2, {x,-3,3}, {y,-3,3}, PlotLegends -> Automatic]
VectorPlot3D[Evaluate[Ecartesian2], {x,-1,1}, {y,-1,1}, {z,-1,1}, VectorPoints -> Coarse,
VectorScale -> Medium, VectorStyle -> "LeftArrow3D"]
I tried to leave ECoulomb2 in {r,$\Theta$,$\Phi$} coordinates and plot it in a 2 variable plain, depending only on r and $\Theta$ but still getting an empty graph.
what will be the difference between plotting it in {r,$\Theta$,$\Phi$} and {x,y,z} coordinates?