I'm new to Mathematica and I'm having trouble plotting the electric field which I calculated in the framework of Mie theory. I'm not sure which kind of plot is appropriate here.
Note, my electric field is the sum of a series of vector spherical harmonics and also contains an imaginary component. I'm not sure if this affects the plot. As you can see, my plot doesn't show anything.
I've attached my code and would really appreciate any advice. Thanks.
(* Spherical Vector Harmonics *)
divNt = D[x*SphericalHankelH1[n, t], t] /. t -> x ;
Nr = Table[Cos[\[Phi]] n (n + 1) Sin[\[Theta]]*pin*SphericalHankelH1[n, x]/x, {n, 1, nstop}];
Nt = Table[Cos[\[Phi]]*\[Tau]n*(divNt/x), {n, 1, nstop}];
Np = Table[-Sin[\[Phi]]*pi*(divNt/x), {n, 1, nstop}];
Mt = Table[Cos[\[Phi]]*pi*SphericalHankelH1[n, x], {n, 1, nstop}];
Mp = Table[-Sin[\[Phi]]*\[Tau]*SphericalHankelH1[n, x], {n, 1, nstop}];
(* E-field*)
Esr = Total[En*(I*an*Nr - bn*0)];
Est = Total[En*(I*an*Nt - bn*Mt)];
Esp = Total[En*(I*an*Np - bn*Mp)];
Es = Sqrt[(Esr)^2 + (Est)^2 + (Esp)^2];
(* Plotting E field *)
ContourPlot[Es[\[Theta], \[Phi]], {\[Theta], 0, \[Pi]}, {\[Phi], 0, 2 \[Pi]}];