NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Collaborative Community of EJS => Topic started by: lookang on June 21, 2009, 10:09:01 pm



Title: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on June 21, 2009, 10:09:01 pm
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


Title: Re: Ejs open source Lens object image java applet
Post by: lookang on June 28, 2009, 05: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


Title: Re: Ejs open source Lens object image java applet
Post by: lookang on July 13, 2009, 06: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"


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on July 14, 2009, 11:16:18 am
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


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: Fu-Kwun Hwang on July 14, 2009, 09:22:22 pm
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 (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=347.0).


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.


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on July 14, 2009, 10:26:08 pm
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 (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=347.0).
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 (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=347.0) 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!


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on July 19, 2009, 09:26:14 am
found some popular lens java applet

1. http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=48(http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1155.0;attach=1202;image)
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(http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1155.0;attach=1204;image)
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(http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1155.0;attach=1206;image)

4. http://webphysics.davidson.edu/physlet_resources/dav_optics/examples/eye_demo.html (http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1155.0;attach=1208;image)
Likes: fantastic for explaining eye lens

http://www.physics.uoguelph.ca/applets/Intro_physics/kisalev/java/clens/index.html(http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1155.0;attach=1577;image)

http://webphysics.davidson.edu/course_Material/Py230L/optics/lenses.htm
Like: the beam function
Like: Mirror
Like: Aperture


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on July 23, 2009, 01:46:26 pm
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


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: leeyiren on December 31, 2009, 08:38:35 pm
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 :-*


Title: Re: Ejs open source converging & diverging Lens object image high school java ap
Post by: lookang on January 01, 2010, 12:52:07 pm
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.


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on February 10, 2010, 08:39:56 pm
hi leeyiren,
i think the request you made is beyond me currently.
sorry can't help with that.


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on July 17, 2012, 10:26:58 am
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


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on August 03, 2012, 09:59:37 pm
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


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on August 04, 2012, 10:15:06 pm
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


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on August 10, 2012, 09:43:50 pm
fix more bugs for converging virtual light rays arrows directions


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on September 17, 2012, 02:12:29 pm
more teacher feedback
made a tinyurl for the students to access this applet more quickly
http://tinyurl.com/rgslens

I realized the virtual rays are still not "dotted" (or fainted) correctly.
The rays exiting the object should be solid ray (your red ray exiting object is fainted).
The rays entering the object from the image should be dotted and doesn't need an arrow head.

cheers!

need to understand what the teacher means
The rays exiting the object should be solid ray (your red ray exiting object is fainted).
The rays entering the object from the image should be dotted and doesn't need an arrow head.


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on September 19, 2012, 03:44:55 pm
added more inputs from teacher

dotted lines when the image is virtual and remove the arrows

managed to do corrected i hope for the green principal ray.
need to take a break for a while.

fixed the red lines in second attachment ejs_ThinLenModel01.zip


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: engrg1 on September 19, 2012, 08:51:03 pm
Looking at the old simulation remind me of the times when I am using Prof Huang's lens applet to teach my students about drawing ray diagram :-) That is like 4 years ago.


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on September 20, 2012, 03:48:34 pm
Looking at the old simulation remind me of the times when I am using Prof Huang's lens applet to teach my students about drawing ray diagram :-) That is like 4 years ago.
the older applet is here
www.phy.ntnu.edu.tw/ntnujava/index.php?topic=48

this a new version made in EJS

completed the dotted lines requested by teachers

teacher also asked
"Also regarding the object at focal length, I think there should be no
image so is it ok to display v = infinity?
Although I know in theory, 1/f = 1/u + 1/v but is it still valid when
there is no image?"

but i check there is no image


Title: Re: Ejs open source converging & diverging Lens object image high school java applet
Post by: lookang on October 01, 2012, 02:38:56 pm
more feedback!

 1) Wow! Thanks bro you are truly amazing! :))
The blue ray is not quite correct. I've attached a picture for your reference.

seems to have fix it now

2) u, h and F are in steps of 10. Could you change them to steps of 5.

done


3) Just found 2 new bug.
a) When F = 0, there is no lens.
Maybe for the slider, can skip F=0. If they want to key in, let them be.

change the value turn to 5 instead of 0 when 0 is selected

b) When F = 40, u = -10, the green ray is too short (doesn't cut F)


done! made it always reach the xminimum and xmaximum

enjoy!