APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Computer Program Detail Page

Item Picture
Diffraction and Interference Model: Single and Double Slits
written by Andrew Duffy
The Diffraction and Interference Model: Single and Double Slits shows diffraction and interference patterns from a single slit, double sources and double slits. The user can change the source wavelength, slit width, separation and distance between slit and screen.

The Diffraction and Interference Model was created using the Easy Java Simulations (EJS) modeling tool.  It is distributed as a ready-to-run (compiled) Java archive.  Double clicking the ejs_bu_Diffraction_Interference.jar file will run the program if Java is installed.

Please note that this resource requires at least version 1.5 of Java (JRE).
1 supplemental document is available
1 source code document is available
Subjects Levels Resource Types
Optics
- Diffraction
= Diffraction Through One Slit
- Interference
= Interference From Two Sources
Oscillations & Waves
- Wave Motion
= Interference and Diffraction
- Lower Undergraduate
- High School
- Upper Undergraduate
- Instructional Material
= Interactive Simulation
- Audio/Visual
= Movie/Animation
Intended Users Formats Ratings
- Learners
- Educators
- application/java
  • Currently 4.0/5

Rated 4.0 stars by 5 people

Want to rate this material?
Login here!


Mirror:
http://physics.bu.edu/~duffy/Ejs/…
Access Rights:
Free access
License:
This material is released under a GNU General Public License Version 3 license.
Rights Holder:
Andrew Duffy, Boston University
Keywords:
Young's double slit, diffraction, double slit, interference, single slit
Record Cloner:
Metadata instance created April 24, 2010 by Anne Cox
Record Updated:
June 3, 2014 by Andreu Glasmann
Last Update
when Cataloged:
April 24, 2010

strangely after using ejs4.3.0 i managed to open it which become editable in ejs4.3.7

Author: lookang
Posted: June 25, 2013 at 12:17PM

managed to edit it and it is what happens after 2 days :)
enjoy!

Young Double Slit Java Applet Ejs Open Source Physics Computer Model
http://weelookang.blogspot.sg/2013/06/ejs-open-source-young-double-slit-java.html
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2782.0
author: andrew duffy and lookang, took some ideas from tat leong point P, Jose Ignacio Fernández Palop vcolor
original work here http://www.compadre.org/osp/document/ServeFile.cfm?ID=9988&DocID=1622&Attachment=1
many thanks to fu-kwun hwang for teaching me so many things on NTNU java forum, paco and wolfgang for open source physics toolkit :)
https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_Diffraction_Interferencewee05.jar

» reply

can someone open the source code in EJS_4.3.7_130516?

Author: lookang
Posted: June 24, 2013 at 10:57AM

i have tried opening the source code but the EJS hangs.
can someone help check if u can open or not?
i can only open the source using EJS_4.3.0_100622.

please advise what i should i do next if i want to edit it
thanks!

» reply

Re: can someone open the source code in EJS_4.3.7_130516?

Author: lookang
Posted:

in another computer i can see the error message on the ejs console. hope it helps in the debugging of EJS_4.3.7_130516\EJS_4.3.7.

thanks!


