Plotting an electric field in Mathematica

1 reply · 3K views · last reply
Dustinsfl
Messages
2,217
Reaction score
5
$$
\vec{E} = -E\cos\theta\left(1 + \frac{2a^3}{r^3}\right)\hat{e_r} + E\sin\theta\left(1 - \frac{a^3}{r^3}\right)\hat{e_{\theta}}.
$$

How can I plot this in Mathematica?
 
dwsmith said:
$$
\vec{E} = -E\cos\theta\left(1 + \frac{2a^3}{r^3}\right)\hat{e_r} + E\sin\theta\left(1 - \frac{a^3}{r^3}\right)\hat{e_{\theta}}.
$$

How can I plot this in Mathematica?

Would this be the E-field for a = 1.35 and E = 1.66?View attachment 431
 
Attachments
  • Streamline plot of a two-dimensional vector field on axes from -5 to 5, with arrows along curves converging on the origin from above and below and diverging along the horizontal axis, forming a saddle-like flow pattern.
    hw6plot1d.jpg
    33.9 KB · Views: 145