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

Easy Java Simulations (2001- ) => Optics => Topic started by: Fu-Kwun Hwang on June 08, 2005, 08:40:34 am



Title: fiber optics
Post by: Fu-Kwun Hwang on June 08, 2005, 08:40:34 am
You can drag the light source to different place or change the index of refraction for the material.
If the index of refraction is larger than 1.414 (square root of 2) , all the light enter the fiber will be totally reflected at the boundary.


Title: Re: fiber optics
Post by: tanghb on February 01, 2008, 03:56:05 pm
Hi Fu-Kwun,

Is it possible for user to choose the number of rays shown in the applet when played? Sometimes, I just want to show one ray, sometimes two, sometimes more.

Thank you.


Title: Re: fiber optics
Post by: Fu-Kwun Hwang on February 17, 2008, 12:02:16 am
O.K. I modified the code. Now, you can click "setup" check box.
Then use mouse to drag the red arrow to change the direction for the light path.
If you want to setup more than one light path, drag the "id" slider and drag the arrow again to setup it's direction. You can click the link "Usage" below the simulation for an flash animation which will show you how to do it. I hope this is what you want.