weber173_Lab2

docx

School

Purdue University *

*We aren’t endorsed by this school

Course

1301

Subject

Physics

Date

Dec 6, 2023

Type

docx

Pages

3

Uploaded by MajorEmu3595

Report
Physics 272 – Lab 02 Electric Field Due to a Dipole Learning Goals After completing this activity, you should be able to: Plot the electric field due to a dipole along the direction perpendicular to the dipole. Plot the electric field due to a dipole along the direction of the dipole. Revisiting Computational Models Go to www.glowscript.org . Click ‘Sign In’ at the top right corner of the screen. Use your Gmail account password to sign in. This is now your new GlowScript account. In your own GlowScript account, click on your username at the top right to see your files Click on the “ Public ” tab at the top. You are in a public folder now. In the public folder, click on “Create New Program,” give it a name, and copy the original code from the link below into the file you just created. https://www.glowscript.org/#/user/phys272vpython/folder/LAB02/program/Efield- Dipole/edit Q1: Focus on the portion of code that calculates the magnitude and direction of the E- field due to a dipole. Comment one each line of code to describe what it does. Take a screen shot of the commented code and paste it here. Page 1 of 3
Q2: Run the program and click at different locations on the vertical line to observe the E-field vectors at each point. Observe the graph below. How does the graph show how the E-field due to a dipole changes with the distance from the dipole? The graph plots a point to show the magnitude of the electric field due to the dipole at certain instances. The graph only displays a value on the x axis as is expected with ah dipole when the charge is perpendicular in the plane in the y direction. Q3: How does this compare with what theory about the electric field due to a dipole perpendicular to the dipole? The theory states that there will only be energy in the direction parallel to the dipole and as long as you are very accurate and keep on the vertical line this stays true. Q4: Refresh the program, and this time click at different locations on the horizontal line to observe the E-field vectors at each point. Observe the graph below. How does the graph show how the E-field due to a dipole changes with the distance from the dipole? The graph once again shows the charges to be on or very close to the x axis which is expected for this kind of an interaction. Q5: How does this compare with what theory about the electric field due to a dipole along the direction of the dipole? The theory here would follow suit with the program as in the direction parallel the electric field should be on the axis that is parallel to the dipole. Q6. Write down the URL from the browser bar. It will be a link for your TAs to access to your code, and giving you feedback. https://www.glowscript.org/#/user/izzyweber/folder/MyPrograms/program/EField- Dipole/edit Make sure that the status of your folder is “PUBLIC”, and the link is working well. To do that, exit from your Glowscript account and copy/paste the URL of your program in a Page 2 of 3
new browser bar. You should be able to see your own code if the link and the status of your folder are correct. If you mistakenly kept it private, you will not be able to see your code and you will get a message similar to the one below: Page 3 of 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help