Vector Divergence in Mathematica

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
mateomy
Messages
305
Reaction score
0
I'm trying to make a little manipulate/interactive box that shows the vector divergence of the E-field coming from a sphere. I have no idea how to start as I'm really new to Mathematica. Does anyone have any pointers? I can't find anything particularly helpful on the Wolfram reference or Demonstrations site. Thanks.
 
Physics news on Phys.org
mateomy said:
I'm trying to make a little manipulate/interactive box that shows the vector divergence of the E-field coming from a sphere. I have no idea how to start as I'm really new to Mathematica. Does anyone have any pointers? I can't find anything particularly helpful on the Wolfram reference or Demonstrations site. Thanks.

I'm no expert at Mathematica, but I've used StreamPlot and VectorPlot to create vector fields in two dimensions. I've never tried it in 3D, although there is a VectorPlot3D command. Anyway, I've attached the example I did.
 

Attachments

Thank you, very helpful.