Author Topic: Ejs open source converging & diverging Lens object image high school java applet  (Read 64982 times)

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Ejs open source converging & diverging thin convex Lens object image high school java applet
now able to allow for inquiry learning of
Under topic of optics ;) let see google will tag the new key word " optics " " lens simulation "
  • physics Images formed by a converging lens object distance equal f
  • physics Images formed by a converging lens object distance greater than 2 focus length
  • physics Images formed by a converging lens object distance lesser than f
  • physics Images formed by a converging lens object distance equal to 2 focus length
  • physics Images formed by a converging lens object distance between f and 2f
reference:
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=704
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=48 Thin Lens (converging/diverging lens) no mirror
to become
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1140.0
trying to make it more customized for K12 physics, the physlet len applet is superb, i doubt i can make the Ejs version better.just trying to learn how to make this from tinkering your codes and other meaningful stuff :)
cited by http://en.wikipedia.org/wiki/Lens_%28optics%29

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!
« Last Edit: October 01, 2012, 05:36:59 pm by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs open source Lens object image java applet
« Reply #1 on: June 28, 2009, 06:19:20 pm »
Exercises: designed by lookang ;D

   1. Explore the simulation. Notice that you can move the sliders to vary the distance of the object to the centre of the thin len. What do each of the buttons and sliders do?
   2. Take about 10 minutes to inquiry through the simulation model and describe the action of a thin converging lens on a beam of light. ( this simulation currently does not have beam of light)
   3. Discuss with your lab partner what is the meaning of the focal length f.
   * hint: in terms of the way the light rays from the object is bend and pass through where?
   4. check the principal rays radio button. Discuss and formulate ideas how the ray diagram allows the drawing of ray diagrams to illustrate the formation of real and virtual images of an object by a
   thin converging lens.
   * What does the green ray light always do?
   * What does the red ray light always do?
   * What does the teal ray light always do?
   o hint: in terms of the way ray light traveling parallel to and passing through where etc?
   5. What does the term linear magnification mean in this simulation.
   * Discuss how it is calculated from?
   * How many ways are there to determine the magnification of the think converging len.
   6. Check the no ray radio button. move the sliders a suitable position of your choice. Now, sketch as accurately as possible on a piece of paper, the principal ray diagram ( minimum 2 rays) to get the image position and height. Practice a few times with different and varied examples to allow you to draw scale diagrams to deduce the focal length needed for particular values of magnification (converging lens only)
   7. explore the simulation to make observations of the use of a single converging lens as a
   * magnifying glass a
   * projector
   8. Draw rays of examples for each case to show clearly how each forms an image


http://www.youtube.com/watch?v=lt-UxbopEUY



Designed by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/ remixed by welookang@gmail.com for K12 physics "Thin Converging Lens Ray Diagram"

reference: http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=704 hosted: http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1155.0

Ejs open source converging & diverging thin convex Lens object image high school java applet. now able to allow for inquiry learning of
physics Images formed by a converging lens object distance equal f
physics Images formed by a converging lens object distance greater than 2 focus length
physics Images formed by a converging lens object distance lesser than f
physics Images formed by a converging lens object distance equal to 2 focus length
physics Images formed by a converging lens object distance between f and 2f

This thin lens ray diagram java applet has:

Main view:
Lens that is controllable by the focal length f, +f imply converging lens -f imply diverging lens.
Focal points drag-able, 2F, F, F & 2F
u is position of Object from lens center c
v is position of Image from lens center c.
The object is drag-able to the right side of the lens

Top View:
dynamically display a possible use of the lens under different conditions with pictures shared under creative commons licenses and other similar pro usage licenses under attribution.

Bottom View:
4 radio buttons: allows for different visualization purposes of light path in the context of lens
no ray
principal ray
marginal ray
all ray

4 check boxes:
"Real/Virtual?"
"Inverted/Upright?"
"Magnify/Diminish?"
"Same/Opposite side"

Autoscale: to allow visualization view of images formed outside designed screen view.

3 slider control:
u, object distance from c
h, height of object
f, focal length of lens

3 values display:
v, image distance from c
ih, image height
M, Magnification











PHYSICS
GCE Advanced Level
(Syllabus 9246)
http://www.seab.gov.sg/SEAB/aLevel/syllabus/2009_GCE_A_Level_Syllabuses/9246_2009.pdf

distinguish between converging and diverging lenses and show an understanding of the
significance of focal length.

