phetsims / bending-light

"Bending Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/bending-light
GNU General Public License v3.0
8 stars 8 forks source link

Inconsistency when measuring intensity in "Wave" vs "Ray" setting. #319

Closed orejolaphet closed 8 years ago

orejolaphet commented 8 years ago

I noticed that between the two laser settings: "Wave" and "Ray", the intensity will not be measured for the "Ray" setting but will be measured for "Wave".

Should the behavior be same for both settings? Here is a screen shot of the "Wave" being measured

screen shot 2015-11-30 at 8 18 25 am

With out moving the location of the laser, only changing the setting to "Ray", we have

screen shot 2015-11-30 at 8 18 13 am

Notice the laser ray passes through the lens, but intensity not measured.

samreid commented 8 years ago

I think the solution to this problem will be to fix the capture radius of the probe to match the graphical look--then the discrepancy will have an obvious physical reason.

samreid commented 8 years ago

I'm recalling a reason a smaller hit area on the sensor is better--a larger hit area accentuates the discontinuity in the light ray hitting the sensor near the origin. Still, I think I should make the entire sensor region on the probe capture light, and then if the discontinuity is too distracting, then it should be fixed with math (though I think I am the only one that has noticed the discontinuity until now).

samreid commented 8 years ago

OK I matched the regions in the above commit. Here's a screencast with the new behavior and the corner cases/discontinuities I am aware of:

bendinglight

The other solution I considered would be to make the wave hit area match the ray hit area, so that a wave would only intersect if the ray would have. @ariel-phet can you review everything in this issue and advise?

ariel-phet commented 8 years ago

The behavior in the comment above seems fine. Closing