Question: I am having trouble getting the plot to show a sphere of orange arrows. I can get it to make a circle of arrows only.

 I am having trouble getting the plot to show a sphere

of orange arrows. I can get it to make a circle of

I am having trouble getting the plot to show a sphere of orange arrows. I can get it to make a circle of arrows only. I know in spherical coordinates the range of theta should be from 0 to 2*pi, phi should be 0 to pi, and R should be 0 to R. Also, since I want 12 arrows I have theta increasing by pi/6 so that it makes 12 iterations in the loop. I am confused how I should write my other two loops to make a sphere. It is all programmed in Vpython on Vidle, and 'oofpez' should be oofpez = 9e9. Thank you!

from_future__ import division from visual import * from visual.graph import * # Define Constants e = 1.6e-19 oofpez = 9e91 scalefactor = 1.2le-100 # Set Initial Values theta = 0 phi = 0 r = 2e-9 Obslocation = vector (1.8e-9, le-9,0) # Create Objects atoml = sphere (pos=vector (0.5e-9,0,0), radius=le-10, color=color.blue) atoml.q = -1*e atom2 = sphere (pos-vector (-0.5e-9,0,0), radius-le-10, color=color.red) atom2.q=e #Calculations while theta

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!