5056 PHYSICS O LEVEL (2009)
http://www.seab.gov.sg/SEAB/oLevel/syllabus/2009_GCE_O_Level_Syllabuses/5056_2009.pdf
(i) describe the action of a thin converging lens on a beam of light
(j) define the term focal length
(k) *draw ray diagrams to illustrate the formation of real and virtual images of an object by a
thin converging lens
(l) define the term linear magnification
(m) *draw scale diagrams to deduce the focal length needed for particular values of
magnification (converging lens only)
(n) describe the use of a single lens as a magnifying glass and in a projector and draw ray
diagrams to show how each forms an image
« Last Edit: January 01, 2010, 05:22:07 pm by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs open source Lens object image java applet
« Reply #2 on: July 13, 2009, 07:52:50 am »
changes made:

1. added lines for the light 3 paths for principal rays different colors and arrow heads.
2. added transparent 100 lines to guide visualization
3. added mechanism for lens changing thickness for converge and concave
4. change color scheme to be more like physlets
5. added pictorial and logic for more scaffolds to help people associate the use of the converging lens ;D
6. limited the height of object to height of lens for closer approximation of image possible
7. added 2F F F 2F and the drag-able 4 points
8. redesign the code for the appearance of pictures to follow Boolean logic
9. added the side/opposite of object and image to follow 4 checkbox
10. debug the appearance of strange lines when p = 1.8 instead of 1.8000000000000001 and f also.
11. added marginal rays
12. added all rays that assume the lens is infinitely long because i can't create the logic for bend or don't bend light
13. background color back to grey, darkgrey causes some visual cursor difficulties to visualize
14. added screen but it does do much except allow some ease of noticing non focus light
july26
15. changed to fit typical pen and paper questions < 40 cm instead of 2 cm
16. improved the lens color to grey convex and concave types
17. background to

"http://www.entre-propel.com/ March 31st, 2009 By Matt Thomas Attribution-Noncommercial-No Derivative Works 3.0 United States"

"http://commons.wikimedia.org/wiki/File:Canon_ir2270.jpg Taken by Fir0002 under GNU Free Documentation License"

"http://www.freefoto.com/preview/02-08-8?ffid=02-08-8&k=Telescope by Photographer: Ian Britton For unrestricted use."

Polaroid Land Camera 360, circa 1969-1971. Photo by the uploader (User:Morven), released under the GFDL and Creative Commons Attribution Share-Alike, version 2.5 or earlier.

"http://commons.wikimedia.org/wiki/File:Magnifying_glass.jpg This is the creation of Tomomarusan"

"http://commons.wikimedia.org/wiki/File:Overhead_projector_3M_01.JPG by Piotrus under Creative Commons Attribution-ShareAlike 3.0"
« Last Edit: September 26, 2009, 03:01:44 pm by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
found a similar one here
http://www.crescent.edu.sg/crezsphere/applets/Physics/Applets/Light.htm
no picture here since it seems to belong to a commercial entity,

Likes:
2F , F , F , 2F markings
drawing of eyes during magnifying glass

the one made in Ejs at first post is open source and improve-able by others, sure to be great!

made the changes for 2F , F , F , 2F markings
« Last Edit: July 14, 2009, 05:57:14 pm by lookang »

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
The above web page include two animation: refraction/reflection and thin lens refraction.
However, for the refraction/reflection part. I would suggest you to check out Intensity of reflected s-wave/p-wave.


When light enter into another media, reflection will always occurs.
The animation only show either reflection or refraction. It might introduce mis-concept about the light.

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
The above web page include two animation: refraction/reflection and thin lens refraction.
However, for the refraction/reflection part. I would suggest you to check out Intensity of reflected s-wave/p-wave.
When light enter into another media, reflection will always occurs.
The animation only show either reflection or refraction. It might introduce mis-concept about the light.

My thoughts:
Intensity of reflected s-wave/p-wave is indeed a superb approximation of the real life physics.

My Stand:
I agree with you that it is not appropriate to teach in binary reflection/refraction and may introduce mis-concept about the light.

My position:
NTNUJAVA Virtual Physics Laboratory Java Simulations in Physics: Enjoy the fun! is my favorite website for engaging in inquiry learning. That's why i am remixing and contributing back here. I learn a lot too.



My unfinished work:
I am in the process of refining this Ejs open source converging & diverging Lens object image high school java applet.
 
