Author Topic: Prism: Reflection and refraction  (Read 182924 times)

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Prism: Reflection and refraction
« on: January 29, 2004, 11:03:57 pm »
Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME



Prism: Reflection and refraction



This java applet let you play with a light source and a prism, to study the physics of light.
There are reflection and refraction occurs at the interface between two media. (Total internal reflection might also occurs)

refractive indices: air (n1)= prism(n2)=
 Do not forget to hit ENTER key




Usage:
Click the red region to change the light direction.
Click other region of light source can move the light pen to differ location( even inside the prism).
Click one of the corner of the prism to change the shape of prism.
Click inside the prism to change its location.
When tracing of the light will terminated when the ray intensity is less than  than 0.4%.
The relative intensity for each ray is shown at the boundary.
Intensity of red and green are used to represent two different polarization.
The yellow light (sum of red light and green light) represent equal intensity of two polarization waves.
At Brewster's angle, only one of the polarized light is refracted, and other one is totally reflected.
The index of refraction for the prism is 1.5



Things to watch:
1. Total internal reflection
2. Change in light intensity
3. There might be small bugs, did you find out?



Light will travel with different speed at different media, which cause the reflection and refraction.
For reflection: the angle of incidence is equal to angle of reflection.
For refraction: the Snell's law govern the angle

 index of refraction for media 1: angle of incidence
 index of refraction for media 2: angle of refraction

Part of the energy is reflected and the rest propagate into new media.
The ratio depend on incident angle and index of refraction ( refracted angle )
EM (transverse) wave can have two polarization (perpendicular to each other and )
The intensity is proportional to
The intensity of electric field changed when reflection/refraction occurs, where ,
So the intensity for the reflected light is proportional to
Since the energy is conserved, so we can find out the intensity of refraction light.
For normal incident, both and equal to zero.
The coefficient are the same = For light emit from air (n=1.) into glass (n=1.5) The electric field scale to = (1.5-1)/(1.5+1)=0.2 So the intensity of the reflection scale to 0.22=0.04 ( 4% of incident light) So 96% light will enter the glass and only 4% of light were reflected.
This java applet use above equations to calculate the relative intensity of each ray.


Registed user can get files related to this applet for offline access.
Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
If java program did not show up, please download and install latest Java RUN TIME

  • Guest
GREAT
« Reply #1 on: May 05, 2004, 07:56:12 pm »
:idea: You ae very intelligent to write this....
I was wondering, can you write a JAVA Optics app that illustrates light reflection/refraction through a rond orb? Like a round marble, but be able to change one side from fully round to flat, adjustable slider (or numeric entry would suffice)

Light would come through the round side of the orb (at any varying angle) and refract through it...similar to a prism, yet this is round.

Also, most important....can you plug in the refractive indexed for Glass, Acrylic, and any othe polymers (or chemicals) you have the indexes of...
Thanks...
Hope you want to do something like this....
If you need an actual animation of what I am talking about, I can send it to you....
Thanks,
Mark

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
topic37
« Reply #2 on: May 06, 2004, 08:32:41 am »
It will be similar to Physics of rainbow

Mattisse

  • Newbie
  • *
  • Posts: 1
Source code
« Reply #3 on: May 26, 2006, 05:39:01 pm »
We currently have a group project which is very similar to this, but we just totaly have no idea about it. until I found your site via google.Your applet is very inspirational and we are so enlighted! Could you share source code (*.java) of this project. We will be pleased. My e-mail: mattisse@onet.eu

c00w

  • Newbie
  • *
  • Posts: 1
Re: Prism: Reflection and refraction
« Reply #4 on: May 10, 2008, 12:26:20 pm »
I was wondering if I could also get the source code so it can be modified.

annacegu

  • Newbie
  • *
  • Posts: 3
Re: Prism: Reflection and refraction
« Reply #5 on: February 08, 2010, 09:29:44 pm »
Hi,

Would it be possible to print out other parameters, e.g. angles of the triangle & angles that the beam enters the prism please?

Thanks,
Anna.

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Prism: Reflection and refraction
« Reply #6 on: February 09, 2010, 01:12:00 am »
It is possible to print out angles for triangles. But I do not think those information are really usefully.
The light paths depends on too many parameters.
To find the refracted light, you need to find the angle of incident $   heta_1$(angle between incident beam and the normal vector).
Then, the refracted angle $   heta_2=frac{n_1}{n_2}   heta_1$ where $n_1,n_2$ are index of refraction for two regions.

May I know what kind of information you really want (are looking for)? or what kind of problem you want to solve?
So that I can find better way to help!


annacegu

  • Newbie
  • *
  • Posts: 3
Re: Prism: Reflection and refraction
« Reply #7 on: February 09, 2010, 05:52:32 am »
Hi,
Thanks for your prompt reply! I just want to play around with different parameters such as triangle angles and incident beam angles to get the behaviour I want, then be able to see through the applet what those angles are. The n1 & n2 are already there which is good, but I would really like those angles!
Regards,
Anna.

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Prism: Reflection and refraction
« Reply #8 on: February 09, 2010, 01:25:58 pm »
I just add those angle vaues at the top-left corner.

annacegu

  • Newbie
  • *
  • Posts: 3
Re: Prism: Reflection and refraction
« Reply #9 on: February 09, 2010, 03:28:54 pm »
Thank you very much!

liesenbergk

  • Newbie
  • *
  • Posts: 16
Re: Prism: Reflection and refraction
« Reply #10 on: February 17, 2010, 07:47:23 pm »
Dear Mr. Fu-Kwun Hwang,

I am enjoying a lot your nice prism simulation. It is really amazing! I wonder if it would be possible to create a simulation with a polygonal prism, for example with 4, 5 or even 6 faces. This would be nice, even if there would be some form restrictions.

Thanks a lot for your kind attention. 

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Prism: Reflection and refraction
« Reply #11 on: February 18, 2010, 11:11:25 am »
It is possible to create a simulation with polygon prism.
However, I would like to know what is the problem you want to solve or what is the purpose for your request?
So that I can design one better suit your need?
For example: Does all the inside angles are all equal, or it can be angle angle?
Does the side of polygon changable? Do you need the intensity for all rays to be calculated? ...

Please write down what you really want in detail?

liesenbergk

  • Newbie
  • *
  • Posts: 16
Re: Prism: Reflection and refraction
« Reply #12 on: February 19, 2010, 05:24:42 am »
Hello, thanks for your fast reply!

In fact I am an optics enthusiast. With more faces I could simulate variations on consecrated designs as LITTROW, PELLIN-BROCA, BREWSTER, BAUERNFEIND, DOVE, Pentagon, Rhomboid prisms. I have been constructing some devices like telescopes and rearprojection.

Therefor the angles should be individually settable. Intensity is not a must, but would be nice (if possible).  ;)

Please let me know if you need further information.

Best regards!

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations

liesenbergk

  • Newbie
  • *
  • Posts: 16
Re: Prism: Reflection and refraction
« Reply #14 on: February 19, 2010, 06:08:50 pm »
Dear Professor,

Thanks a lot for you amazingly fast programming of the requested optical polygon!  :)
I am enjoying it a lot. It is very useful for my present study object. I will thoroughly test this simulation and come back to you with some suggestions. Thanks again, also for the other models you pointed out for me!

Best regards.