NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 22, 2017, 03:23:21 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Brevity is the Soul of wit. ..."Shakespeare (154-1616, English dramatist and poet) "
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Ejs Open Source Double Slit Diffraction Model  (Read 7677 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: October 15, 2011, 09:54:27 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Ejs Open Source Double Slit Diffraction Model by lookang based on the works of Fu-Kwun Hwang found here

reference:
Ejs Open Source Single Slit Diffraction Model by Fu-Kwun Hwang remixed by lookang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2314.0
Superposition of several waves http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2082.0 by Fu-Kwun Hwang
other good applets
JDK Double slit interference by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=20.0

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!


* Ejs Open Source Double Slit Diffraction Model.png (126.83 KB, 457x577 - viewed 4969 times.)
« Last Edit: October 17, 2011, 07:27:17 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: October 16, 2011, 08:22:38 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

changes made:
redesign the slits to be 2 instead of the older single slit
made the 2 slits symmetric centered with moved by y slider
add the 2 slits scalarField by introducing the idea of superposition from the top set of secondary sources
Code:
for(int i=0;i yc=yi+i*dy; // lay the source in y
 yctop=yitop+i*dy; // duplicate for top slit
 ycc[i] = yi+i*dy; // by lookang for drawing source
  ycctop[i] = yitop+i*dy; // by lookang for drawing source
 for(int j=0;j // if (x   x=xmin+j*d;
 // }
 // else if (x>x1){
// x=x1+j*d;
  // r=x-x1; // r is distance from array point x to slit position x1
// x2=(x-xc)*(x-xc);
// }
  for(int k=0;k   y=ymin+k*d;
  
   if (x   r=x-x1; // r is distance from array point x to slit position x1
   zsum[j][k]=Math.sin(kw*r-omega*t)*n; // need n to compensate for the magnitude
   }
  else if (x>=x1){
   r=Math.sqrt((x-xc)*(x-xc)+(y-yc)*(y-yc));
   rtop=Math.sqrt((x-xctop)*(x-xctop)+(y-yctop)*(y-yctop));
   zsum[j][k]+=Math.sin(kw*r-omega*t)+Math.sin(kw*rtop-omega*t);
   }
  
  }
 }
}

add path difference tools to allow sense making that when path difference = integer of wavelength, correspond to constructive interference. and 1/2 of integer is destructive interference like in Ejs Open Source Ripple Tank Interference Model java applet http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2067.0

17 october 2011
add d separation = ycentre2*2 to align with teaching and learning

this simulation is made possible by the open source codes shared by Fu-Kwun Hwang, the true master teacher!

enjoy!
« Last Edit: October 17, 2011, 07:28:08 pm by lookang » Logged
Pages: [1]   Go Up
  Print  
Brevity is the Soul of wit. ..."Shakespeare (154-1616, English dramatist and poet) "
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
The source code for the double slit applet?
Comment about this web site!
fkj 0 16036 Last post October 28, 2004, 03:03:19 pm
by fkj
Electron diffraction through a double-slit pane
Molecular Workbench
concord 0 5768 Last post February 18, 2009, 04:23:10 am
by concord
Ejs Open Source Single Slit Diffraction Model
Collaborative Community of EJS
lookang 2 14982 Last post October 14, 2011, 09:11:59 pm
by lookang
Ejs Open Source Young's Double Slit Java Applet
Collaborative Community of EJS
lookang 1 8653 Last post June 25, 2013, 11:01:27 pm
by lookang
Double Slit Wave-Particle Duality Model Open Source Physics Java Applet
Collaborative Community of EJS
lookang 1 6437 Last post July 05, 2013, 09:25:03 am
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 23 queries.since 2011/06/15