Cheers!
« Last Edit: July 19, 2009, 09:14:20 am by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
found some popular lens java applet

1. http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=48
Likes: the white screen to illustrate possible focus image and blur images?
Likes: most popular java applet hosted all around the world

2. http://phet.colorado.edu/simulations/sims.php?sim=Geometric_Optics
Likes: the white screen to illustrate possible focus image and blur images?
Likes: the option for no rays, principal rays, marginal, all rays to allow for sense making?
Likes: the move me! bouncing hints
Likes: movable principal axis lens to reposition lens

3. http://surendranath.tripod.com/Applets/Optics/ReflRefrCurv/CurvSurfApplet.html

4. http://webphysics.davidson.edu/physlet_resources/dav_optics/examples/eye_demo.html
Likes: fantastic for explaining eye lens

http://www.physics.uoguelph.ca/applets/Intro_physics/kisalev/java/clens/index.html

http://webphysics.davidson.edu/course_Material/Py230L/optics/lenses.htm
Like: the beam function
Like: Mirror
Like: Aperture
« Last Edit: January 01, 2010, 05:54:54 pm by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
i am done with improving this applet :)
Enjoy!

applet download available for registered users at the top of the post.
look for Download EJS jar file  ;D
« Last Edit: November 19, 2009, 05:36:20 pm by lookang »

leeyiren

  • Jr. Member
  • **
  • Posts: 39
to see the real image we need a screen. yet i notice most simulation dun include a screen. I request that someone create an simulation that is something like the one in this thread but add a screen that is adjustable so we can see how does adjusting the screen affect the image. thx 8) :D :) ;) :P :-*

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
to see the real image we need a screen. yet i notice most simulation dun include a screen. I request that someone create an simulation that is something like the one in this thread but add a screen that is adjustable so we can see how does adjusting the screen affect the image. thx 8) :D :) ;) :P :-*

I agree with your suggestion. Let me do some research on ways to show the sharpness of the image on the screen.

Good point.

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
hi leeyiren,
i think the request you made is beyond me currently.
sorry can't help with that.

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
changes.

Would it be possible to make the following changes?
1) Full screen capability like Fu-kwun with more space for image/object: Too little room to show image/object (always out of screen; and unable to show object/image at "infinity")
   (I saw your auto function but would much prefer a fixed screen for ease of comparison)

made a checkbox to hide the top "use"
added input field and slider that are wider in range for exploring u = - infinity



2) Default uncheck blue line (with option to check it): In practice, we only draw 2 lines to determine the image. 3rd line is merely for checking answer.

i check http://www.physicsclassroom.com/class/refrn/u14l5ea.cfm
the better way to learn principal ray is 3, not 2.
i have added a checkbox for 2 ray but the default is 3


3) Option to add in "eyeball with retina" in background?

there is a screen, but i have no added sharp or blur effects as i do not know or seen any EJS that does that.


4) Disable –ve f (since eye cannot be –ve f and its not in syllabus)

i check http://www.physicsclassroom.com/class/refrn/u14l5ea.cfm
the better way to learn f is to have both sides of the lens.




Additional Objective besides the usual:
1) To show that human eye lens is of variable focal length. We need to stretch/compress our eye to see far/near object
2) People with short sighted have a upper limit to their focal length
3) People with far sighted have a lower limit to their focal length
4) Old people can have both upper/lower limit to their focal length and hence need bifocal lens

need another applet like this one
http://webphysics.davidson.edu/physlet_resources/dav_optics/Examples/eye_demo.html

enjoy!
http://weelookang.blogspot.sg/2010/06/ejs-open-source-converging-diverging.html
« Last Edit: July 17, 2012, 01:53:43 pm by lookang »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
thanks to a feedback

Great Applet!  I was playing around with it and found that with a divergent lens, the image formed will be real. Is that right? I thought it will be a virtual image?


the bug has been fixed

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
thanks to lim yi xian

I told my classes Loo Kang edited the lens applet and what the lens applet was capable of doing, and the girls went "WAHHHH......"... Haha.. Thanks Loo Kang!
A little touchup to the applet if you got time LK:
for divergent lens light ray, the arrow should be dotted and pointing in opposite direction? See attached. Thanks again!


dotted lines is difficult (not available) in EJS, will not implement
opposite direction done thanks to http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=48

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
fix more bugs for converging virtual light rays arrows directions