C:\Program Files\Java\jre7/bin/java -classpath bin/comSun7.jar;bin/ejs.jar;bin/bcel.jar;bin/extensions/commons-math3-3.0.jar;bin/extensions/djep.jar;bin/extensions/model_elements/Apache/apache_numerics.jar;bin/extensions/model_elements/External/external.jar;bin/extensions/model_elements/Hardware/hardware.jar;bin/extensions/model_elements/Hardware/_utils/phidgetlibsarlab.jar;bin/extensions/model_elements/Hardware/_utils/serial.jar;bin/extensions/model_elements/InputOutput/input_output.jar;bin/extensions/model_elements/ParallelJava/parallel_ejs.jar;bin/extensions/QTJava.zip;bin/extensions/slf4j-api.jar;bin/extensions/_utils/ARElement.jar;bin/extensions/_utils/commons-cli.jar;bin/extensions/_utils/commons-logging-1.1.1.jar;bin/extensions/_utils/gstreamer-java.jar;bin/extensions/_utils/jackson-annotations-2.1.1.jar;bin/extensions/_utils/jackson-core-2.1.1.jar;bin/extensions/_utils/jackson-databind-2.1.1.jar;bin/extensions/_utils/jna.jar;bin/extensions/_utils/Loader3DS.jar;bin/extensions/_utils/LoaderAC3D.jar;bin/extensions/_utils/LoaderVRML.jar;bin/extensions/_utils/log4j-1.2.15.jar;bin/extensions/_utils/logback-classic.jar;bin/extensions/_utils/logback-core.jar;bin/locales.jar -Dcodebase=. -Dhome=C:\Documents and Settings\Temp\My Documents\Dropbox\Public\lookangEJSworkspace org.colos.ejs.osejs.Osejs -lastFile -lookAndFeel javax.swing.plaf.metal.MetalLookAndFeel -decorateWindows -screen 1
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: [S cannot be cast to [I
at java.awt.image.DirectColorModel.getRGB(Unknown Source)
at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)

» reply

Post a new comment on this item
ComPADRE is beta testing Citation Styles!

Record Link
AIP Format
A. Duffy, Computer Program DIFFRACTION AND INTERFERENCE MODEL: SINGLE AND DOUBLE SLITS (2010), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622).
AJP/PRST-PER
A. Duffy, Computer Program DIFFRACTION AND INTERFERENCE MODEL: SINGLE AND DOUBLE SLITS (2010), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622>.
APA Format
Duffy, A. (2010). Diffraction and Interference Model: Single and Double Slits [Computer software]. Retrieved November 6, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622
Chicago Format
Duffy, Andrew. "Diffraction and Interference Model: Single and Double Slits." https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622 (accessed 6 November 2024).
MLA Format
Duffy, Andrew. Diffraction and Interference Model: Single and Double Slits. Computer software. 2010. Java (JRE) 1.5. 6 Nov. 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622>.
BibTeX Export Format
@misc{ Author = "Andrew Duffy", Title = {Diffraction and Interference Model: Single and Double Slits}, Month = {April}, Year = {2010} }
Refer Export Format

%A Andrew Duffy %T Diffraction and Interference Model: Single and Double Slits %D April 24, 2010 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622 %O application/java

EndNote Export Format

%0 Computer Program %A Duffy, Andrew %D April 24, 2010 %T Diffraction and Interference Model: Single and Double Slits %8 April 24, 2010 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=9988&DocID=1622


Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.

Citation Source Information

The AIP Style presented is based on information from the AIP Style Manual.

The APA Style presented is based on information from APA Style.org: Electronic References.

The Chicago Style presented is based on information from Examples of Chicago-Style Documentation.

The MLA Style presented is based on information from the MLA FAQ.

This resource is stored in 5 shared folders.

You must login to access shared folders.

Diffraction and Interference Model: Single and Double Slits:

Is Based On Easy Java Simulations Modeling and Authoring Tool

The Easy Java Simulations Modeling and Authoring Tool is needed to explore the computational model used in the Diffraction and Interference Model: Single and Double Slits.

relation by Anne Cox
Is the Basis For Ejs Open Source Young's Double Slit Java Applet

changes made:
added sources as triangles of laser
added ? slider with color indicated with reference made to Jose Ignacio Fernández Palop vcolor http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1037.0
reorder blue green red in ascending order of magnitude
set default as double slit
made a, d, D and y
made intensity selectable
redesign the layout to suit left to right with right panel showing the screen
laser redrawn
slits added
text of views added
added point yp with reference made to tat leong yp http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2778.0

relation by wee lookang

Know of another related resource? Login to relate this resource to it.
Save to my folders

Supplements

Contribute

Related Materials

Similar Materials

OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book